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

schema.states.switchstate.json Maven / Gradle / Ivy

There is a newer version: 7.0.0-alpha5.1
Show newest version
{
  "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