Class: Ruote::Exp::FlowExpression
- Inherits:
-
Object
- Object
- Ruote::Exp::FlowExpression
- Defined in:
- lib/ruote-kit/helpers/json_helpers.rb
Overview
Re-opening to provide an as_h method
Instance Method Summary collapse
Instance Method Details
#as_h(detailed = true) ⇒ Object
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/ruote-kit/helpers/json_helpers.rb', line 272 def as_h(detailed=true) r = {} r['fei'] = fei.sid r['parent'] = h.parent_id ? parent_id.sid : nil r['name'] = h.name r['class'] = self.class.name r['state'] = state if detailed r['variables'] = variables r['applied_workitem'] = h.applied_workitem['fields'] r['tree'] = tree r['original_tree'] = original_tree r['timeout_schedule_id'] = h.timeout_schedule_id end r end |