← All types
ProductionOb Object

TaskDefinitionState

A reusable task definition template with custom outcome options

Fields

Unique identifier

name

String!Non-null

Definition name

Optional description

Available outcome options; empty for journey templates

Simple (outcome options) or journey (the journey's outputs complete the task)

Possible values (2)
SIMPLE

Completed by choosing one of the template's outcome options

JOURNEY

Completed by running the template's journey; the journey's declared outputs complete the task

Handle of the journey a JOURNEY template runs; tasks use its current published version. Null for SIMPLE templates.

For JOURNEY templates: an object from journey input key to a workflow expression template (e.g. "{{ nodes.find.output.jobId }}") that the workflow task node evaluates to seed the journey. Null for SIMPLE templates.

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

Referenced by (4)
Exact type SDL
"""A reusable task definition template with custom outcome options"""
type TaskDefinitionState @iac_resource(name: "task_definition") @iac_ops(create: "createTaskDefinition", read: "getTaskDefinition", update: "updateTaskDefinition", delete: "deleteTaskDefinition") {
  """Unique identifier"""
  id: TaskDefinitionID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Definition name"""
  name: String!
  """Optional description"""
  description: String
  """Available outcome options; empty for journey templates"""
  options: [TaskDefinitionOption!]!
  """
  Simple (outcome options) or journey (the journey's outputs complete the task)
  """
  kind: TaskTemplateKind!
  """
  Handle of the journey a JOURNEY template runs; tasks use its current published version. Null for SIMPLE templates.
  """
  journeyHandle: String
  """
  For JOURNEY templates: an object from journey input key to a workflow expression template (e.g. "{{ nodes.find.output.jobId }}") that the workflow task node evaluates to seed the journey. Null for SIMPLE templates.
  """
  journeyInputMapping: JSON
  """Creation timestamp (ISO8601)"""
  createdAt: String! @iac_computed
  """Last update timestamp (ISO8601)"""
  updatedAt: String! @iac_computed
}