Create Workflow Signal
createWorkflowSignal Mutation
Creates a new WorkflowSignal that defines an event handler for a workflow.
Arguments
input
CreateWorkflowSignalInput!
Input data for creating the workflow signal
Return Type
WorkflowSignal - The created workflow signal.
Input Fields
CreateWorkflowSignalInput:
dataTypeID
UUID
Optional data type ID to associate with the signal
dataTypeSlug
String
Optional data type slug
data
Map
Custom data associated with the signal
eventName
String
Name of the event that this signal handles
start
Boolean
Whether this signal can start a new workflow instance
workflowID
ID!
Required ID of the workflow this signal belongs to
Usage Example
JavaScript Example
Important Notes
Workflow signals define the entry points and event handlers for workflows
Signals with
start: truecan initiate new workflow instances when triggeredSignals with
start: falseare used for signaling existing workflow instancesThe
eventNameshould match the events that will be published in the systemThe
datafield supports flexible JSON structures for signal configurationMultiple signals can be associated with the same workflow for different events
The workflow must exist before creating signals for it
Last updated
Was this helpful?
