We are trying to work out how to simply perform error handling within a 
workflow - where any implementation of a work item can detect an exception 
circumstance and then cause the workflow to abort with the relevant information 
and error handling.
We currently do this by the work item handler catching the exception, setting 
it as an out parameter, having a split node after every step which then forks 
to an error handler step and then an abort step.  This means more of the flow 
is boiler plate error handling logic than the actual important business logic - 
making it much harder to maintain and understand.
Signals seem like they should be a cleaner way to implement this without 
branching and duplicate nodes for every business step.

Thomas

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino
Sent: 08 March 2012 16:48
To: Rules Users List
Subject: Re: [rules-users] Raising event signal from work item handler

Do you mean a ksession.signalEvent()??
Usually the work item is considered an execution outside the process context, 
so are not supposed to access the process context from there. Can you explains 
us a little bit about your use case?
2012/3/8 Swindells, Thomas <tswinde...@nds.com<mailto:tswinde...@nds.com>>
Within a work item, if you need to signal an event how would you do it?
>From a rules task you have access to the kcontext but generically this isn't 
>available.

Thanks,

Thomas

________________________________

**************************************************************************************
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com<mailto:postmas...@nds.com> and delete it from your system as 
well as any copies. The content of e-mails as well as traffic data may be 
monitored by NDS for employment and security purposes. To protect the 
environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users



--
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ 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

Reply via email to