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

Specs

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

open_workflow(application, workflow_id)

View Source

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.