Module: CMDx::Workflow
- Defined in:
- lib/cmdx/workflow.rb
Overview
Provides workflow execution capabilities by organizing tasks into execution groups. Workflows allow you to define sequences of tasks that can be executed conditionally with breakpoint handling and context management.
Defined Under Namespace
Modules: ClassMethods Classes: ExecutionGroup
Class Method Summary collapse
-
.included(base) ⇒ Object
Extends the including class with workflow capabilities.
Instance Method Summary collapse
-
#work ⇒ Object
Executes the workflow by processing all tasks in the pipeline.
Class Method Details
.included(base) ⇒ Object
Extends the including class with workflow capabilities.
94 95 96 |
# File 'lib/cmdx/workflow.rb', line 94 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#work ⇒ Object
Executes the workflow by processing all tasks in the pipeline. This method delegates execution to the Pipeline class which handles the processing of tasks with proper error handling and context management.
113 114 115 |
# File 'lib/cmdx/workflow.rb', line 113 def work Pipeline.execute(self) end |