class Bizflow::ProcessInterpreter
Attributes
input_action_interpreter[RW]
process[RW]
task_action_interpreter[RW]
Public Class Methods
new(process_name)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 9 def initialize(process_name) @process = Bizflow::SemanticModel::Process.new(process_name) end
Public Instance Methods
description(description)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 29 def description(description) process.description = description end
handler_action(name, &action)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 25 def handler_action(name, &action) end
input_action(name, &action)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 13 def input_action(name, &action) input_action_interpreter = Bizflow::InputActionInterpreter.new(name) input_action_interpreter.instance_eval(&action) process.add_action(input_action_interpreter.action) end
start(action_name)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 33 def start(action_name) process.start = action_name end
task_action(name, &action)
click to toggle source
# File lib/bizflow/interpreters/process_interpreter.rb, line 19 def task_action(name, &action) task_action_interpreter = Bizflow::TaskActionInterpreter.new(name) task_action_interpreter.instance_eval(&action) process.add_action(task_action_interpreter.action) end