v1

latestOpenAPI 3.0.0Apache-2.02026-07-172384109.4 KB

for invoking WorkflowState.decide API

post/api/v1/workflowState/decide

Request body

workflowTypestring required
workflowStateIdstring required

Example request

{
  "stateLocals": [
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    },
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    }
  ],
  "workflowStateId": "workflowStateId",
  "commandResults": {
    "signalResults": [
      {
        "signalRequestStatus": null,
        "signalChannelName": "signalChannelName",
        "commandId": "commandId",
        "signalValue": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        }
      },
      {
        "signalRequestStatus": null,
        "signalChannelName": "signalChannelName",
        "commandId": "commandId",
        "signalValue": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        }
      }
    ],
    "stateWaitUntilFailed": true,
    "interStateChannelResults": [
      {
        "channelName": "channelName",
        "commandId": "commandId",
        "value": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        },
        "requestStatus": null
      },
      {
        "channelName": "channelName",
        "commandId": "commandId",
        "value": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        },
        "requestStatus": null
      }
    ],
    "stateStartApiSucceeded": true,
    "timerResults": [
      {
        "timerStatus": null,
        "commandId": "commandId"
      },
      {
        "timerStatus": null,
        "commandId": "commandId"
      }
    ]
  },
  "context": {
    "firstAttemptTimestamp": 6,
    "workflowStartedTimestamp": 0,
    "workflowRunId": "workflowRunId",
    "attempt": 1,
    "workflowId": "workflowId",
    "stateExecutionId": "stateExecutionId"
  },
  "workflowType": "workflowType",
  "searchAttributes": [
    {
      "stringValue": "stringValue",
      "valueType": null,
      "integerValue": 6,
      "boolValue": true,
      "doubleValue": 7.457744773683766,
      "stringArrayValue": [
        "stringArrayValue",
        "stringArrayValue"
      ],
      "key": "key"
    },
    {
      "stringValue": "stringValue",
      "valueType": null,
      "integerValue": 6,
      "boolValue": true,
      "doubleValue": 7.457744773683766,
      "stringArrayValue": [
        "stringArrayValue",
        "stringArrayValue"
      ],
      "key": "key"
    }
  ],
  "DataObjects": [
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    },
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    }
  ],
  "stateInput": {
    "data": "data",
    "extStoreId": "extStoreId",
    "extPath": "extPath",
    "encoding": "encoding"
  }
}

Response

successful operation

localActivityInputstring

Example response

{
  "upsertSearchAttributes": [
    {
      "stringValue": "stringValue",
      "valueType": null,
      "integerValue": 6,
      "boolValue": true,
      "doubleValue": 7.457744773683766,
      "stringArrayValue": [
        "stringArrayValue",
        "stringArrayValue"
      ],
      "key": "key"
    },
    {
      "stringValue": "stringValue",
      "valueType": null,
      "integerValue": 6,
      "boolValue": true,
      "doubleValue": 7.457744773683766,
      "stringArrayValue": [
        "stringArrayValue",
        "stringArrayValue"
      ],
      "key": "key"
    }
  ],
  "recordEvents": [
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    },
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    }
  ],
  "stateDecision": {
    "nextStates": [
      {
        "stateId": "stateId",
        "stateOptions": {
          "searchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiTimeoutSeconds": 2,
          "startApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "waitUntilApiFailurePolicy": null,
          "dataObjectsLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "skipWaitUntil": true,
          "startApiFailurePolicy": null,
          "dataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiDataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "decideApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "executeApiFailureProceedStateId": "executeApiFailureProceedStateId",
          "decideApiTimeoutSeconds": 1,
          "executeApiSearchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "startApiTimeoutSeconds": 6,
          "executeApiFailurePolicy": null,
          "executeApiFailureProceedStateOptions": null,
          "waitUntilApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "waitUntilApiSearchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "skipStartApi": true,
          "waitUntilApiTimeoutSeconds": 3,
          "waitUntilApiDataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          }
        },
        "stateInput": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        },
        "waitForKey": "waitForKey"
      },
      {
        "stateId": "stateId",
        "stateOptions": {
          "searchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiTimeoutSeconds": 2,
          "startApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "waitUntilApiFailurePolicy": null,
          "dataObjectsLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "skipWaitUntil": true,
          "startApiFailurePolicy": null,
          "dataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiDataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "decideApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "executeApiFailureProceedStateId": "executeApiFailureProceedStateId",
          "decideApiTimeoutSeconds": 1,
          "executeApiSearchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "startApiTimeoutSeconds": 6,
          "executeApiFailurePolicy": null,
          "executeApiFailureProceedStateOptions": null,
          "waitUntilApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          },
          "waitUntilApiSearchAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "skipStartApi": true,
          "waitUntilApiTimeoutSeconds": 3,
          "waitUntilApiDataAttributesLoadingPolicy": {
            "lockingKeys": [
              "lockingKeys",
              "lockingKeys"
            ],
            "lazyLoadingLargeDataAttributes": true,
            "useKeyAsPrefix": true,
            "partialLoadingKeys": [
              "partialLoadingKeys",
              "partialLoadingKeys"
            ],
            "persistenceLoadingType": null
          },
          "executeApiRetryPolicy": {
            "maximumAttemptsDurationSeconds": 9,
            "maximumAttempts": 7,
            "initialIntervalSeconds": 5,
            "maximumIntervalSeconds": 2,
            "backoffCoefficient": 5.637377
          }
        },
        "stateInput": {
          "data": "data",
          "extStoreId": "extStoreId",
          "extPath": "extPath",
          "encoding": "encoding"
        },
        "waitForKey": "waitForKey"
      }
    ],
    "conditionalClose": {
      "closeInput": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "channelName": "channelName",
      "conditionalCloseType": null
    }
  },
  "localActivityInput": "localActivityInput",
  "publishToInterStateChannel": [
    {
      "channelName": "channelName",
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      }
    },
    {
      "channelName": "channelName",
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      }
    }
  ],
  "upsertStateLocals": [
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    },
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    }
  ],
  "upsertDataObjects": [
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    },
    {
      "value": {
        "data": "data",
        "extStoreId": "extStoreId",
        "extPath": "extPath",
        "encoding": "encoding"
      },
      "key": "key"
    }
  ]
}