def dispatch_pause(msg)

      action = (msg['action'] == 'dispatch_resume' ? :on_resume : :on_pause)

      participant = @context.plist.instantiate(
        msg['participant'], :if_respond_to? => action)

      return unless participant

      Ruote.participant_send(
        participant,
        action,
        'fei' => Ruote::FlowExpressionId.new(msg['fei']), :default => false)
    end
def dispatch_pause(msg)

      action = (msg['action'] == 'dispatch_resume' ? :on_resume : :on_pause)

      participant = @context.plist.instantiate(
        msg['participant'], :if_respond_to? => action)

      return unless participant

      Ruote.participant_send(
        participant,
        action,
        'fei' => Ruote::FlowExpressionId.new(msg['fei']), :default => false)
    end
Instantiates the participant and calls its on_pause (or on_resume) method.