schema.error.error.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serverlessworkflow-api Show documentation
Show all versions of serverlessworkflow-api Show documentation
Java SDK for Serverless Workflow Specification
{
"type": "object",
"javaType": "io.serverlessworkflow.api.error.Error",
"properties": {
"errorRef": {
"type": "string",
"description": "Reference to a unique workflow error definition. Used of errorRefs is not used",
"minLength": 1
},
"errorRefs": {
"type": "array",
"description": "References one or more workflow error definitions. Used if errorRef is not used",
"minItems": 1,
"items": {
"type": "string"
}
},
"transition": {
"$ref": "../transitions/transition.json",
"description": "Transition to next state to handle the error. If retryRef is defined, this transition is taken only if retries were unsuccessful."
},
"end": {
"description": "End workflow execution in case of this error. If retryRef is defined, this ends workflow only if retries were unsuccessful.",
"$ref": "../end/end.json"
}
},
"required": [
"error",
"transition"
]
}