Class: Bizflow::SemanticModel::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/bizflow/semantic_model/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionsObject

Returns the value of attribute actions.



6
7
8
# File 'lib/bizflow/semantic_model/process.rb', line 6

def actions
  @actions
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/bizflow/semantic_model/process.rb', line 6

def description
  @description
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/bizflow/semantic_model/process.rb', line 6

def name
  @name
end

#startObject

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_actionsObject



22
23
24
# File 'lib/bizflow/semantic_model/process.rb', line 22

def input_actions
  actions.select { |acc| acc.type == "input"}
end

#task_actionsObject



18
19
20
# File 'lib/bizflow/semantic_model/process.rb', line 18

def task_actions
  actions.select { |acc| acc.type == "task" }
end