[jboss-user] [jBPM] - Re: How do you implement data persistence in jbpm5 and simulate multiple trials in between nodes?

Mauricio Salatino do-not-reply at jboss.com
Tue Jul 24 03:01:25 EDT 2012

Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: How do you implement data persistence in jbpm5 and simulate multiple trials in between nodes?"

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

Hi Bing,
1) you don't need to implement persistence, you just need to configure it to work in your environment. if you take a look at the error that you paste here, you will notice that is a JPA error, not a jBPM error.
So you need to check your persistence.xml file and the persistence unit defined inside it. But this is a java question, not specific to jBPM. The error in this case is saying that you have a JPQL (JPA query) which uses the ProcessInstanceInfo and you don't have that entity defined as an entity inside the persistence unit configuration.
2) So, as far as I understand you want to execute an automatic activity, which is writing a file and then a human task to control that right? Then the loop can be implemented with a ServiceTask + a HUman task and the required gateways to draw the loop.

3) If you are using persistent session, you should pass the persisted session ID in order to restore your session and then be able to signal an event. Notice that the event is being signaled at session level, which means that you can do much more things that just signaling a specific process instance.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120724/15df2122/attachment.html 

More information about the jboss-user mailing list