Class: Bizflow::SemanticModel::Process
- Inherits:
-
Object
- Object
- Bizflow::SemanticModel::Process
- Defined in:
- lib/bizflow/semantic_model/process.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
- #add_action(action) ⇒ Object
-
#initialize(name) ⇒ Process
constructor
A new instance of Process.
- #input_actions ⇒ Object
- #task_actions ⇒ Object
Constructor Details
#initialize(name) ⇒ Process
Returns a new instance of Process.
8 9 10 11 12 |
# File 'lib/bizflow/semantic_model/process.rb', line 8 def initialize(name) @name = name @actions = [] @roles = [] end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
6 7 8 |
# File 'lib/bizflow/semantic_model/process.rb', line 6 def actions @actions end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/bizflow/semantic_model/process.rb', line 6 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/bizflow/semantic_model/process.rb', line 6 def name @name end |
#start ⇒ Object
Returns the value of attribute start.
6 7 8 |
# File 'lib/bizflow/semantic_model/process.rb', line 6 def start @start end |
Instance Method Details
#add_action(action) ⇒ Object
14 15 16 |
# File 'lib/bizflow/semantic_model/process.rb', line 14 def add_action(action) actions << action end |
#input_actions ⇒ Object
22 23 24 |
# File 'lib/bizflow/semantic_model/process.rb', line 22 def input_actions actions.select { |acc| acc.type == "input"} end |
#task_actions ⇒ Object
18 19 20 |
# File 'lib/bizflow/semantic_model/process.rb', line 18 def task_actions actions.select { |acc| acc.type == "task" } end |