# File lib/ruote/exp/flow_expression.rb, line 124 def initialize(context, h) @context = context @msg = nil # contains generally the msg the expression got instantiated for self.h = h h._id ||= Ruote.to_storage_id(h.fei) h['type'] ||= 'expressions' h.name ||= self.class.expression_names.first h.children ||= [] h.applied_workitem['fei'] = h.fei h.created_time ||= Ruote.now_to_utc_s h.on_cancel ||= attribute(:on_cancel) h.on_error ||= attribute(:on_error) h.on_timeout ||= attribute(:on_timeout) h.on_terminate ||= attribute(:on_terminate) end