11-22-2017 02:53 AM
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?
11-24-2017 02:35 AM
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!
11-23-2017 08:11 AM
From /activiti-admin you can stop instances of tasks and process.
11-23-2017 09:12 PM
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?
11-24-2017 02:35 AM
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!
Explore our Alfresco products with the links below. Use labels to filter content by product module.