Class: Bizflow::TaskActionInterpreter

Inherits:
Object
  • Object
show all
Defined in:
lib/bizflow/interpreters/task_action_interpreter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ TaskActionInterpreter

Returns a new instance of TaskActionInterpreter.



9
10
11
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 9

def initialize(name)
  @action = Bizflow::SemanticModel::TaskAction.new(name)
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



7
8
9
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 7

def action
  @action
end

Instance Method Details

#description(description) ⇒ Object



17
18
19
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 17

def description(description)
  action.description = description
end

#input_task(name, options) ⇒ Object



25
26
27
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 25

def input_task(name, options)
  task(name, options)
end

#next_action(name) ⇒ Object



13
14
15
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 13

def next_action(name)
  action.next_action = name
end

#task(name, options) ⇒ Object



21
22
23
# File 'lib/bizflow/interpreters/task_action_interpreter.rb', line 21

def task(name, options)
  action.add_task(Bizflow::SemanticModel::Task.new(name, options))
end