PROBLEM-1: In ExecutionListener by start event: for processInstaceId : there is no ProcessInstance
@Component
@Slf4j
public class MyDelegate implements ExecutionListener {
@Override
public void notify(DelegateExecution delegateExecution) throws Exception {
DelegateExecution processInstance = delegateExecution.getProcessInstance();
**callSomething**(delegateExecution.getProcessInstanceId());
}
** callSomething calling then : // a component with runtimeService**
private ProcessInstance getProcessInstanceForId(String processInstanceId) {
return runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); // .active() ??
}
getProcessDefinitionForPi (…) delivers null for existing processInstanceId !!!
PROBLEM-2: Timer does not fire … Why ?
PT1M = Duration / after claim ?
See: Boundary Timer > Event_0dxwk3k // Warn after 1 Minute /Test
P5_Anonym.bpmn (14.4 KB)