Discussion:
[jboss-user] [jBPM] - Java API - Abort process don't terminate the associated tasks
dokkis
2013-02-05 13:37:29 UTC
Permalink
dokkis [https://community.jboss.org/people/dokkis] created the discussion

"Java API - Abort process don't terminate the associated tasks"

To view the discussion, visit: https://community.jboss.org/message/796146#796146

--------------------------------------------------------------
Hi to all,
i'm new in jbpm community and i'm trying to use the Jbpm Java Api (with jBPM 5.4) for university thesis purpose.
Why if i Abort a process instance the associated tasks don't terminate?
How do I operato to terminate them? How can i delete task through Java API? Could i use the entity manager to access Task table or is there a best practice for this problem?
Is this a bug of Jbpm Engine (why task should continue to stay active when the process instance is terminated? I think it's nonsense!).
PS: sorry for my bad english but i'm italian.

Thanks,
Antonio
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796146#796146]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
dokkis
2013-02-10 16:56:23 UTC
Permalink
dokkis [https://community.jboss.org/people/dokkis] created the discussion

"Re: Java API - Abort process don't terminate the associated tasks"

To view the discussion, visit: https://community.jboss.org/message/796922#796922

--------------------------------------------------------------
up! Is this only mine problem?
Anyone has this problem?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796922#796922]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Raees Uzhunnan
2013-02-20 19:58:18 UTC
Permalink
Raees Uzhunnan [https://community.jboss.org/people/raees] created the discussion

"Re: Java API - Abort process don't terminate the associated tasks"

To view the discussion, visit: https://community.jboss.org/message/798664#798664

--------------------------------------------------------------
Hope this is what you are looking for

ksession.abortProcessInstance(workItem.getProcessInstanceId());

Thanks
Raees
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/798664#798664]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...