[rules-users] [Drools Flow] Stop a timer event

JAMAL Moundir (EXT) moundir.jamal-ext at sgcib.com
Wed Apr 6 11:35:21 EDT 2011


Hello,

I'm using Drools Flow 5, I have N Message  events waiting for a signal to be started,  I want to launch a Timer in the beginning of my WorkFlow, if one of the event is received, then I want to stop the Timer and execute my workflow, else I want to execute another branch of my workflow.

For example :


1-      Start

-          Launch the Timer of 30s

-          Wait for a Message (external event)

2-      Case 1   : External event received before 30s

-          Execute SubProcess 1 and stop the Timer
Case 2 :   Timer reached 30s

-          Execute SubProecss 2 and ignore the external event


How can I stop the Timer when the case 1 is verified ? Can I do such as thing with Drools Flow ?
In my current implementation even when the case 1 is verified, after the 30s the subProcess2 is also executed !

Did someone implement such us thing

Thanks,

Regards
*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
                              ************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes 
par le secret professionnel. 
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110406/89326bc6/attachment.html 


More information about the rules-users mailing list