schema.actions.action.json Maven / Gradle / Ivy
{
"type": "object",
"javaType": "io.serverlessworkflow.api.actions.Action",
"description": "Action Definition",
"properties": {
"id": {
"type": "string",
"description": "Unique action identifier"
},
"name": {
"type": "string",
"description": "Unique action definition name"
},
"functionRef": {
"description": "References a reusable function definition to be invoked",
"$ref": "../functions/functionref.json"
},
"eventRef": {
"description": "References a 'trigger' and 'result' reusable event definitions",
"$ref": "../events/eventref.json"
},
"subFlowRef": {
"description": "References a sub-workflow to invoke",
"$ref": "../functions/subflowref.json"
},
"sleep": {
"$ref": "../sleep/sleep.json"
},
"retryRef": {
"type": "string",
"description": "References a defined workflow retry definition. If not defined the default retry policy is assumed"
},
"nonRetryableErrors": {
"type": "array",
"description": "List of unique references to defined workflow errors for which the action should not be retried. Used only when `autoRetries` is set to `true`",
"minItems": 1,
"items": {
"type": "string"
}
},
"retryableErrors": {
"type": "array",
"description": "List of unique references to defined workflow errors for which the action should be retried. Used only when `autoRetries` is set to `false`",
"minItems": 1,
"items": {
"type": "string"
}
},
"actionDataFilter": {
"$ref": "../filters/actiondatafilter.json"
},
"condition": {
"description": "Expression, if defined, must evaluate to true for this action to be performed. If false, action is disregarded",
"type": "string",
"minLength": 1
}
},
"oneOf": [
{
"required": [
"functionRef"
]
},
{
"required": [
"eventRef"
]
},
{
"required": [
"subFlowRef"
]
}
]
}