module PIM::Workflow
Public Class Methods
execute_workflow_task(event_name, event_parameters, event_retry_counter, workflow_script)
click to toggle source
# File workflow.rb, line 52 def self.execute_workflow_task event_name, event_parameters, event_retry_counter, workflow_script begin $event = event_name $parameters = event_parameters $retry_counter = event_retry_counter load workflow_script rescue => e raise e ensure # Javaify event parameters, in case they were updated # This way they can be serialized if a re-try task is created PIM.javaify(event_parameters) end end
workflow(event = nil, parameters = nil, &block)
click to toggle source
# File workflow.rb, line 45 def self.workflow event = nil, parameters = nil, &block event ||= $event parameters ||= $parameters handler = WorkflowHandler.new(event, parameters) handler.workflow(&block) end