flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
8.01k stars 2.63k forks source link

suspendProcessInstanceById question #3885

Open hexiangying opened 6 months ago

hexiangying commented 6 months ago

i have two listener `
private static ArrayList executionListeners() { ArrayList listeners = new ArrayList<>(); FlowableListener activitiListener = new FlowableListener(); activitiListener.setEvent(BaseExecutionListener.EVENTNAME_START); activitiListener.setImplementationType(IMPLEMENTATION_TYPE_DELEGATEEXPRESSION); activitiListener.setImplementation("${counterSignListener}"); listeners.add(activitiListener);

    FlowableListener nodeEndListener = new FlowableListener();
    nodeEndListener.setEvent(BaseExecutionListener.EVENTNAME_END);
    nodeEndListener.setImplementationType(IMPLEMENTATION_TYPE_DELEGATEEXPRESSION);
    nodeEndListener.setImplementation("${nodeEndListener}");
    listeners.add(nodeEndListener);
    return listeners;
}

` activitiListener is node start execute,nodeEndListener is node end execute,

i in node A and end listener (nodeEndListener)execute runtimeService.suspendProcessInstanceById() but after node B start listener still execute,and after all listener is execute,include executeListener and taskListener。

and i active process is say have process is active。why?