LightningWeb.WorkflowController (Lightning v2.15.0-pre5)

View Source

Summary

Functions

Create a manual workflow run.

Get steps for a run filtered by job_id.

Retry an existing run from a specific step.

Functions

create_run(conn, params)

Create a manual workflow run.

Body:

  • job_id: Job to start from (required)
  • trigger_id: Trigger to start from (alternative to job_id)
  • dataclip_id: Existing dataclip ID (optional)
  • custom_body: Custom JSON input (optional)

Note: Either job_id or trigger_id must be provided. Either dataclip_id or custom_body can be provided, but not both.

get_run_steps(conn, arg2)

Get steps for a run filtered by job_id.

Query params:

  • job_id: Filter steps for a specific job (required)

Returns the step data including id, input_dataclip_id, and job_id. Used by the frontend to determine if a retry is available.

retry_run(conn, arg2)

Retry an existing run from a specific step.

Body:

  • step_id: The step ID to retry from (required)

Creates a new run on the same work order, copying independent upstream steps.