View Source WorkflowMetal.Application.WorkflowsSupervisor (workflow_metal v0.2.1)
Supervise all workflows.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Retrieve the workflow from the storage and open it(start Supervisor
and its children).
Start the workflows supervisor to supervise all workflows.
Link to this section Types
Specs
application() :: WorkflowMetal.Application.t()
Specs
workflow_id() :: WorkflowMetal.Storage.Schema.Workflow.id()
Specs
workflow_schema() :: WorkflowMetal.Storage.Schema.Workflow.t()
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
open_workflow(application(), workflow_id()) :: WorkflowMetal.Registration.Adapter.on_start_child() | {:error, :workflow_not_found}
Retrieve the workflow from the storage and open it(start Supervisor
and its children).
Specs
start_link(application()) :: Supervisor.on_start()
Start the workflows supervisor to supervise all workflows.