Events and Payloads
The Tailor Platform offers a wide range of events that allow you to trigger specific actions within your applications. These events play a crucial role in building dynamic workflows and enable you to automate processes based on real-time data changes. Refer to the Event based trigger section for details on using and configuring events.
Below is a list of supported events and their payloads.
Tailor DB
1. tailordb.type_record.created
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
typeName | String : Name of the type. |
newRecord | Object : The new record added to Tailor DB. |
2. tailordb.type_record.updated
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
typeName | String : Name of the type. |
oldRecord | Object : The old record in Tailor DB. |
newRecord | Object : The updated record in Tailor DB. |
3. tailordb.type_record.deleted
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
typeName | String : Name of the type. |
oldRecord | Object : The deleted record. |
StateFlow
1. stateflow.state_flow.created
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
stateFlowId | String : StateFlow ID. |
stateFlowName | String : Name of the StateFlow. |
2. stateflow.state_flow.deleted
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
stateFlowId | String : StateFlow ID. |
stateFlowName | String : Name of the StateFlow. |
3. stateflow.state.created
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
stateId | String : State ID. |
stateFlowId | String : StateFlow ID. |
stateName | String : State Name. |
resourceId | String : Resource ID, e.g., userId or roleId. |
4. stateflow.state.transitioned
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
stateId | String : State ID. |
stateFlowId | String : StateFlow ID. |
resourceId | String : Resource ID, e.g., userId or roleId. |
approverId | String : Approver ID, e.g., userId or roleId. |
action | String : Name of the action. |
fromStateName | String : Name of the prev State. |
toStateName | String : Name of the transitioned State. |
Pipeline
1. pipeline.resolver.executed
Field Name | Description |
---|
workspaceId | String : The workspace ID where the event occurred. |
namespaceName | String : Name of the application. |
resolverName | String : Name of the pipeline resolver. |
succeeded.result | Object : The result object contains pipelines and resolver data. |
failed.error | String : The error message provides details about the cause of the error. |