I have a simple process with one “start event”, one “user task”, one “manual task” and “end event”.
I have also EngineEventListener. For example “ACTIVITY_STARTED” is fired multiple times for each building block when the process is executed.The “ACTIVITY_COMPLETE” event is fired less times than the start event. Is there a listener that fire only once for each event of the life cycle of the execution of a building block?
In a building block, if I have a TaskListener or ExecutionListener they also fire multiple times the create/start and complete/end events. Is there a built in way to filter them to fire only once?
Suspend process by processInstanceId does not stop the process instance.Why is that? How can I pause the process execution in some listener? I don’t want to use UsertTask or ReceiveTask so they automatyically set the process in “Wait” state. I want to manually change the state and in the same second as the method “SuspendProcessByProcessInstanceId” is executed, the instance to be suspended and no further building block to be executed for this process instance. I have a manual task and want into it’s listener to stop the process. How can Ido it, or maybe directly to set the process instance to goes into a “WAIT” state somehow?
Thanks in advance