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
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/ruote-kit/helpers/json_helpers.rb', line 258 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 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 |