I know Ruote provides ways to handle planned errors (some one messed
something up, so the boss needs to be notified, etc.).
But what about when an unplanned error occurs?? I've been working
really hard trying to figure this out for weeks and I can't make much
progress.
What happens if an error is raised in a participant? Most of the time,
the participant exits, but there is no error message.
What happens if you "raise" an error... as far as I can tell, the
participant exists but there is no error message printed. The only way
to see anything is to set engine.context.logger.noisy = true but that
seems round about.
Also, this code seems to print no errors, even if you raise an error
in one of the participants:
result = engine.wait_for(wfid)
engine.processes.each do |ps|
next if ps.errors.size == 0 # NOTE, even if you raise an error in a
participant, errors.size still == 0
ps.errors.error_message.each{|e|
puts "Error:
",e.wfid,e.error_class,e.error_message,e.when.inspect,e.error_backtrace.inspect
}
# puts "Errors: #{ps.errors.inspect}"
# puts "#{ps.wfid}\t#{ps.wfrevision}\t#{ps.errors.size}
\t#{ps.paused}"
# BY THE WAY... the documentation suggests this code, but these fields
don't exist (which then DOES raise an error directly)
end
Thank you!
-Greg
--
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
To unsubscribe from this group, send email to
openwferu-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.