Class: SimplerWorkflow::Workflow::DefaultEventHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/simpler_workflow/workflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow) ⇒ DefaultEventHandler

Returns a new instance of DefaultEventHandler.



154
155
156
# File 'lib/simpler_workflow/workflow.rb', line 154

def initialize(workflow)
  @workflow = workflow
end

Instance Attribute Details

#workflowObject

Returns the value of attribute workflow.



152
153
154
# File 'lib/simpler_workflow/workflow.rb', line 152

def workflow
  @workflow
end

Instance Method Details

#call(*args) ⇒ Object



178
# File 'lib/simpler_workflow/workflow.rb', line 178

def call(*args); end

#domainObject



162
163
164
# File 'lib/simpler_workflow/workflow.rb', line 162

def domain
  workflow.domain
end

#initial_activity_typeObject



174
175
176
# File 'lib/simpler_workflow/workflow.rb', line 174

def initial_activity_type
  workflow.initial_activity_type
end

#last_activity(*args) ⇒ Object



166
167
168
# File 'lib/simpler_workflow/workflow.rb', line 166

def last_activity(*args)
  workflow.last_activity(*args)
end

#last_input(*args) ⇒ Object



170
171
172
# File 'lib/simpler_workflow/workflow.rb', line 170

def last_input(*args)
  workflow.last_input(*args)
end

#scheduled_event(*args) ⇒ Object



158
159
160
# File 'lib/simpler_workflow/workflow.rb', line 158

def scheduled_event(*args)
  workflow.scheduled_event(*args)
end