Methods

Class/Module Index [+]

Quicksearch

Ruote::Exp::CancelProcessExpression

Cancels a whole process instance.

pdef = Ruote.process_definition :name => 'test' do
  sequence do
    participant :ref => 'editor'
    concurrence do
      participant :ref => 'reviewer1'
      participant :ref => 'reviewer2'
      sequence do
        participant :ref => 'main_reviewer'
        cancel_process :if => '${f:over} == true'
      end
    end
    participant :ref => 'editor'
  end
end

This example has a 'main_reviewer' with the ability to cancel the whole process, if he sets the workitem field 'over' to 'true'.

If the goal is to cancel only a segment of a process instance, the expression 'undo' (Ruote::Exp::UndoExpression) is better suited.

Public Instance Methods

apply() click to toggle source
# File lib/ruote/exp/fe_cancel_process.rb, line 56
def apply

  @context.storage.put_msg('cancel_process', 'wfid' => h.fei['wfid'])
end
reply(workitem) click to toggle source
# File lib/ruote/exp/fe_cancel_process.rb, line 61
def reply (workitem)

  # never called
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.