schema.states.switchstate.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.states.SwitchState",
"javaInterfaces": [
"io.serverlessworkflow.api.interfaces.State"
],
"description": "Permits transitions to other states based on criteria matching",
"extends": {
"$ref": "defaultstate.json"
},
"properties": {
"eventConditions": {
"type": "array",
"description": "Defines conditions evaluated against events",
"items": {
"type": "object",
"$ref": "../switchconditions/eventcondition.json"
}
},
"dataConditions": {
"type": "array",
"description": "Defines conditions evaluated against state data",
"items": {
"type": "object",
"$ref": "../switchconditions/datacondition.json"
}
},
"defaultCondition": {
"description": "Default transition of the workflow if there is no matching data conditions. Can include a transition or end definition",
"$ref": "../defaultcondition/defaultconditiondef.json"
},
"usedForCompensation": {
"type": "boolean",
"default": false,
"description": "If true, this state is used to compensate another state. Default is false"
}
},
"required": [
"default"
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy