Hi, I am not sure about this as I dont have sources of BPM addon(cant debug bpm-core), but probably there is problem in ExtensionElementsManagerBean in method getStartExtensionElements, where you check number of StartEvents to be eq 1.
Replication:
- Create BPM Model with subprocess eg. attached picture
1.1. deploy model - Create entity with bpm integration
procActionsFrame.initializer().setBeforeStartProcessPredicate(this::commit).setAfterStartProcessListener(() -> {
showNotification(getMessage("Process started"), NotificationType.HUMANIZED);
close(COMMIT_ACTION_ID);
}).setBeforeCompleteTaskPredicate(this::commit).setAfterCompleteTaskListener(() -> {
showNotification(getMessage("Task completed"), NotificationType.HUMANIZED);
close(COMMIT_ACTION_ID);
}).setBeforeClaimTaskPredicate(this::commit).init("testcase", getItem());
- Start process -> you will get com.haulmont.bpm… error about having more than 1 StartEvent
com.haulmont.bpm.exception.BpmException: Cannot process process with multiple start events
- Remove StartEvent from bpm model and redeploy it
- Start process -> you will get activiti error
ActivitiException: No initial activity found for subprocess sid-D07920DD-1C64-469A-B89C-E16E2733A57F
I am not sure if this is wrong design of mine or bug of BPM addon, thank you for any advice.