View Source LightningWeb.WorkflowLive.Helpers (Lightning v2.10.4)
Helper functions for the Workflow LiveViews.
Summary
Functions
@spec run_workflow( Ecto.Changeset.t(Lightning.Workflows.Workflow.t()) | Lightning.Workflows.Workflow.t(), map(), selected_job: map(), created_by: map(), project: map() ) :: {:ok, %{ workorder: Lightning.WorkOrder.t(), workflow: Lightning.Workflows.Workflow.t(), message: Lightning.Extensions.UsageLimiting.message() }} | {:error, Ecto.Changeset.t(Lightning.Workflows.Workflow.t())} | {:error, Ecto.Changeset.t(Lightning.WorkOrders.Manual.t())} | {:error, Lightning.Extensions.UsageLimiting.message()} | {:error, :workflow_deleted}
@spec save_workflow( Ecto.Changeset.t(), struct() ) :: {:ok, Lightning.Workflows.Workflow.t()} | {:error, Ecto.Changeset.t() | Lightning.Extensions.UsageLimiting.message() | :workflow_deleted}