# File lib/ruote/exp/fe_if.rb, line 82 def reply (workitem) if workitem['fei'] == h.fei # apply --> reply h.test = attribute(:test) h.test = attribute_text if h.test.nil? h.test = nil if h.test == '' offset = if h.test != nil Condition.true?(h.test) ? 0 : 1 else 0 end apply_child_if_present(offset, workitem) else # reply from a child if h.test != nil || Ruote::FlowExpressionId.child_id(workitem['fei']) != 0 reply_to_parent(workitem) else apply_child_if_present( workitem['fields']['__result__'] == true ? 1 : 2, workitem) end end end