[jboss-dev-forums] [jBPM Development] - Re: Workflow not progressing after user task

Vinay Bommarati do-not-reply at jboss.com
Tue Mar 13 07:40:14 EDT 2012


Vinay Bommarati [https://community.jboss.org/people/vinayknr41] created the discussion

"Re: Workflow not progressing after user task"

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

--------------------------------------------------------------
Hi I am using the demo setup. In the examples I have added one more process and a java program to execute that process. 
In the process I have a start Event -> Service Task -> User task -> End event. For the user task I have defined krisv as actor. 
When I am starting the process using persistence only then the workflow is not forwarded.

If I start the session like the following I am getting the error.
return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env);
But when I create the session like the following workflow is forwarded properly.
 return kbase.newStatefulKnowledgeSession();

The processinstance log gives the following information.

Process 'ServiceTask' [1]
Hibernate: select nodeinstan0_.id as id4_, nodeinstan0_.log_date as log2_4_, nodeinstan0_.nodeId as nodeId4_, nodeinstan0_.nodeInstanceId as nodeInst4_4_, nodeinstan0_.nodeName as nodeName4_, nodeinstan0_.processId as processId4_, nodeinstan0_.processInstanceId as processI7_4_, nodeinstan0_.type as type4_ from NodeInstanceLog nodeinstan0_ where nodeinstan0_.processInstanceId=? order by nodeinstan0_.log_date
Triggered Node Instance 'ServiceTask#1' (Start) [1#0]
Left Node Instance 'ServiceTask#1' (Start) [1#0]
Triggered Node Instance 'ServiceTask#5' (Service Task) [1#1]
Left Node Instance 'ServiceTask#5' (Service Task) [1#1]
Triggered Node Instance 'ServiceTask#6' (User Task) [1#2]
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120313/72d52d44/attachment.html 


More information about the jboss-dev-forums mailing list