Hello,

I'm using Ruote::ProcessObserver#on_error_intercepted to perform some error 
handling when an error happens within a process instance.  In this method, 
I am trying to figure out which flow expression caused the error.  I see 
that the options argument contains a workitem, so I was hopng that's how I 
would know, however the workitem is empty (i.e. options[:workitem].to_h 
returns an empty hash).  Because of that, I don't see a way to connect the 
specific error to the flow expression that caused the error.

Inspecting the Ruote::ProcessObserver code, I see how this happens - there 
is code in Ruote::ProcessObserver#on_msg that creates an empty 
Ruote::Workitem if the msg passed to this method does not contain a 
workitem.  That is what is happening in my case.  I've attached a short 
test case that demonstrates this issue, and I'm using the latest ruote in 
Github.

Does anyone know if this is the correct/intended behavior, that there isn't 
a workitem in this situation?  It feels like a workitem should be 
available, but I'm still relatively new to ruote, so perhaps I'm missing 
something in my understanding of how workitems are handled by ruote.  If 
this is proper behavior, is there any way else to know within 
Ruote::ProcessObserver#on_error_intercepted what flow expression caused the 
error?

Thanks,
Denis

-- 
-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Attachment: ruote-replay-test.rb
Description: Binary data

Reply via email to