lib/ruote/engine/process_error.rb in ruote-2.1.9 vs lib/ruote/engine/process_error.rb in ruote-2.1.10
- old
+ new
@@ -67,9 +67,22 @@
def to_h
@h
end
+ # 'apply', 'reply', 'receive', ... Indicates in which "direction" the
+ # error occured.
+ #
+ def action
+ @h['msg']['action']
+ end
+
+ # Exposes the workitem fields directly.
+ #
+ def fields
+ @h['msg']['workitem']['fields']
+ end
+
protected
def to_dot (opts)
i = fei.to_storage_id