
e.sonataflow.sonataflow-quarkus-integration-test.10.0.0.source-code.eventWithError.sw.json Maven / Gradle / Ivy
{
"id": "eventTimedout",
"version": "1.0",
"expressionLang": "jsonpath",
"name": "Workflow event test",
"description": "An test of a non starting event with timeout error",
"start": "printWaitMessage",
"events": [
{
"name": "moveEvent",
"source": "",
"type": "move"
}
],
"errors": [
{
"name": "timeoutError",
"code": "TimedOut"
}
],
"functions": [
{
"name": "printMessage",
"type": "custom",
"operation": "sysout"
},
{
"name": "publishTimeoutExpired",
"type": "asyncapi",
"operation": "specs/callbackResults.yaml#sendTimeoutExpiredError"
}
]
,
"states": [
{
"name": "printWaitMessage",
"type": "operation",
"actions": [
{
"name": "printBeforeEvent",
"functionRef": {
"refName": "printMessage",
"arguments": {
"message": "$[*]"
}
}
}
],
"transition": "waitForEvent"
},
{
"name": "waitForEvent",
"type": "event",
"onEvents": [
{
"eventRefs": [
"moveEvent"
],
"actions": [
{
"name": "printAfterEvent",
"functionRef": {
"refName": "printMessage",
"arguments": {
"message": "$[*]"
}
}
}
]
}
],
"onErrors": [
{
"errorRef": "timeoutError",
"transition": "PublishTimeout"
}
],
"timeouts": {
"eventTimeout": "PT5S"
},
"end":true
},
{
"name": "PublishTimeout",
"type": "operation",
"actions": [
{
"name": "publishTimeoutExpired",
"functionRef": "publishTimeoutExpired"
}
],
"end": "true"
}
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy