Hi,
How can i stop the default task in my activiti project? Everytime background running this
C3P0PooledConnectionPoolManager[identityToken->1hge3vv9r1r36ejc15ykklt|4015b06b]-AdminTaskTimer
and some debug statements are printing. how can i stop those?
Solved! Go to Solution.
Hi!
You do cancel process instance with deleteProcessInstance(String processId, String reason). For example:
RuntimeService runtimeService = activitiRule.getRuntimeService();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("my-process");
...
runtimeService.deleteProcessInstance(processInstance.getId(), "Cancel forced!");
Regards!
From /activiti-admin you can stop instances of tasks and process.
Thank you for your reply. I am using activiti 5 in my spring web application. Here I didn't run activiti-admin. Now, how can i stop the default process?
Hi!
You do cancel process instance with deleteProcessInstance(String processId, String reason). For example:
RuntimeService runtimeService = activitiRule.getRuntimeService();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("my-process");
...
runtimeService.deleteProcessInstance(processInstance.getId(), "Cancel forced!");
Regards!
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.