How can i stop default task in activiti?

cancel
Showing results for 
Search instead for 
Did you mean: 
vamsinipun
Established Member

How can i stop default task in activiti?

Jump to solution

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?

1 Solution

Accepted Solutions
fegor
Senior Member

Re: How can i stop default task in activiti?

Jump 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!

View solution in original post

3 Replies
fegor
Senior Member

Re: How can i stop default task in activiti?

Jump to solution

From /activiti-admin you can stop instances of tasks and process.

vamsinipun
Established Member

Re: How can i stop default task in activiti?

Jump to solution

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?

fegor
Senior Member

Re: How can i stop default task in activiti?

Jump 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!