JBoss Community

Jbpm 5.4 spring configuration : Human Task is not created

created by mayank sahai in jBPM Development - View the full discussion

hi all ,

 

i am trying to use jbpm 5.4 with spring. i have created a simple business process definition with one HumanTask and rule Task.

 

Running UnitTest case (by extending JbpmJUnitTestCase) Process flow works fine and process completes successfully  BUT when i use spring configuration to deploy and run Business Process then  HumanTask is never created  in database , hence querying it using LocalTaskService results in Nothing.

 

i am using single persistence unit (process+task) and running a localTaskService to assign/complete workitem.

 

can somone please take a look and help.

 

There are two zip files :

 

1) (test-success) that contains persistence.xml used by test case , respective passing junit test case and console logs.

 

2) (process-spring) that contains spring config file , jbpm utility class (used to create session and taskservice), failing test case(uses this spring config) and console logs.

 

from two logs i can clearly see that in Testcase (uses spring config) process goes fine and inserts entry in workitemInfo table but the does not create an Entry in Task table.

 

i checked everything but unable to find a clue.

 

thanks

 

Mayank

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community