← All types
Platform & adminIn Input object

CreateTaskDefinitionInput

Input for creating a task definition

Fields

name

String!Required

Definition name

Optional description

Outcome options; must be empty for JOURNEY templates

SIMPLE (the default) or JOURNEY

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 a published journey; required for JOURNEY templates, not allowed for SIMPLE ones

For JOURNEY templates: an object from journey input key to a workflow expression template string. Every key must be one of the journey's inputs, and every required input must be mapped.

Referenced by (1)
Exact type SDL
"""Input for creating a task definition"""
input CreateTaskDefinitionInput {
  """Definition name"""
  name: String!
  """Optional description"""
  description: String
  """Outcome options; must be empty for JOURNEY templates"""
  options: [TaskDefinitionOptionInput!]!
  """SIMPLE (the default) or JOURNEY"""
  kind: TaskTemplateKind
  """
  Handle of a published journey; required for JOURNEY templates, not allowed for SIMPLE ones
  """
  journeyHandle: String
  """
  For JOURNEY templates: an object from journey input key to a workflow expression template string. Every key must be one of the journey's inputs, and every required input must be mapped.
  """
  journeyInputMapping: JSON
}