lib/ruote/engine/process_error.rb in ruote-2.1.10 vs lib/ruote/engine/process_error.rb in ruote-2.1.11
- old
+ new
@@ -48,10 +48,14 @@
def fei
Ruote::FlowExpressionId.new(msg['fei'])
end
+ def wfid
+ msg['fei']['wfid']
+ end
+
def tree
@h['msg']['tree']
end
def at
@@ -78,9 +82,15 @@
# Exposes the workitem fields directly.
#
def fields
@h['msg']['workitem']['fields']
+ end
+
+ # Returns an instance of Ruote::Workitem
+ #
+ def workitem
+ Ruote::Workitem.new(msg['workitem'])
end
protected
def to_dot (opts)