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.asyncConsumer.sw.json Maven / Gradle / Ivy

The newest version!
{
  "id": "asyncEventConsumer",
  "version": "1.0",
  "name": "Workflow async consumer test",
  "description": "An test that verifies an async api spec file with a consumer channel is really waiting",
  "start": "printWaitMessage",
  "functions": [
    {
      "name": "printMessage",
      "type": "custom",
      "operation": "sysout"
    },
    {
      "name": "waitForEvent",
      "type": "asyncapi",
      "operation": "specs/asyncAPI.yaml#wait" 
    }
  ],
  "states": [
    {
      "name": "printWaitMessage",
      "type": "operation",
      "actions": [
        {
          "name": "printBeforeEvent",
          "functionRef": {
            "refName": "printMessage",
            "arguments": {
              "message": "."
            }
          }
        }
      ],
      "transition": "waitForEvent"
    },
    {
      "name": "waitForEvent",
      "type": "operation",
      "actions": [
          { 
           "name": "waitForEvent",
           "functionRef": "waitForEvent"
          }, 
          {
            "name": "printAfterEvent",
            "functionRef": {
              "refName": "printMessage",
              "arguments": {
                 "message": "."
              }
            }
          }
       ]
      , 
      "end": {
        "terminate": "true"
      }
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy