You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
Can't stop the subProcess instance successfully via STOP its master process instance
What you expected to happen
Expect stop all the subProcess instance successful via STOP the master process instance
How to reproduce
1.create a workflow, its need a SubProcess task and refer it to another workflow
2. start up this master workflow
3. try to STOP it
4. the master process instance stopped, but the subPorcess instance is still running and the task of this subProcess instance also running to. (May be you need to check its state in DB if the UI haven't shows subProcess instances)
This issue is at the method of putMasterTaskExecuteRunnable in class MasterTaskExecutorHolder , which is no usages. But in the operate method of LogicITaskInstanceKillOperationFunction class, we can find its use MasterTaskExecutorHolder.getMasterTaskExecutor(taskInstanceId) to get masterTaskExecutor , and then to use masterTaskExecutor to cancel task.
So, it's should put masterTaskExecutor first in class MasterTaskExecutorHolder .
2.Another point of this issue at the method of sendToSubProcess in class SubWorkflowLogicTask, when new WorkflowInstanceStateChangeEvent object, it should use subProcessInstance.getId() to set sourceProcessInstanceId.
3.The DynamicLogicTask have same issue, resolve solution same to the SubWorkflowLogicTask.
Search before asking
What happened
Can't stop the subProcess instance successfully via STOP its master process instance
What you expected to happen
Expect stop all the subProcess instance successful via STOP the master process instance
How to reproduce
1.create a workflow, its need a SubProcess task and refer it to another workflow
2. start up this master workflow
3. try to STOP it
4. the master process instance stopped, but the subPorcess instance is still running and the task of this subProcess instance also running to. (May be you need to check its state in DB if the UI haven't shows subProcess instances)
Anything else
No response
Version
3.2.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: