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.
111 112 113 |
# File 'lib/cmdx/workflow.rb', line 111 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.
130 131 132 |
# File 'lib/cmdx/workflow.rb', line 130 def work Pipeline.execute(self) end |