[jboss-user] [jBPM] - JBPM 5.4.0-Final: Human Task variables mapping persistence problem.

maq99 do-not-reply at jboss.com
Wed Jan 23 02:52:11 EST 2013


maq99 [https://community.jboss.org/people/maq99] created the discussion

"JBPM 5.4.0-Final: Human Task variables mapping persistence problem."

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

--------------------------------------------------------------
Hallo,

I have try to get help in simmilar topic  https://community.jboss.org/thread/218281?start=15&tstart=0 https://community.jboss.org/thread/218281?start=15&tstart=0 but withou success. So I decide to create new one. 
My problem is that I cannot get access to process variable set as a result in HumanTask1 from HumanTask2
This is my diagram:
 https://community.jboss.org/servlet/JiveServlet/showImage/2-792774-20169/Diagram.gif  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-792774-20169/Diagram.gif 
Short flow description: 
After process is started user:user1 pick object:wrapper (from external Wsdl) to edit, chenge its fields and confirm changes or reject it.
Eddited object is about to be placed as HT result and stored as process variables.
First gateway check if object have been placed (not null - go to commit) or changes have been rejected (is null - cancel & end process)
At begininig next HT (approval) log script is called, then it calls my custom EscalatedDeadlineHandler and send email to user:approver (HT2 task owner).
Approval base on object:wrapper from previous HT. Approval page display edited object:wrapper and shows changes made by user:user1
As a result Boolean value isApproved has to be added to proces variables. Next gateway check isApproved = true then go to submit changes (send back to store edited object - external Wsdl) - else goes to end.

Process is started correctly but I cannot see variables added at HT1 in database.
I also have problem with load/ reload disposed session.

I have seen and try: 
 http://stackoverflow.com/questions/7120600/completing-a-task-fails-after-calling-statefulsession-dispose http://stackoverflow.com/questions/7120600/completing-a-task-fails-after-calling-statefulsession-dispose
 https://community.jboss.org/thread/201901 https://community.jboss.org/thread/201901
 https://community.jboss.org/thread/171181 https://community.jboss.org/thread/171181
 https://community.jboss.org/message/745526#745526 https://community.jboss.org/message/745526
 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/session/VariablePersistenceStrategyTest.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/session/VariablePersistenceStrategyTest.java 
(try both strategies - i prefer to store serializable object but tested entity object to - object have been persisted - but i have not found reference to it in db process data)

Below test project sources can be found. Project base on Seam2.2 - required libs list (not attached) can be found in deployed-jars-ear.list & deployed-jars-war.list files
I have changed data source name at persistence. Project use Jboss7.1.3 with deployed jbpm-human-task-war-5.4.0.Final-EE6.war (also with changed DS name)
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130123/7e58a1b0/attachment.html 


More information about the jboss-user mailing list