Method: ProcessEngine::Listener::Base#execute

Defined in:
app/models/process_engine/listener/base.rb

#executeObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/process_engine/listener/base.rb', line 13

def execute
  listener_type = listener[:type]

  case listener_type
  when "class_name"
    execute_class_name
  when "delegate_expression"
    execute_delegate_expression
  when "expression"
    execute_expression
  when "script"
    execute_script
  else
    raise "No such type (#{listener_type}) supported"
  end
end