On Wed, Nov 26, 2008 at 3:31 PM, Raphael Simon <[EMAIL PROTECTED]> wrote:
>
> <try_sequence catch='catch_process' finally='finally_process'>
> <sequence>
> <participant ref='return_error'/>
> <participant ref='will_get_called_anyway'/>
> </sequence>
> <try_concurrence>
> <participant ref='will_get_aborted_if_a_fails'/>
> <participant ref='a'/>
> <try_sequence>
> <participant ref='return_error'/>
> <participant ref='wont_get_called'/>
> </try_sequence>
> </try_concurrence>
> <concurrence>
> <participant ref='will_finish_even_if_b_returns_an_error'>
> <participant ref='b'/>
> </concurrence>
> </try_sequence>
>
> I seem to prefer this approach to using a else-ref combined with an undo
> because I would have to use else-ref on each participant call (and as I
> mentioned previously the flows I'm working on involve many participant
> calls). With this I only have to specify the catch/finally subprocesses once
> and make sure to use try_sequence or try_concurrence appropriately.
OK.
I would have another proposal :
there is a service inside of the engine called the "error journal",
it's in fact an "observer" it observes the expression pool (the heart
of the engine) and registers events that are process errors. The
classical use case is "no such participant".
What about providing some way to link errors with segments of codes to
execute ? Something like "on-error".
<process-definition name="x">
<sequence on-error="y">
...
</sequence>
<process-definition name="y">
...
</process-definition>
</process-definition>
(not sure yet about the placement of on-error, have to find some
inspiration in BPMN)
(the error handling thing would short circuit the error journal)
?
--
John Mettraux - http://jmettraux.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---