[jboss-user] [jBPM] - can not able to ProcessInstance

prasad basutkar do-not-reply at jboss.com
Mon Dec 20 02:01:55 EST 2010


prasad basutkar [http://community.jboss.org/people/peterbasutkar%40gmail.com] created the discussion

"can not able to ProcessInstance"

To view the discussion, visit: http://community.jboss.org/message/576761#576761

--------------------------------------------------------------
Hi All

Requirement : Can not able to delete ProcessInstance.

Description :  I am using jbpm 3.2.6 and i am facing problem in deleting the ProcessInstance which Contains Sub-Process in it.
""
                    scenario : I have process("ProcessA") which contains sub-process as process("ProcessB") and sub-process("ProcessB") is the next Node in ParentProcess("ProcessA") after "start" node.i started the process("ProcessA") and completes the "start" task and then i creates the sub-process's("ProcessB") start task by using api 
TaskMgmtInstance taskMgmtInstance = processInstance.getTaskMgmtInstance(); //where processInstance is the instance of ("ProcessB")
TaskInstance startTaskInstance = taskMgmtInstance.createStartTaskInstance();//manually creates start task because sub-process always skips starting task , means there is no TaskInstance entry in the database for this task.
and then to move to next task in the process i used api
startTaskInstance.end(); // i intenssionally not used processInstance.signal() to move to next task because i want EndDate for the starting task.
 after doining all this when i try to delete processInstance of parent process("ProcessA") then i am getting exception.


Thanks And Regards
Prasad Basutkar
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101220/4ed51c03/attachment.html 


More information about the jboss-user mailing list