Re: [rules-users] Drools flow question on proper exception handling / use of faults

2010-11-16 Thread Liße , Jan
No ideas? Seems to me like a pretty common question...

-Ursprüngliche Nachricht-
Von: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Liße, Jan
Gesendet: Freitag, 12. November 2010 11:45
An: 'rules-users@lists.jboss.org'
Betreff: [rules-users] Drools flow question on proper exception handling / use 
of faults

Hi,

I have a process workflow where an exception might occur within one Action. I 
need to react on this exception in the workflow. That means I don't want to 
skip the entire processing
I just want to react properly by setting an error variable and skip this 
specific item (my process iterates over a list of items).
Now I tried to model my Action together with a Fault Node within a 
CompositeNode as seen in the User manual section on exception handling. The 
outgoing connection
of my Action is connected with the Fault. The outgoing connection of the 
CompositeNode is connected with the next Action. When I run the process it 
comes to the Action node and hangs there if no exception occurs (the next 
Action is never reached). Looking at the model this is reasonable since the 
outgoing connection leads to the Fault node. So my question is how can I 
properly model this kind of exception handling, where I need two ways of 
execution (one if everything goes fine, and one for fault handling)? Wrapping 
everything inside a CompositeNode alone does not seem to be sufficient...

Thanks in advance for any help!
-Jan

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools flow question on proper exception handling / use of faults

2010-11-12 Thread Liße , Jan
Hi,

I have a process workflow where an exception might occur within one Action. I 
need to react on this exception in the workflow. That means I don't want to 
skip the entire processing
I just want to react properly by setting an error variable and skip this 
specific item (my process iterates over a list of items).
Now I tried to model my Action together with a Fault Node within a 
CompositeNode as seen in the User manual section on exception handling. The 
outgoing connection
of my Action is connected with the Fault. The outgoing connection of the 
CompositeNode is connected with the next Action. When I run the process it 
comes to the Action node and hangs there if no exception occurs (the next 
Action is never reached). Looking at the model this is reasonable since the 
outgoing connection leads to the Fault node. So my question is how can I 
properly model this kind of exception handling, where I need two ways of 
execution (one if everything goes fine, and one for fault handling)? Wrapping 
everything inside a CompositeNode alone does not seem to be sufficient...

Thanks in advance for any help!
-Jan

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Flow question

2009-05-26 Thread coffee_rancher

Let's say I have a flow: start - step1 - step2 - step3 - end. We execute the
flow and it fails at step 3. To be more concrete let's assume that we are
talking of provisioning of some items. Since we do not want to provision the
same items twice we obviously do not want to repeat steps 1 and 2 when we
re-execute the process . The question is: is it responsibility of the user
to skip those steps or the engine has some mechanism of tracing that?
-- 
View this message in context: 
http://www.nabble.com/Drools-Flow-question-tp23726193p23726193.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