# File lib/ruote/exp/fe_listen.rb, line 129 def apply h.to = attribute(:to) || attribute(:on) upon = attribute(:upon) || 'apply' h.upon = (upon == 'reply') ? 'receive' : 'dispatch' h.lmerge = attribute(:merge).to_s h.lmerge = 'true' if h.lmerge == '' h.wfid = attribute(:wfid).to_s h.wfid = %w[ same current true ].include?(h.wfid) persist_or_raise @context.tracker.add_tracker( h.wfid ? h.fei['wfid'] : nil, h.upon, h.fei, { 'participant_name' => h.to }, { 'action' => 'reply', 'fei' => h.fei, 'flavour' => 'listen' }) end