All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.sonataflow.sonataflow-quarkus-integration-test.10.0.0.source-code.eventMultiple.sw.json Maven / Gradle / Ivy

{
  "id": "nonStartMultipleEvent",
  "version": "1.0",
  "expressionLang": "jsonpath",
  "name": "Workflow event test",
  "description": "An test of multiple non starting event",
  "start": "printWaitMessage",
  "events": [
    {
      "name": "quietEvent",
      "source": "",
      "type": "quiet",
      "dataOnly" : "false"
    },
    {
      "name": "neverArrivingEvent",
      "source": "",
      "type": "never"
    }
  ],
  "functions": [
    {
      "name": "printMessage",
      "type": "custom",
      "operation": "sysout"
    }
  ],
  "states": [
    {
      "name": "printWaitMessage",
      "type": "operation",
      "actions": [
        {
          "name": "printBeforeEvent",
          "functionRef": {
            "refName": "printMessage",
            "arguments": {
              "message": "$[*]"
            }
          }
        }
      ],
      "transition": "waitForEvent"
    },
    {
      "name": "waitForEvent",
      "type": "event",
       "onEvents": [
        {
          "eventRefs": [
            "quietEvent"
          ],
          "eventDataFilter": {
            "data": ".data"
          },
          "actions": [ 
          {
            "name": "printAfterEvent",
            "functionRef": {
              "refName": "printMessage",
              "arguments": {
                 "message": "$[*]"
              }
            }
          }
          ]
        },
         {
          "eventRefs": [
            "neverArrivingEvent"
          ],
          "eventDataFilter" : {
             "useData": false
          },
          "actions": [ 
          {
            "name": "printAfterEvent",
            "functionRef": {
              "refName": "printMessage",
              "arguments": {
                 "message": "$[*]"
              }
            }
          }
          ]
        }
       ],
      "exclusive": false, 
      "end": true
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy