Skip to main content

# Workflow

A workflow definition.

    type Workflow {
      id: ID!
      name: String!
      namespace: String!
      defaultVariant: WorkflowVariant
      variants: [WorkflowVariant!]!
      executions: [WorkflowExecution!]!
    }

### Fields​

#### `Workflow.id` ● `ID!` non-null scalar​

The workflow's ID.

#### `Workflow.name` ● `String!` non-null scalar​

The workflow name.

#### `Workflow.namespace` ● `String!` non-null scalar​

The workflow namespace. The workflow permissions are granted via namespace.

#### `Workflow.defaultVariant` ● `WorkflowVariant` object​

The default variant for a workflow. It doesn't have to have one.

#### `Workflow.variants` ● `[WorkflowVariant!]!` non-null object​

All the possible variants available for this workflow.

#### `Workflow.executions` ● `[WorkflowExecution!]!` non-null object​

All the associated workflow executions.

### Returned By​

`workflow` query ● `workflowById` query ● `workflows` query

### Member Of​

`WorkflowExecution` object ● `WorkflowVariant` object