lib/ruote/exp/flow_expression.rb
# Used locally but also by ConcurrenceExpression, when preparing children
# before they get applied.
#
Used locally but also by ConcurrenceExpression, when preparing children
before they get applied.
Used locally but also by ConcurrenceExpression when preparing children before they get applied .
def pre_apply_child(child_index, workitem, forget)
      child_fei = h.fei.merge(
        'expid' => "#{h.fei['expid']}_#{child_index}",
        'subid' => Ruote.generate_subid(h.fei.inspect))
      h.children << child_fei unless forget
      msg = {
        'fei' => child_fei,
        'tree' => tree.last[child_index],
        'parent_id' => forget ? nil : h.fei,
        'variables' => forget ? compile_variables : nil,
        'workitem' => workitem
      }
      msg['forgotten'] = true if forget
      msg
    end
def pre_apply_child ( child_index , workitem , forget ) child_fei = h . fei . merge ( 'expid' => "#{h.fei['expid']}_#{child_index}" , 'subid' => Ruote . generate_subid ( h . fei . inspect ) ) h . children << child_fei unless forget msg = { 'fei' => child_fei , 'tree' => tree . last [ child_index ] , 'parent_id' => forget ? nil : h . fei , 'variables' => forget ? compile_variables : nil , 'workitem' => workitem } msg [ 'forgotten' ] = true if forget msg end
Used locally but also by ConcurrenceExpression, when preparing children
before they get applied.
Used locally but also by ConcurrenceExpression when preparing children before they get applied .
child_index
workitem
forget