Class: Bizflow::TaskActionInterpreter
- Inherits:
-
Object
- Object
- Bizflow::TaskActionInterpreter
- Defined in:
- lib/bizflow/interpreters/task_action_interpreter.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
Instance Method Summary collapse
- #description(description) ⇒ Object
-
#initialize(name) ⇒ TaskActionInterpreter
constructor
A new instance of TaskActionInterpreter.
- #input_task(name, options) ⇒ Object
- #next_action(name) ⇒ Object
- #task(name, options) ⇒ Object
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
#action ⇒ Object
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, ) task(name, ) 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, ) action.add_task(Bizflow::SemanticModel::Task.new(name, )) end |