pub struct WorkflowInstance {Show 13 fields
pub id: String,
pub name: String,
pub root_workflow_id: Option<String>,
pub workflow_definition_id: String,
pub version: u32,
pub description: Option<String>,
pub reference: Option<String>,
pub execution_pointers: Vec<ExecutionPointer>,
pub next_execution: Option<i64>,
pub status: WorkflowStatus,
pub data: Value,
pub create_time: DateTime<Utc>,
pub complete_time: Option<DateTime<Utc>>,
}Expand description
Workflowinstance.
Fields§
§id: StringUUID — the primary key, always unique, never changes.
name: StringHuman-friendly unique name, e.g. “ci-42”. Auto-assigned as
{definition_id}-{N} via a per-definition monotonic counter when
the caller does not supply an override. Used interchangeably with
id in lookup APIs. Empty when the instance has not yet been
persisted (the host fills it in before the first insert).
root_workflow_id: Option<String>UUID of the top-level ancestor workflow. None on the root
(user-started) workflow; set to the parent’s root_workflow_id
(or the parent’s id if the parent is itself a root) on every
SubWorkflowStep-created child.
Used by the Kubernetes executor to place all workflows in a tree
under a single namespace — siblings started via type: workflow
steps share the parent’s namespace and any provisioned shared
volume. Backends that don’t care about workflow topology can
ignore this field.
workflow_definition_id: StringWorkflow definition id.
version: u32Version.
description: Option<String>Description.
reference: Option<String>Reference.
execution_pointers: Vec<ExecutionPointer>Execution pointers.
next_execution: Option<i64>Next execution.
status: WorkflowStatusStatus.
data: ValueData.
create_time: DateTime<Utc>Create time.
complete_time: Option<DateTime<Utc>>Complete time.
Implementations§
Trait Implementations§
Source§impl Clone for WorkflowInstance
impl Clone for WorkflowInstance
Source§fn clone(&self) -> WorkflowInstance
fn clone(&self) -> WorkflowInstance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more