From 22029b872847573c757edf39ab92636c7736f70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Ca=C3=A7ador?= Date: Mon, 21 Oct 2024 10:30:35 +0100 Subject: [PATCH] IWF-137: Update iwf-idl to latest to allow separate persistence loading policy for state API (#82) --- gen/iwfidl/api/openapi.yaml | 528 +++++++++++++++++---- gen/iwfidl/docs/WorkflowConfig.md | 26 +- gen/iwfidl/docs/WorkflowStateOptions.md | 104 ++++ gen/iwfidl/model_workflow_config.go | 44 +- gen/iwfidl/model_workflow_state_options.go | 166 ++++++- iwf-idl | 2 +- iwf/internal_mapper.go | 18 +- iwf/state_options.go | 21 +- 8 files changed, 752 insertions(+), 157 deletions(-) diff --git a/gen/iwfidl/api/openapi.yaml b/gen/iwfidl/api/openapi.yaml index f8ca2b3..3bc0cc4 100644 --- a/gen/iwfidl/api/openapi.yaml +++ b/gen/iwfidl/api/openapi.yaml @@ -540,25 +540,54 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -567,11 +596,26 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 properties: searchAttributesLoadingPolicy: $ref: '#/components/schemas/PersistenceLoadingPolicy' + waitUntilApiSearchAttributesLoadingPolicy: + $ref: '#/components/schemas/PersistenceLoadingPolicy' + executeApiSearchAttributesLoadingPolicy: + $ref: '#/components/schemas/PersistenceLoadingPolicy' dataAttributesLoadingPolicy: $ref: '#/components/schemas/PersistenceLoadingPolicy' + waitUntilApiDataAttributesLoadingPolicy: + $ref: '#/components/schemas/PersistenceLoadingPolicy' + executeApiDataAttributesLoadingPolicy: + $ref: '#/components/schemas/PersistenceLoadingPolicy' waitUntilApiTimeoutSeconds: type: integer executeApiTimeoutSeconds: @@ -602,8 +646,8 @@ components: workflowConfigOverride: disableSystemSearchAttribute: true continueAsNewThreshold: 6 - enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + executingStateIdMode: ENABLED_FOR_ALL optimizeActivity: true idReusePolicy: null searchAttributes: @@ -760,25 +804,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -787,6 +851,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 iwfWorkflowType: iwfWorkflowType workflowStartOptions: workflowStartDelaySeconds: 3 @@ -798,8 +878,8 @@ components: workflowConfigOverride: disableSystemSearchAttribute: true continueAsNewThreshold: 6 - enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + executingStateIdMode: ENABLED_FOR_ALL optimizeActivity: true idReusePolicy: null searchAttributes: @@ -1408,25 +1488,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -1435,6 +1535,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -1451,25 +1567,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -1478,6 +1614,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -1632,8 +1784,8 @@ components: workflowConfig: disableSystemSearchAttribute: true continueAsNewThreshold: 6 - enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + executingStateIdMode: ENABLED_FOR_ALL optimizeActivity: true workflowRunId: workflowRunId workflowId: workflowId @@ -1920,25 +2072,54 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -1947,6 +2128,13 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -1963,25 +2151,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -1990,6 +2198,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -2114,25 +2338,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -2141,6 +2385,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -2157,25 +2417,54 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -2184,6 +2473,13 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -2237,25 +2533,45 @@ components: - partialLoadingKeys persistenceLoadingType: null executeApiTimeoutSeconds: 1 - executeApiFailureProceedStateId: executeApiFailureProceedStateId waitUntilApiFailurePolicy: null + skipWaitUntil: true + dataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + executeApiFailureProceedStateId: executeApiFailureProceedStateId + executeApiSearchAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null executeApiFailurePolicy: null executeApiFailureProceedStateOptions: null - skipWaitUntil: true waitUntilApiRetryPolicy: maximumAttemptsDurationSeconds: 9 maximumAttempts: 7 initialIntervalSeconds: 5 maximumIntervalSeconds: 2 backoffCoefficient: 5.637377 - waitUntilApiTimeoutSeconds: 6 - executeApiRetryPolicy: - maximumAttemptsDurationSeconds: 9 - maximumAttempts: 7 - initialIntervalSeconds: 5 - maximumIntervalSeconds: 2 - backoffCoefficient: 5.637377 - dataAttributesLoadingPolicy: + waitUntilApiSearchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys @@ -2264,6 +2580,22 @@ components: - partialLoadingKeys - partialLoadingKeys persistenceLoadingType: null + waitUntilApiDataAttributesLoadingPolicy: + lockingKeys: + - lockingKeys + - lockingKeys + useKeyAsPrefix: true + partialLoadingKeys: + - partialLoadingKeys + - partialLoadingKeys + persistenceLoadingType: null + waitUntilApiTimeoutSeconds: 6 + executeApiRetryPolicy: + maximumAttemptsDurationSeconds: 9 + maximumAttempts: 7 + initialIntervalSeconds: 5 + maximumIntervalSeconds: 2 + backoffCoefficient: 5.637377 stateInput: data: data encoding: encoding @@ -2536,14 +2868,18 @@ components: example: disableSystemSearchAttribute: true continueAsNewThreshold: 6 - enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + executingStateIdMode: ENABLED_FOR_ALL optimizeActivity: true properties: disableSystemSearchAttribute: type: boolean - enabledExecutingStateExecutionIds: - type: boolean + executingStateIdMode: + enum: + - ENABLED_FOR_ALL + - ENABLED_FOR_STATES_WITH_WAIT_UNTIL + - DISABLED + type: string continueAsNewThreshold: type: integer continueAsNewPageSizeInBytes: diff --git a/gen/iwfidl/docs/WorkflowConfig.md b/gen/iwfidl/docs/WorkflowConfig.md index 608e6a4..68fae4c 100644 --- a/gen/iwfidl/docs/WorkflowConfig.md +++ b/gen/iwfidl/docs/WorkflowConfig.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DisableSystemSearchAttribute** | Pointer to **bool** | | [optional] -**EnabledExecutingStateExecutionIds** | Pointer to **bool** | | [optional] +**ExecutingStateIdMode** | Pointer to **string** | | [optional] **ContinueAsNewThreshold** | Pointer to **int32** | | [optional] **ContinueAsNewPageSizeInBytes** | Pointer to **int32** | | [optional] **OptimizeActivity** | Pointer to **bool** | | [optional] @@ -54,30 +54,30 @@ SetDisableSystemSearchAttribute sets DisableSystemSearchAttribute field to given HasDisableSystemSearchAttribute returns a boolean if a field has been set. -### GetEnabledExecutingStateExecutionIds +### GetExecutingStateIdMode -`func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIds() bool` +`func (o *WorkflowConfig) GetExecutingStateIdMode() string` -GetEnabledExecutingStateExecutionIds returns the EnabledExecutingStateExecutionIds field if non-nil, zero value otherwise. +GetExecutingStateIdMode returns the ExecutingStateIdMode field if non-nil, zero value otherwise. -### GetEnabledExecutingStateExecutionIdsOk +### GetExecutingStateIdModeOk -`func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIdsOk() (*bool, bool)` +`func (o *WorkflowConfig) GetExecutingStateIdModeOk() (*string, bool)` -GetEnabledExecutingStateExecutionIdsOk returns a tuple with the EnabledExecutingStateExecutionIds field if it's non-nil, zero value otherwise +GetExecutingStateIdModeOk returns a tuple with the ExecutingStateIdMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabledExecutingStateExecutionIds +### SetExecutingStateIdMode -`func (o *WorkflowConfig) SetEnabledExecutingStateExecutionIds(v bool)` +`func (o *WorkflowConfig) SetExecutingStateIdMode(v string)` -SetEnabledExecutingStateExecutionIds sets EnabledExecutingStateExecutionIds field to given value. +SetExecutingStateIdMode sets ExecutingStateIdMode field to given value. -### HasEnabledExecutingStateExecutionIds +### HasExecutingStateIdMode -`func (o *WorkflowConfig) HasEnabledExecutingStateExecutionIds() bool` +`func (o *WorkflowConfig) HasExecutingStateIdMode() bool` -HasEnabledExecutingStateExecutionIds returns a boolean if a field has been set. +HasExecutingStateIdMode returns a boolean if a field has been set. ### GetContinueAsNewThreshold diff --git a/gen/iwfidl/docs/WorkflowStateOptions.md b/gen/iwfidl/docs/WorkflowStateOptions.md index 09b7665..a9c8233 100644 --- a/gen/iwfidl/docs/WorkflowStateOptions.md +++ b/gen/iwfidl/docs/WorkflowStateOptions.md @@ -5,7 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SearchAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] +**WaitUntilApiSearchAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] +**ExecuteApiSearchAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] **DataAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] +**WaitUntilApiDataAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] +**ExecuteApiDataAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional] **WaitUntilApiTimeoutSeconds** | Pointer to **int32** | | [optional] **ExecuteApiTimeoutSeconds** | Pointer to **int32** | | [optional] **WaitUntilApiRetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional] @@ -60,6 +64,56 @@ SetSearchAttributesLoadingPolicy sets SearchAttributesLoadingPolicy field to giv HasSearchAttributesLoadingPolicy returns a boolean if a field has been set. +### GetWaitUntilApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) GetWaitUntilApiSearchAttributesLoadingPolicy() PersistenceLoadingPolicy` + +GetWaitUntilApiSearchAttributesLoadingPolicy returns the WaitUntilApiSearchAttributesLoadingPolicy field if non-nil, zero value otherwise. + +### GetWaitUntilApiSearchAttributesLoadingPolicyOk + +`func (o *WorkflowStateOptions) GetWaitUntilApiSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)` + +GetWaitUntilApiSearchAttributesLoadingPolicyOk returns a tuple with the WaitUntilApiSearchAttributesLoadingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWaitUntilApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) SetWaitUntilApiSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy)` + +SetWaitUntilApiSearchAttributesLoadingPolicy sets WaitUntilApiSearchAttributesLoadingPolicy field to given value. + +### HasWaitUntilApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) HasWaitUntilApiSearchAttributesLoadingPolicy() bool` + +HasWaitUntilApiSearchAttributesLoadingPolicy returns a boolean if a field has been set. + +### GetExecuteApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) GetExecuteApiSearchAttributesLoadingPolicy() PersistenceLoadingPolicy` + +GetExecuteApiSearchAttributesLoadingPolicy returns the ExecuteApiSearchAttributesLoadingPolicy field if non-nil, zero value otherwise. + +### GetExecuteApiSearchAttributesLoadingPolicyOk + +`func (o *WorkflowStateOptions) GetExecuteApiSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)` + +GetExecuteApiSearchAttributesLoadingPolicyOk returns a tuple with the ExecuteApiSearchAttributesLoadingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecuteApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) SetExecuteApiSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy)` + +SetExecuteApiSearchAttributesLoadingPolicy sets ExecuteApiSearchAttributesLoadingPolicy field to given value. + +### HasExecuteApiSearchAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) HasExecuteApiSearchAttributesLoadingPolicy() bool` + +HasExecuteApiSearchAttributesLoadingPolicy returns a boolean if a field has been set. + ### GetDataAttributesLoadingPolicy `func (o *WorkflowStateOptions) GetDataAttributesLoadingPolicy() PersistenceLoadingPolicy` @@ -85,6 +139,56 @@ SetDataAttributesLoadingPolicy sets DataAttributesLoadingPolicy field to given v HasDataAttributesLoadingPolicy returns a boolean if a field has been set. +### GetWaitUntilApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) GetWaitUntilApiDataAttributesLoadingPolicy() PersistenceLoadingPolicy` + +GetWaitUntilApiDataAttributesLoadingPolicy returns the WaitUntilApiDataAttributesLoadingPolicy field if non-nil, zero value otherwise. + +### GetWaitUntilApiDataAttributesLoadingPolicyOk + +`func (o *WorkflowStateOptions) GetWaitUntilApiDataAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)` + +GetWaitUntilApiDataAttributesLoadingPolicyOk returns a tuple with the WaitUntilApiDataAttributesLoadingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWaitUntilApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) SetWaitUntilApiDataAttributesLoadingPolicy(v PersistenceLoadingPolicy)` + +SetWaitUntilApiDataAttributesLoadingPolicy sets WaitUntilApiDataAttributesLoadingPolicy field to given value. + +### HasWaitUntilApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) HasWaitUntilApiDataAttributesLoadingPolicy() bool` + +HasWaitUntilApiDataAttributesLoadingPolicy returns a boolean if a field has been set. + +### GetExecuteApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) GetExecuteApiDataAttributesLoadingPolicy() PersistenceLoadingPolicy` + +GetExecuteApiDataAttributesLoadingPolicy returns the ExecuteApiDataAttributesLoadingPolicy field if non-nil, zero value otherwise. + +### GetExecuteApiDataAttributesLoadingPolicyOk + +`func (o *WorkflowStateOptions) GetExecuteApiDataAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)` + +GetExecuteApiDataAttributesLoadingPolicyOk returns a tuple with the ExecuteApiDataAttributesLoadingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecuteApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) SetExecuteApiDataAttributesLoadingPolicy(v PersistenceLoadingPolicy)` + +SetExecuteApiDataAttributesLoadingPolicy sets ExecuteApiDataAttributesLoadingPolicy field to given value. + +### HasExecuteApiDataAttributesLoadingPolicy + +`func (o *WorkflowStateOptions) HasExecuteApiDataAttributesLoadingPolicy() bool` + +HasExecuteApiDataAttributesLoadingPolicy returns a boolean if a field has been set. + ### GetWaitUntilApiTimeoutSeconds `func (o *WorkflowStateOptions) GetWaitUntilApiTimeoutSeconds() int32` diff --git a/gen/iwfidl/model_workflow_config.go b/gen/iwfidl/model_workflow_config.go index 60e7154..3b8924f 100644 --- a/gen/iwfidl/model_workflow_config.go +++ b/gen/iwfidl/model_workflow_config.go @@ -19,11 +19,11 @@ var _ MappedNullable = &WorkflowConfig{} // WorkflowConfig struct for WorkflowConfig type WorkflowConfig struct { - DisableSystemSearchAttribute *bool `json:"disableSystemSearchAttribute,omitempty"` - EnabledExecutingStateExecutionIds *bool `json:"enabledExecutingStateExecutionIds,omitempty"` - ContinueAsNewThreshold *int32 `json:"continueAsNewThreshold,omitempty"` - ContinueAsNewPageSizeInBytes *int32 `json:"continueAsNewPageSizeInBytes,omitempty"` - OptimizeActivity *bool `json:"optimizeActivity,omitempty"` + DisableSystemSearchAttribute *bool `json:"disableSystemSearchAttribute,omitempty"` + ExecutingStateIdMode *string `json:"executingStateIdMode,omitempty"` + ContinueAsNewThreshold *int32 `json:"continueAsNewThreshold,omitempty"` + ContinueAsNewPageSizeInBytes *int32 `json:"continueAsNewPageSizeInBytes,omitempty"` + OptimizeActivity *bool `json:"optimizeActivity,omitempty"` } // NewWorkflowConfig instantiates a new WorkflowConfig object @@ -75,36 +75,36 @@ func (o *WorkflowConfig) SetDisableSystemSearchAttribute(v bool) { o.DisableSystemSearchAttribute = &v } -// GetEnabledExecutingStateExecutionIds returns the EnabledExecutingStateExecutionIds field value if set, zero value otherwise. -func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIds() bool { - if o == nil || IsNil(o.EnabledExecutingStateExecutionIds) { - var ret bool +// GetExecutingStateIdMode returns the ExecutingStateIdMode field value if set, zero value otherwise. +func (o *WorkflowConfig) GetExecutingStateIdMode() string { + if o == nil || IsNil(o.ExecutingStateIdMode) { + var ret string return ret } - return *o.EnabledExecutingStateExecutionIds + return *o.ExecutingStateIdMode } -// GetEnabledExecutingStateExecutionIdsOk returns a tuple with the EnabledExecutingStateExecutionIds field value if set, nil otherwise +// GetExecutingStateIdModeOk returns a tuple with the ExecutingStateIdMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIdsOk() (*bool, bool) { - if o == nil || IsNil(o.EnabledExecutingStateExecutionIds) { +func (o *WorkflowConfig) GetExecutingStateIdModeOk() (*string, bool) { + if o == nil || IsNil(o.ExecutingStateIdMode) { return nil, false } - return o.EnabledExecutingStateExecutionIds, true + return o.ExecutingStateIdMode, true } -// HasEnabledExecutingStateExecutionIds returns a boolean if a field has been set. -func (o *WorkflowConfig) HasEnabledExecutingStateExecutionIds() bool { - if o != nil && !IsNil(o.EnabledExecutingStateExecutionIds) { +// HasExecutingStateIdMode returns a boolean if a field has been set. +func (o *WorkflowConfig) HasExecutingStateIdMode() bool { + if o != nil && !IsNil(o.ExecutingStateIdMode) { return true } return false } -// SetEnabledExecutingStateExecutionIds gets a reference to the given bool and assigns it to the EnabledExecutingStateExecutionIds field. -func (o *WorkflowConfig) SetEnabledExecutingStateExecutionIds(v bool) { - o.EnabledExecutingStateExecutionIds = &v +// SetExecutingStateIdMode gets a reference to the given string and assigns it to the ExecutingStateIdMode field. +func (o *WorkflowConfig) SetExecutingStateIdMode(v string) { + o.ExecutingStateIdMode = &v } // GetContinueAsNewThreshold returns the ContinueAsNewThreshold field value if set, zero value otherwise. @@ -216,8 +216,8 @@ func (o WorkflowConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisableSystemSearchAttribute) { toSerialize["disableSystemSearchAttribute"] = o.DisableSystemSearchAttribute } - if !IsNil(o.EnabledExecutingStateExecutionIds) { - toSerialize["enabledExecutingStateExecutionIds"] = o.EnabledExecutingStateExecutionIds + if !IsNil(o.ExecutingStateIdMode) { + toSerialize["executingStateIdMode"] = o.ExecutingStateIdMode } if !IsNil(o.ContinueAsNewThreshold) { toSerialize["continueAsNewThreshold"] = o.ContinueAsNewThreshold diff --git a/gen/iwfidl/model_workflow_state_options.go b/gen/iwfidl/model_workflow_state_options.go index ce55ed7..17a808c 100644 --- a/gen/iwfidl/model_workflow_state_options.go +++ b/gen/iwfidl/model_workflow_state_options.go @@ -19,17 +19,21 @@ var _ MappedNullable = &WorkflowStateOptions{} // WorkflowStateOptions struct for WorkflowStateOptions type WorkflowStateOptions struct { - SearchAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"searchAttributesLoadingPolicy,omitempty"` - DataAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"dataAttributesLoadingPolicy,omitempty"` - WaitUntilApiTimeoutSeconds *int32 `json:"waitUntilApiTimeoutSeconds,omitempty"` - ExecuteApiTimeoutSeconds *int32 `json:"executeApiTimeoutSeconds,omitempty"` - WaitUntilApiRetryPolicy *RetryPolicy `json:"waitUntilApiRetryPolicy,omitempty"` - ExecuteApiRetryPolicy *RetryPolicy `json:"executeApiRetryPolicy,omitempty"` - WaitUntilApiFailurePolicy *WaitUntilApiFailurePolicy `json:"waitUntilApiFailurePolicy,omitempty"` - ExecuteApiFailurePolicy *ExecuteApiFailurePolicy `json:"executeApiFailurePolicy,omitempty"` - ExecuteApiFailureProceedStateId *string `json:"executeApiFailureProceedStateId,omitempty"` - ExecuteApiFailureProceedStateOptions *WorkflowStateOptions `json:"executeApiFailureProceedStateOptions,omitempty"` - SkipWaitUntil *bool `json:"skipWaitUntil,omitempty"` + SearchAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"searchAttributesLoadingPolicy,omitempty"` + WaitUntilApiSearchAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"waitUntilApiSearchAttributesLoadingPolicy,omitempty"` + ExecuteApiSearchAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"executeApiSearchAttributesLoadingPolicy,omitempty"` + DataAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"dataAttributesLoadingPolicy,omitempty"` + WaitUntilApiDataAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"waitUntilApiDataAttributesLoadingPolicy,omitempty"` + ExecuteApiDataAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"executeApiDataAttributesLoadingPolicy,omitempty"` + WaitUntilApiTimeoutSeconds *int32 `json:"waitUntilApiTimeoutSeconds,omitempty"` + ExecuteApiTimeoutSeconds *int32 `json:"executeApiTimeoutSeconds,omitempty"` + WaitUntilApiRetryPolicy *RetryPolicy `json:"waitUntilApiRetryPolicy,omitempty"` + ExecuteApiRetryPolicy *RetryPolicy `json:"executeApiRetryPolicy,omitempty"` + WaitUntilApiFailurePolicy *WaitUntilApiFailurePolicy `json:"waitUntilApiFailurePolicy,omitempty"` + ExecuteApiFailurePolicy *ExecuteApiFailurePolicy `json:"executeApiFailurePolicy,omitempty"` + ExecuteApiFailureProceedStateId *string `json:"executeApiFailureProceedStateId,omitempty"` + ExecuteApiFailureProceedStateOptions *WorkflowStateOptions `json:"executeApiFailureProceedStateOptions,omitempty"` + SkipWaitUntil *bool `json:"skipWaitUntil,omitempty"` } // NewWorkflowStateOptions instantiates a new WorkflowStateOptions object @@ -81,6 +85,70 @@ func (o *WorkflowStateOptions) SetSearchAttributesLoadingPolicy(v PersistenceLoa o.SearchAttributesLoadingPolicy = &v } +// GetWaitUntilApiSearchAttributesLoadingPolicy returns the WaitUntilApiSearchAttributesLoadingPolicy field value if set, zero value otherwise. +func (o *WorkflowStateOptions) GetWaitUntilApiSearchAttributesLoadingPolicy() PersistenceLoadingPolicy { + if o == nil || IsNil(o.WaitUntilApiSearchAttributesLoadingPolicy) { + var ret PersistenceLoadingPolicy + return ret + } + return *o.WaitUntilApiSearchAttributesLoadingPolicy +} + +// GetWaitUntilApiSearchAttributesLoadingPolicyOk returns a tuple with the WaitUntilApiSearchAttributesLoadingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateOptions) GetWaitUntilApiSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) { + if o == nil || IsNil(o.WaitUntilApiSearchAttributesLoadingPolicy) { + return nil, false + } + return o.WaitUntilApiSearchAttributesLoadingPolicy, true +} + +// HasWaitUntilApiSearchAttributesLoadingPolicy returns a boolean if a field has been set. +func (o *WorkflowStateOptions) HasWaitUntilApiSearchAttributesLoadingPolicy() bool { + if o != nil && !IsNil(o.WaitUntilApiSearchAttributesLoadingPolicy) { + return true + } + + return false +} + +// SetWaitUntilApiSearchAttributesLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the WaitUntilApiSearchAttributesLoadingPolicy field. +func (o *WorkflowStateOptions) SetWaitUntilApiSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy) { + o.WaitUntilApiSearchAttributesLoadingPolicy = &v +} + +// GetExecuteApiSearchAttributesLoadingPolicy returns the ExecuteApiSearchAttributesLoadingPolicy field value if set, zero value otherwise. +func (o *WorkflowStateOptions) GetExecuteApiSearchAttributesLoadingPolicy() PersistenceLoadingPolicy { + if o == nil || IsNil(o.ExecuteApiSearchAttributesLoadingPolicy) { + var ret PersistenceLoadingPolicy + return ret + } + return *o.ExecuteApiSearchAttributesLoadingPolicy +} + +// GetExecuteApiSearchAttributesLoadingPolicyOk returns a tuple with the ExecuteApiSearchAttributesLoadingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateOptions) GetExecuteApiSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) { + if o == nil || IsNil(o.ExecuteApiSearchAttributesLoadingPolicy) { + return nil, false + } + return o.ExecuteApiSearchAttributesLoadingPolicy, true +} + +// HasExecuteApiSearchAttributesLoadingPolicy returns a boolean if a field has been set. +func (o *WorkflowStateOptions) HasExecuteApiSearchAttributesLoadingPolicy() bool { + if o != nil && !IsNil(o.ExecuteApiSearchAttributesLoadingPolicy) { + return true + } + + return false +} + +// SetExecuteApiSearchAttributesLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the ExecuteApiSearchAttributesLoadingPolicy field. +func (o *WorkflowStateOptions) SetExecuteApiSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy) { + o.ExecuteApiSearchAttributesLoadingPolicy = &v +} + // GetDataAttributesLoadingPolicy returns the DataAttributesLoadingPolicy field value if set, zero value otherwise. func (o *WorkflowStateOptions) GetDataAttributesLoadingPolicy() PersistenceLoadingPolicy { if o == nil || IsNil(o.DataAttributesLoadingPolicy) { @@ -113,6 +181,70 @@ func (o *WorkflowStateOptions) SetDataAttributesLoadingPolicy(v PersistenceLoadi o.DataAttributesLoadingPolicy = &v } +// GetWaitUntilApiDataAttributesLoadingPolicy returns the WaitUntilApiDataAttributesLoadingPolicy field value if set, zero value otherwise. +func (o *WorkflowStateOptions) GetWaitUntilApiDataAttributesLoadingPolicy() PersistenceLoadingPolicy { + if o == nil || IsNil(o.WaitUntilApiDataAttributesLoadingPolicy) { + var ret PersistenceLoadingPolicy + return ret + } + return *o.WaitUntilApiDataAttributesLoadingPolicy +} + +// GetWaitUntilApiDataAttributesLoadingPolicyOk returns a tuple with the WaitUntilApiDataAttributesLoadingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateOptions) GetWaitUntilApiDataAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) { + if o == nil || IsNil(o.WaitUntilApiDataAttributesLoadingPolicy) { + return nil, false + } + return o.WaitUntilApiDataAttributesLoadingPolicy, true +} + +// HasWaitUntilApiDataAttributesLoadingPolicy returns a boolean if a field has been set. +func (o *WorkflowStateOptions) HasWaitUntilApiDataAttributesLoadingPolicy() bool { + if o != nil && !IsNil(o.WaitUntilApiDataAttributesLoadingPolicy) { + return true + } + + return false +} + +// SetWaitUntilApiDataAttributesLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the WaitUntilApiDataAttributesLoadingPolicy field. +func (o *WorkflowStateOptions) SetWaitUntilApiDataAttributesLoadingPolicy(v PersistenceLoadingPolicy) { + o.WaitUntilApiDataAttributesLoadingPolicy = &v +} + +// GetExecuteApiDataAttributesLoadingPolicy returns the ExecuteApiDataAttributesLoadingPolicy field value if set, zero value otherwise. +func (o *WorkflowStateOptions) GetExecuteApiDataAttributesLoadingPolicy() PersistenceLoadingPolicy { + if o == nil || IsNil(o.ExecuteApiDataAttributesLoadingPolicy) { + var ret PersistenceLoadingPolicy + return ret + } + return *o.ExecuteApiDataAttributesLoadingPolicy +} + +// GetExecuteApiDataAttributesLoadingPolicyOk returns a tuple with the ExecuteApiDataAttributesLoadingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateOptions) GetExecuteApiDataAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) { + if o == nil || IsNil(o.ExecuteApiDataAttributesLoadingPolicy) { + return nil, false + } + return o.ExecuteApiDataAttributesLoadingPolicy, true +} + +// HasExecuteApiDataAttributesLoadingPolicy returns a boolean if a field has been set. +func (o *WorkflowStateOptions) HasExecuteApiDataAttributesLoadingPolicy() bool { + if o != nil && !IsNil(o.ExecuteApiDataAttributesLoadingPolicy) { + return true + } + + return false +} + +// SetExecuteApiDataAttributesLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the ExecuteApiDataAttributesLoadingPolicy field. +func (o *WorkflowStateOptions) SetExecuteApiDataAttributesLoadingPolicy(v PersistenceLoadingPolicy) { + o.ExecuteApiDataAttributesLoadingPolicy = &v +} + // GetWaitUntilApiTimeoutSeconds returns the WaitUntilApiTimeoutSeconds field value if set, zero value otherwise. func (o *WorkflowStateOptions) GetWaitUntilApiTimeoutSeconds() int32 { if o == nil || IsNil(o.WaitUntilApiTimeoutSeconds) { @@ -414,9 +546,21 @@ func (o WorkflowStateOptions) ToMap() (map[string]interface{}, error) { if !IsNil(o.SearchAttributesLoadingPolicy) { toSerialize["searchAttributesLoadingPolicy"] = o.SearchAttributesLoadingPolicy } + if !IsNil(o.WaitUntilApiSearchAttributesLoadingPolicy) { + toSerialize["waitUntilApiSearchAttributesLoadingPolicy"] = o.WaitUntilApiSearchAttributesLoadingPolicy + } + if !IsNil(o.ExecuteApiSearchAttributesLoadingPolicy) { + toSerialize["executeApiSearchAttributesLoadingPolicy"] = o.ExecuteApiSearchAttributesLoadingPolicy + } if !IsNil(o.DataAttributesLoadingPolicy) { toSerialize["dataAttributesLoadingPolicy"] = o.DataAttributesLoadingPolicy } + if !IsNil(o.WaitUntilApiDataAttributesLoadingPolicy) { + toSerialize["waitUntilApiDataAttributesLoadingPolicy"] = o.WaitUntilApiDataAttributesLoadingPolicy + } + if !IsNil(o.ExecuteApiDataAttributesLoadingPolicy) { + toSerialize["executeApiDataAttributesLoadingPolicy"] = o.ExecuteApiDataAttributesLoadingPolicy + } if !IsNil(o.WaitUntilApiTimeoutSeconds) { toSerialize["waitUntilApiTimeoutSeconds"] = o.WaitUntilApiTimeoutSeconds } diff --git a/iwf-idl b/iwf-idl index fdd0d8e..d1da138 160000 --- a/iwf-idl +++ b/iwf-idl @@ -1 +1 @@ -Subproject commit fdd0d8eae1326489e567bf0073263a3f14bad04e +Subproject commit d1da1384bca0c9317b916df3d6bbd3b848dc5150 diff --git a/iwf/internal_mapper.go b/iwf/internal_mapper.go index 31a48f6..bc1c2ed 100644 --- a/iwf/internal_mapper.go +++ b/iwf/internal_mapper.go @@ -124,13 +124,17 @@ func toIdlStateOptions(skipWaitUntil bool, stateOptions *StateOptions) *iwfidl.W } idlStOptions := &iwfidl.WorkflowStateOptions{ - SearchAttributesLoadingPolicy: stateOptions.SearchAttributesLoadingPolicy, - DataAttributesLoadingPolicy: stateOptions.DataAttributesLoadingPolicy, - WaitUntilApiTimeoutSeconds: stateOptions.WaitUntilApiTimeoutSeconds, - ExecuteApiTimeoutSeconds: stateOptions.ExecuteApiTimeoutSeconds, - WaitUntilApiRetryPolicy: stateOptions.WaitUntilApiRetryPolicy, - ExecuteApiRetryPolicy: stateOptions.ExecuteApiRetryPolicy, - WaitUntilApiFailurePolicy: stateOptions.WaitUntilApiFailurePolicy, + DataAttributesLoadingPolicy: stateOptions.DataAttributesLoadingPolicy, + SearchAttributesLoadingPolicy: stateOptions.SearchAttributesLoadingPolicy, + WaitUntilApiTimeoutSeconds: stateOptions.WaitUntilApiTimeoutSeconds, + WaitUntilApiRetryPolicy: stateOptions.WaitUntilApiRetryPolicy, + WaitUntilApiFailurePolicy: stateOptions.WaitUntilApiFailurePolicy, + WaitUntilApiDataAttributesLoadingPolicy: stateOptions.WaitUntilApiDataAttributesLoadingPolicy, + WaitUntilApiSearchAttributesLoadingPolicy: stateOptions.WaitUntilApiSearchAttributesLoadingPolicy, + ExecuteApiTimeoutSeconds: stateOptions.ExecuteApiTimeoutSeconds, + ExecuteApiRetryPolicy: stateOptions.ExecuteApiRetryPolicy, + ExecuteApiDataAttributesLoadingPolicy: stateOptions.ExecuteApiDataAttributesLoadingPolicy, + ExecuteApiSearchAttributesLoadingPolicy: stateOptions.ExecuteApiSearchAttributesLoadingPolicy, } if skipWaitUntil { diff --git a/iwf/state_options.go b/iwf/state_options.go index a7d0051..feeb708 100644 --- a/iwf/state_options.go +++ b/iwf/state_options.go @@ -5,12 +5,19 @@ import ( ) type StateOptions struct { - SearchAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy + // apply for both waitUntil and execute API DataAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy - WaitUntilApiTimeoutSeconds *int32 - ExecuteApiTimeoutSeconds *int32 - WaitUntilApiRetryPolicy *iwfidl.RetryPolicy - ExecuteApiRetryPolicy *iwfidl.RetryPolicy - WaitUntilApiFailurePolicy *iwfidl.WaitUntilApiFailurePolicy - ExecuteApiFailureProceedState WorkflowState + SearchAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy + // below are wait_until API specific options: + WaitUntilApiTimeoutSeconds *int32 + WaitUntilApiRetryPolicy *iwfidl.RetryPolicy + WaitUntilApiFailurePolicy *iwfidl.WaitUntilApiFailurePolicy + WaitUntilApiDataAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy + WaitUntilApiSearchAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy + // below are execute API specific options: + ExecuteApiTimeoutSeconds *int32 + ExecuteApiRetryPolicy *iwfidl.RetryPolicy + ExecuteApiFailureProceedState WorkflowState + ExecuteApiDataAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy + ExecuteApiSearchAttributesLoadingPolicy *iwfidl.PersistenceLoadingPolicy }