Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suspendProcessInstanceById question #3885

Open
hexiangying opened this issue May 8, 2024 · 0 comments
Open

suspendProcessInstanceById question #3885

hexiangying opened this issue May 8, 2024 · 0 comments

Comments

@hexiangying
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant