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

shared.switch-state-event-condition-timeouts-transition2.sw.json Maven / Gradle / Ivy

The newest version!
{
  "id": "switch_state_event_condition_timeouts_transition2",
  "name": "Switch State Event Condition Timeouts Transition2 Test",
  "version": "1.0",
  "start": "ChooseOnEvent",
  "events": [
    {
      "name": "visaApprovedEvent",
      "source": "",
      "type": "visa_approved_in_transition2"
    },
    {
      "name": "visaDeniedEvent",
      "source": "",
      "type": "visa_denied_in_transition2"
    },
    {
      "name": "sendProcessResultEvent",
      "kind": "produced",
      "type": "process_result_event_transition2"
    }
  ],
  "states": [
    {
      "name": "ChooseOnEvent",
      "type": "switch",
      "eventConditions": [
        {
          "eventRef": "visaApprovedEvent",
          "transition": "ApprovedVisa"
        },
        {
          "eventRef": "visaDeniedEvent",
          "transition": "DeniedVisa"
        }
      ],
      "defaultCondition": {
        "transition": "DeniedVisa"
      },
      "timeouts": {
        "eventTimeout": "PT5S"
      }
    },
    {
      "name": "ApprovedVisa",
      "type": "operation",
      "actions": [
        {
          "name": "sendApprovedVisaResult",
          "eventRef": {
            "triggerEventRef": "sendProcessResultEvent",
            "data": "{decision: \"Approved\"}"
          }
        }
      ],
      "end": true
    },
    {
      "name": "DeniedVisa",
      "type": "operation",
      "actions": [
        {
          "name": "sendDeniedVisaResult",
          "eventRef": {
            "triggerEventRef": "sendProcessResultEvent",
            "data": "{decision: \"Denied\"}"
          }
        }
      ],
      "end": true
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy