StepFlow.Workflows (StepFlow v0.2.7) View Source

The Workflows context.

Link to this section Summary

Link to this section Functions

Link to this function

change_workflow(workflow)

View Source

Returns an %Ecto.Changeset{} for tracking workflow changes.

Examples

iex> change_workflow(workflow)
%Ecto.Changeset{source: %Workflow{}}
Link to this function

create_workflow(attrs \\ %{})

View Source

Creates a workflow.

Examples

iex> create_workflow(%{field: value})
{:ok, %Workflow{}}

iex> create_workflow(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function

delete_workflow(workflow)

View Source

Deletes a Workflow.

Examples

iex> delete_workflow(workflow)
{:ok, %Workflow{}}

iex> delete_workflow(workflow)
{:error, %Ecto.Changeset{}}
Link to this function

get_statistics_per_identifier(scale, delta)

View Source
Link to this function

get_step_definition(job)

View Source
Link to this function

get_step_status(steps, workflow_jobs, result \\ [])

View Source

Gets a single workflows.

Raises Ecto.NoResultsError if the Workflow does not exist.

Examples

iex> get_workflows!(123)
%Workflow{}

iex> get_workflows!(456)
** (Ecto.NoResultsError)
Link to this function

get_workflow_history(map)

View Source
Link to this function

list_workflows(params \\ %{})

View Source

Returns the list of workflows.

Examples

iex> list_workflows()
[%Workflow{}, ...]
Link to this function

notification_from_job(job_id, description \\ nil)

View Source
Link to this function

update_workflow(workflow, attrs)

View Source

Updates a workflow.

Examples

iex> update_workflow(workflow, %{field: new_value})
{:ok, %Workflow{}}

iex> update_workflow(workflow, %{field: bad_value})
{:error, %Ecto.Changeset{}}