flowable/flowable-engine

suspendProcessInstanceById question

hexiangying opened this issue · 0 comments

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?