Class: Shikibu::Integrations::ActiveJob::WorkflowJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Shikibu::Integrations::ActiveJob::WorkflowJob
- Defined in:
- lib/shikibu/integrations/active_job.rb
Overview
Base job for running workflows
Class Attribute Summary collapse
-
.workflow_class ⇒ Object
Returns the value of attribute workflow_class.
Instance Method Summary collapse
-
#perform(workflow_class: nil, **input) ⇒ Object
Run a workflow.
Class Attribute Details
.workflow_class ⇒ Object
Returns the value of attribute workflow_class.
34 35 36 |
# File 'lib/shikibu/integrations/active_job.rb', line 34 def workflow_class @workflow_class end |
Instance Method Details
#perform(workflow_class: nil, **input) ⇒ Object
Run a workflow
40 41 42 43 |
# File 'lib/shikibu/integrations/active_job.rb', line 40 def perform(workflow_class: nil, **input) klass = resolve_workflow_class(workflow_class) Shikibu.run(klass, **input) end |