[rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

Esteban Aliverti esteban.aliverti at gmail.com
Wed Apr 6 09:05:53 EDT 2011


Are you starting the process after loading the session? If so, then you are
starting a new instance of the process. The first process is still waiting
for the human task to be completed.

Best Regards,

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Wed, Apr 6, 2011 at 10:00 AM, gs76pl <gstasica at pacemetrics.com> wrote:

> hi,
>
> i've a simple drools flow process with one workItem (its execute method
> simply prints some text) and one human task. I'm using
> drools-persistence-jpa to save my process status and load it when
> process/server crashes.
> What i've noticed is that:
> 1. after starting process my processinfo table gets updated with a new
> process status (P1)
> 2. my workItem (W1) runs correctly and prints a text
> 3. a human task gets created
>  ----- when i stop my server at this point and restart my server executing
> below steps
> 1. load the session using
> JPAKnowledgeService.loadStatefulKnowledgeSession(myPreviousSessionId,....)
> 2. start the process
>
> At this point previously completed workItem (W1) gets executed once again
> and the same human task gets created !!
>
> I thought that perhaps the issue is with my transactionManager not
> committing steps but since i'm using local transaction (commit happens
> after
> any process step) its very unlikely.
> Is it a bug that the same workItem gets executed or is it intentional and
> it's up to the developer to check somewhere else whether specific step has
> been already finished or not..?
>
>
>
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-why-after-reloading-some-process-previously-completed-workItems-gets-executed-once-again-tp2784850p2784850.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110406/a0b977d9/attachment.html 


More information about the rules-users mailing list