Re: [rules-users] Flow - handling multiple events of the same kind

2010-05-03 Thread Ed Staub


salaboy wrote:
 
 Can you give us a use case for that situation?
 
Sure!
The case is one where an asynchronous workitem - that is, one which doesn't
call completeWorkItem from within executeWorkItem - creates messages which
need to invoke additional business-process behavior.  These could be made to
invoke secondary processes, but there's a lot of economy in keeping their
behavior within the same process - error-handling, external aborting, and
monitoring are all a lot simpler.

-Ed

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Flow-handling-multiple-events-of-the-same-kind-tp767773p773509.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Flow - handling multiple events of the same kind

2010-05-03 Thread Ed Staub


salaboy wrote:
 
 Can you give us a use case for that situation?
 
Sure!
The case is one where an asynchronous workitem - that is, one which doesn't
call completeWorkItem from within executeWorkItem - creates messages which
need to invoke additional business-process behavior.  These could be made to
invoke secondary processes, but there's a lot of economy in keeping their
behavior within the same process - error-handling, external aborting, and
monitoring are all a lot simpler.

-Ed

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Flow-handling-multiple-events-of-the-same-kind-tp767773p773510.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Flow - handling multiple events of the same kind

2010-04-30 Thread Ed Staub

If the same event-node is triggered twice with different data, the same
variable will be recycled for the different data payloads.  How does one
ensure that data is not lost?

My best guess is to follow the event node with a composite node, and copy
the top-level variables into the composite's variable scope in the first
sub-node of the composite.  But I'm not sure whether I can guarantee that
the composite will be able to do that before the engine handles the second
event.

Suggestions?
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Flow-handling-multiple-events-of-the-same-kind-tp767773p767773.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Flow - handling multiple events of the same kind

2010-04-30 Thread Mauricio Salatino
Can you give us a use case for that situation?
to be able to understand the problem.
Greetings.

On Fri, Apr 30, 2010 at 9:03 AM, Ed Staub est...@telcordia.com wrote:


 If the same event-node is triggered twice with different data, the same
 variable will be recycled for the different data payloads.  How does one
 ensure that data is not lost?

 My best guess is to follow the event node with a composite node, and copy
 the top-level variables into the composite's variable scope in the first
 sub-node of the composite.  But I'm not sure whether I can guarantee that
 the composite will be able to do that before the engine handles the second
 event.

 Suggestions?
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Flow-handling-multiple-events-of-the-same-kind-tp767773p767773.html
 Sent from the Drools - User mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino Salaboy Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users