diff --git a/README.md b/README.md
index c7e32fcd..356c3ca9 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# iWF project - main & server repo
-For most long running business, iWF is a All-In-One framework to replace Database, MessageQueue and ElasticSearch.
+iWF is a platform providing an all-in-one tooling for building long-running business application. It provides an abstraction for persistence(database, elasticSearch) and more! It aims to provide clean, simple and easy to use interface, like an iPhone.
**It will not make you a 10x developer...but you may feel like one!**
@@ -8,49 +8,34 @@ We call _long running application_ **`Workflow`**.
It's a simple and powerful WorkflowAsCode general purpose workflow engine.
-Back by [Cadence](https://github.com/uber/cadence)/[Temporal](https://github.com/temporalio/temporal) as an interpreter.
+The server is back by [Cadence](https://github.com/uber/cadence)/[Temporal](https://github.com/temporalio/temporal) as an interpreter.
Related projects:
* [API definition between SDKs and server](https://github.com/indeedeng/iwf-idl). Any languages can be supported as long as implementing it.
* [iWF Java SDK](https://github.com/indeedeng/iwf-java-sdk)
* [iWF Java Samples](https://github.com/indeedeng/iwf-java-samples)
-* [iWF Golang SDK](https://github.com/cadence-oss/iwf-golang-sdk)
-
-Contribution is welcome.
+* [iWF Golang SDK](https://github.com/cadence-oss/iwf-golang-sdk), WIP, Contribution is welcome.
+* More SDKs? Contribution is welcome.
# Table of contents
-* [Why you would need iWF](#why-you-would-need-iwf)
- * [If you are familar with Cadence/Temporal](#if-you-are-familar-with-cadencetemporal)
- * [If you are not](#if-you-are-not)
-* [What is iWF](#what-is-iwf)
- * [Basic Concepts & Usage](#basic-concepts--usage)
- * [Advanced Concepts & Usage](#advanced-concepts--usage)
-* [How to run](#how-to-run)
- * [Using docker image](#using-docker-image--docker-compose)
- * [How to build & run locally](#how-to-build--run-locally)
- * [How to use in production](#how-to-use-in-production)
- * [Option 1: use as library to customize your startup](#option-1-use-as-library-to-customize-your-startup)
-* [Development](#development)
- * [How to update IDL and the generated code](#how-to-update-idl-and-the-generated-code)
- * [Run with local Temporalite](#run-with-local-temporalite)
- * [Run with local Cadence](#run-with-local-cadence)
- * [Development Plan](#development-plan)
- * [1.0](#10)
- * [1.1](#11)
- * [1.2](#12)
-
-# Why you would need iWF
-## TL;DR
-AWS published SWF in 2012 and then moved to Step Functions in 2016 because they found it’s too hard to support SWF.
-Cadence & Temporal continued the idea of SWF and became much more powerful.
-However, AWS is right that the programming of SWF/Cadence/Temporal is hard to adopt because of leaking too many internals.
-Inspired by Step Function, iWF is created to provide equivalent power of Cadence/Temporal, but hiding all the internal details
-and provide clean and simple API to use.
+- [Why you would need iWF](#why-you-would-need-iwf)
+ - [If you are familar with Cadence/Temporal](#if-you-are-familar-with-cadencetemporal)
+ - [If you are not](#if-you-are-not)
+- [What is iWF](#what-is-iwf)
+ - [Basic Concepts & Usage](#basic-concepts--usage)
+ - [Advanced Concepts & Usage](#advanced-concepts--usage)
+- [How to run this server](#how-to-run-this-server)
+ - [Using docker image & docker-compose](#using-docker-image--docker-compose)
+ - [How to build & run locally](#how-to-build--run-locally)
+ - [How to use in production](#how-to-use-in-production)
+- [Development](#development)
+ - [Development Plan](#development-plan)
+- [Some history](#some-history)
-
+# Why you would need iWF
-## If you are familar with [Cadence](https://github.com/uber/cadence)/[Temporal](https://github.com/temporalio/temporal)
+## If you are familar with Cadence/Temporal
* See [Slide deck](https://docs.google.com/presentation/d/1CpsroSf6NeVce_XyUhFTkd9bLHN8UHRtM9NavPCMhj8/edit#slide=id.gfe2f455492_0_56) for what problems it is solving
* See [Design doc](https://docs.google.com/document/d/1BpJuHf67ibaOWmN_uWw_pbrBVyb6U1PILXyzohxA5Ms/edit) for how it works
@@ -60,13 +45,13 @@ and provide clean and simple API to use.
iWF is an application platform that provides you a comprehensive tooling:
* WorkflowAsCode for highly flexibile/customizable business logic
* Parallel execution of multiple threads of business
-* Intermidiate states stored as "QueryAttributes" and can be retrieved by APIs
+* Persistence storage for intermediate states stored as "dataObjects"
+* Persistence searchable attributes that can be used for flexible searching, even full text searching, backed by ElasticSearch
* Receiving data from external system by Signal
-* Searchable attributes that can be used for flexible searching, even full text searching, backed by ElasticSearch
* Durable timer, and cron job scheduling
* Reset workflow to let you recover the workflows from bad states easily
+* Highly testable and easy to maintain
* ...
-* Basically with iWF, you mostly don't need any database, messageQueue or even ElasticSearch to build your applications
# What is iWF
@@ -85,13 +70,10 @@ Note that `start` API can return multiple commands, and choose different Decider
* `AllCommandCompleted`: this will wait for all command completed
* `AnyCommandCompleted`: this will wait for any command completed
-iWF provides the below primitives when implementing the WorkflowState:
- * `StateLocal` is for
- * passing some data values from state API to decide API in the same WorkflowState execution
- * recording some events that can be useful for debugging using Workflow history. Usually you may want to record the input/output of the dependency RPC calls.
-* `QueryAttribute` is for
+iWF provides the below persistence APIs when implementing the WorkflowState:
+* `DataObject` is for
* sharing some data values across the workflow
- * can be retrieved by external application using GetQueryAttributes API
+ * can be retrieved by external application using GetDataObjects API
* can be viewed in Cadence/Temporal WebUI in QueryHandler tab
* `SearchAttribute` is similarly:
* sharing some data values across the workflow
@@ -101,40 +83,18 @@ iWF provides the below primitives when implementing the WorkflowState:
* search attribute type must be registered in Cadence/Temporal server before using for searching because it is backed up ElasticSearch
* the data types supported are limited as server has to understand the value for indexing
* See [Temporal doc](https://docs.temporal.io/concepts/what-is-a-search-attribute) and [Cadence doc](https://cadenceworkflow.io/docs/concepts/search-workflows/) to understand more about SearchAttribute
-
+* `StateLocal` is for
+ * passing some data values from state API to decide API in the same WorkflowState execution
+ * recording some events that can be useful for debugging using Workflow history. Usually you may want to record the input/output of the dependency RPC calls.
+
## Advanced Concepts & Usage
On top of the above basic concepts, you may want to deeply customize your workflow by using the below features.
### More advanced command types
* `InterStateChannelCommand`: will be waiting for a value being published from another state(internally in the same workflow)
-* [Future] `LongRunninngActivityCommand`: will schedule a Cadence/Temporal activity. This is only necessary for long-running activity like hours/days.
-
-### WorkflowStartOption
-* IdReusePolicy
-* CronSchedule
-* RetryPolicy
-### WorkflowStateOption
-* AttributeLoadingPolicy
-* API timeout & retry
-### Reset Workflow
-
-## How to change workflow code
-Unlike Cadence/Temporal, there is no [Non-deterministic](https://docs.temporal.io/workflows#deterministic-constraints) errors anymore in iWF.
-And there is no [versioning APIs](https://docs.temporal.io/go/versioning). You will never see the worker crashing & replay issues on iWF workers.
-
-However, changing workflow code could still have backward compatibility issues. Here are some tips:
-* Changing the behavior of a WorkflowState will always apply to any existing workflow executions.
- * Usually that's what you want. If it's not, then you should utilize QueryAttribute, SearchAttribute or StateLocalAttribute to record some data, and use it to decide the new behavior
-* Removing an existing WorkflowState could cause existing workflow executions to stuck if there is any workflow executing on it.
- * If that happens, the worker will return errors to server, which will fail the server workflow activity and keep on backoff retry
- * Instead of fixing the code, you can also reset workflow to recover from bad state executions
- * To safely delete a WorkflowState, you can utilize the `IwfExecutingStateIds` search attribute to check if the stateId is still being executed
-
-## How to write unit test
-Writing unit test for iWF workflow code should be super easy compared to Cadence/Temporal. There is no need to use any special testEnv.
-The standard unit test library should be sufficient.
-
-# How to run
+* [Future] `LongRunninngActivityCommand`: will schedule a long-running activity like hours/days with capability to recover from previous states
+
+# How to run this server
## Using docker image & docker-compose
Checkout this repo, go to the docker-compose folder and run it:
@@ -215,8 +175,8 @@ cadence adm cl asa --search_attr_key IwfWorkflowType --search_attr_type 0
- [x] Timer command
- [x] Signal command
- [x] SearchAttributeRW
-- [x] QueryAttributeRW
-- [x] StateLocalAttribute
+- [x] DataObjectRW
+- [x] StateLocal
- [x] Signal workflow API
- [x] Query workflow API
- [x] Get workflow API
@@ -227,7 +187,7 @@ cadence adm cl asa --search_attr_key IwfWorkflowType --search_attr_type 0
- [x] Reset workflow API (Cadence only, TODO for Temporal)
- [x] Command type(s) for inter-state communications (e.g. internal channel)
- [x] AnyCommandCompleted Decider trigger type
-- [ ] More workflow start options: IdReusePolicy, initial earch attributes, cron schedule, retry, etc
+- [ ] More workflow start options: IdReusePolicy, initial search attributes/memo, cron schedule, retry, etc
- [ ] StateOption: Start/Decide API timeout and retry
- [ ] Reset workflow by stateId
@@ -238,5 +198,14 @@ cadence adm cl asa --search_attr_key IwfWorkflowType --search_attr_type 0
- [ ] LongRunningActivityCommand
- [ ] Failing workflow details
- [ ] Auto ContinueAsNew
-- [ ] StateOption: more AttributeLoadingPolicy
+- [ ] StateOption: more PersistenceLoadingPolicy
- [ ] StateOption: more CommandCarryOverPolicy
+
+# Some history
+AWS published SWF in 2012 and then moved to Step Functions in 2016 because they found it’s too hard to support SWF.
+Cadence & Temporal continued the idea of SWF and became much more powerful.
+However, AWS is right that the programming of SWF/Cadence/Temporal is hard to adopt because of leaking too many internals.
+Inspired by Step Function, iWF is created to provide equivalent power of Cadence/Temporal, but hiding all the internal details
+and provide clean and simple API to use.
+
+
\ No newline at end of file
diff --git a/gen/iwfidl/.openapi-generator/FILES b/gen/iwfidl/.openapi-generator/FILES
index 601b72cf..18f13ddf 100644
--- a/gen/iwfidl/.openapi-generator/FILES
+++ b/gen/iwfidl/.openapi-generator/FILES
@@ -6,7 +6,6 @@ api/openapi.yaml
api_default.go
client.go
configuration.go
-docs/AttributesLoadingPolicy.md
docs/CommandCarryOverPolicy.md
docs/CommandRequest.md
docs/CommandResults.md
@@ -18,6 +17,8 @@ docs/InterStateChannelCommand.md
docs/InterStateChannelPublishing.md
docs/InterStateChannelResult.md
docs/KeyValue.md
+docs/PersistenceLoadingPolicy.md
+docs/RetryPolicy.md
docs/SearchAttribute.md
docs/SearchAttributeKeyAndType.md
docs/SignalCommand.md
@@ -27,9 +28,8 @@ docs/StateDecision.md
docs/StateMovement.md
docs/TimerCommand.md
docs/TimerResult.md
-docs/WorkflowCancelRequest.md
-docs/WorkflowGetQueryAttributesRequest.md
-docs/WorkflowGetQueryAttributesResponse.md
+docs/WorkflowGetDataObjectsRequest.md
+docs/WorkflowGetDataObjectsResponse.md
docs/WorkflowGetRequest.md
docs/WorkflowGetResponse.md
docs/WorkflowGetSearchAttributesRequest.md
@@ -48,10 +48,10 @@ docs/WorkflowStateDecideResponse.md
docs/WorkflowStateOptions.md
docs/WorkflowStateStartRequest.md
docs/WorkflowStateStartResponse.md
+docs/WorkflowStopRequest.md
git_push.sh
go.mod
go.sum
-model_attributes_loading_policy.go
model_command_carry_over_policy.go
model_command_request.go
model_command_results.go
@@ -62,6 +62,8 @@ model_inter_state_channel_command.go
model_inter_state_channel_publishing.go
model_inter_state_channel_result.go
model_key_value.go
+model_persistence_loading_policy.go
+model_retry_policy.go
model_search_attribute.go
model_search_attribute_key_and_type.go
model_signal_command.go
@@ -71,9 +73,8 @@ model_state_decision.go
model_state_movement.go
model_timer_command.go
model_timer_result.go
-model_workflow_cancel_request.go
-model_workflow_get_query_attributes_request.go
-model_workflow_get_query_attributes_response.go
+model_workflow_get_data_objects_request.go
+model_workflow_get_data_objects_response.go
model_workflow_get_request.go
model_workflow_get_response.go
model_workflow_get_search_attributes_request.go
@@ -92,5 +93,6 @@ model_workflow_state_decide_response.go
model_workflow_state_options.go
model_workflow_state_start_request.go
model_workflow_state_start_response.go
+model_workflow_stop_request.go
response.go
utils.go
diff --git a/gen/iwfidl/README.md b/gen/iwfidl/README.md
index 8425a737..9a4f6b59 100644
--- a/gen/iwfidl/README.md
+++ b/gen/iwfidl/README.md
@@ -78,10 +78,9 @@ All URIs are relative to *http://petstore.swagger.io/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*DefaultApi* | [**ApiV1WorkflowCancelPost**](docs/DefaultApi.md#apiv1workflowcancelpost) | **Post** /api/v1/workflow/cancel | cancel a workflow
+*DefaultApi* | [**ApiV1WorkflowDataobjectsGetPost**](docs/DefaultApi.md#apiv1workflowdataobjectsgetpost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects
*DefaultApi* | [**ApiV1WorkflowGetPost**](docs/DefaultApi.md#apiv1workflowgetpost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested)
*DefaultApi* | [**ApiV1WorkflowGetWithWaitPost**](docs/DefaultApi.md#apiv1workflowgetwithwaitpost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running
-*DefaultApi* | [**ApiV1WorkflowQueryattributesGetPost**](docs/DefaultApi.md#apiv1workflowqueryattributesgetpost) | **Post** /api/v1/workflow/queryattributes/get | get workflow query attributes
*DefaultApi* | [**ApiV1WorkflowResetPost**](docs/DefaultApi.md#apiv1workflowresetpost) | **Post** /api/v1/workflow/reset | reset a workflow
*DefaultApi* | [**ApiV1WorkflowSearchPost**](docs/DefaultApi.md#apiv1workflowsearchpost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query
*DefaultApi* | [**ApiV1WorkflowSearchattributesGetPost**](docs/DefaultApi.md#apiv1workflowsearchattributesgetpost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes
@@ -89,11 +88,11 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**ApiV1WorkflowStartPost**](docs/DefaultApi.md#apiv1workflowstartpost) | **Post** /api/v1/workflow/start | start a workflow
*DefaultApi* | [**ApiV1WorkflowStateDecidePost**](docs/DefaultApi.md#apiv1workflowstatedecidepost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.decide API
*DefaultApi* | [**ApiV1WorkflowStateStartPost**](docs/DefaultApi.md#apiv1workflowstatestartpost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.start API
+*DefaultApi* | [**ApiV1WorkflowStopPost**](docs/DefaultApi.md#apiv1workflowstoppost) | **Post** /api/v1/workflow/stop | stop a workflow
## Documentation For Models
- - [AttributesLoadingPolicy](docs/AttributesLoadingPolicy.md)
- [CommandCarryOverPolicy](docs/CommandCarryOverPolicy.md)
- [CommandRequest](docs/CommandRequest.md)
- [CommandResults](docs/CommandResults.md)
@@ -104,6 +103,8 @@ Class | Method | HTTP request | Description
- [InterStateChannelPublishing](docs/InterStateChannelPublishing.md)
- [InterStateChannelResult](docs/InterStateChannelResult.md)
- [KeyValue](docs/KeyValue.md)
+ - [PersistenceLoadingPolicy](docs/PersistenceLoadingPolicy.md)
+ - [RetryPolicy](docs/RetryPolicy.md)
- [SearchAttribute](docs/SearchAttribute.md)
- [SearchAttributeKeyAndType](docs/SearchAttributeKeyAndType.md)
- [SignalCommand](docs/SignalCommand.md)
@@ -113,9 +114,8 @@ Class | Method | HTTP request | Description
- [StateMovement](docs/StateMovement.md)
- [TimerCommand](docs/TimerCommand.md)
- [TimerResult](docs/TimerResult.md)
- - [WorkflowCancelRequest](docs/WorkflowCancelRequest.md)
- - [WorkflowGetQueryAttributesRequest](docs/WorkflowGetQueryAttributesRequest.md)
- - [WorkflowGetQueryAttributesResponse](docs/WorkflowGetQueryAttributesResponse.md)
+ - [WorkflowGetDataObjectsRequest](docs/WorkflowGetDataObjectsRequest.md)
+ - [WorkflowGetDataObjectsResponse](docs/WorkflowGetDataObjectsResponse.md)
- [WorkflowGetRequest](docs/WorkflowGetRequest.md)
- [WorkflowGetResponse](docs/WorkflowGetResponse.md)
- [WorkflowGetSearchAttributesRequest](docs/WorkflowGetSearchAttributesRequest.md)
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
- [WorkflowStateOptions](docs/WorkflowStateOptions.md)
- [WorkflowStateStartRequest](docs/WorkflowStateStartRequest.md)
- [WorkflowStateStartResponse](docs/WorkflowStateStartResponse.md)
+ - [WorkflowStopRequest](docs/WorkflowStopRequest.md)
## Documentation For Authorization
diff --git a/gen/iwfidl/api/openapi.yaml b/gen/iwfidl/api/openapi.yaml
index 0547c479..292f9528 100644
--- a/gen/iwfidl/api/openapi.yaml
+++ b/gen/iwfidl/api/openapi.yaml
@@ -48,13 +48,13 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
description: Invalid input
summary: signal a workflow
- /api/v1/workflow/cancel:
+ /api/v1/workflow/stop:
post:
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WorkflowCancelRequest'
+ $ref: '#/components/schemas/WorkflowStopRequest'
responses:
"200":
content: {}
@@ -65,20 +65,20 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Invalid input
- summary: cancel a workflow
- /api/v1/workflow/queryattributes/get:
+ summary: stop a workflow
+ /api/v1/workflow/dataobjects/get:
post:
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WorkflowGetQueryAttributesRequest'
+ $ref: '#/components/schemas/WorkflowGetDataObjectsRequest'
responses:
"200":
content:
application/json:
schema:
- $ref: '#/components/schemas/WorkflowGetQueryAttributesResponse'
+ $ref: '#/components/schemas/WorkflowGetDataObjectsResponse'
description: successful operation
"400":
content:
@@ -86,7 +86,7 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Invalid input
- summary: get workflow query attributes
+ summary: get workflow data objects
/api/v1/workflow/searchattributes/get:
post:
requestBody:
@@ -292,30 +292,65 @@ components:
- INT
type: string
type: object
+ RetryPolicy:
+ example:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ properties:
+ initialInterval:
+ type: number
+ backoffCoefficient:
+ type: number
+ maximumInterval:
+ type: number
+ maximumAttempts:
+ type: integer
+ type: object
WorkflowStateOptions:
example:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
properties:
searchAttributesLoadingPolicy:
- $ref: '#/components/schemas/AttributesLoadingPolicy'
- queryAttributesLoadingPolicy:
- $ref: '#/components/schemas/AttributesLoadingPolicy'
+ $ref: '#/components/schemas/PersistenceLoadingPolicy'
+ dataObjectsLoadingPolicy:
+ $ref: '#/components/schemas/PersistenceLoadingPolicy'
commandCarryOverPolicy:
$ref: '#/components/schemas/CommandCarryOverPolicy'
+ startApiRetryPolicy:
+ $ref: '#/components/schemas/RetryPolicy'
+ decideApiRetryPolicy:
+ $ref: '#/components/schemas/RetryPolicy'
type: object
WorkflowStartOptions:
example:
+ retryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
workflowIDReusePolicy: ALLOW_DUPLICATE_FAILED_ONLY
cronSchedule: cronSchedule
properties:
@@ -328,19 +363,21 @@ components:
type: string
cronSchedule:
type: string
+ retryPolicy:
+ $ref: '#/components/schemas/RetryPolicy'
type: object
- AttributesLoadingPolicy:
+ PersistenceLoadingPolicy:
example:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
properties:
- attributeLoadingType:
+ persistenceLoadingType:
enum:
- LOAD_ALL_WITHOUT_LOCKING
type: string
- attributeKeys:
+ partialLoadingKeys:
items:
type: string
type: array
@@ -367,19 +404,34 @@ components:
workflowTimeoutSeconds: 0
stateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
iwfWorkflowType: iwfWorkflowType
workflowStartOptions:
+ retryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
workflowIDReusePolicy: ALLOW_DUPLICATE_FAILED_ONLY
cronSchedule: cronSchedule
iwfWorkerUrl: iwfWorkerUrl
@@ -439,9 +491,10 @@ components:
- signalChannelName
- workflowId
type: object
- WorkflowCancelRequest:
+ WorkflowStopRequest:
example:
reason: reason
+ stopType: CANCEL
workflowRunId: workflowRunId
workflowId: workflowId
properties:
@@ -451,14 +504,18 @@ components:
type: string
reason:
type: string
+ stopType:
+ enum:
+ - CANCEL
+ type: string
required:
- workflowId
type: object
- WorkflowGetQueryAttributesRequest:
+ WorkflowGetDataObjectsRequest:
example:
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ keys:
+ - keys
+ - keys
workflowRunId: workflowRunId
workflowId: workflowId
properties:
@@ -466,16 +523,16 @@ components:
type: string
workflowRunId:
type: string
- attributeKeys:
+ keys:
items:
type: string
type: array
required:
- workflowId
type: object
- WorkflowGetQueryAttributesResponse:
+ WorkflowGetDataObjectsResponse:
example:
- queryAttributes:
+ objects:
- value:
data: data
encoding: encoding
@@ -485,14 +542,14 @@ components:
encoding: encoding
key: key
properties:
- queryAttributes:
+ objects:
items:
$ref: '#/components/schemas/KeyValue'
type: array
type: object
WorkflowGetSearchAttributesRequest:
example:
- attributeKeys:
+ keys:
- valueType: KEYWORD
key: key
- valueType: KEYWORD
@@ -504,7 +561,7 @@ components:
type: string
workflowRunId:
type: string
- attributeKeys:
+ keys:
items:
$ref: '#/components/schemas/SearchAttributeKeyAndType'
type: array
@@ -642,12 +699,10 @@ components:
WorkflowResetRequest:
example:
reason: reason
- reset_bad_binary_checksum: reset_bad_binary_checksum
historyEventId: 0
- earliest_time: earliest_time
- decision_offset: 6
+ historyEventTime: historyEventTime
resetType: HISTORY_EVENT_ID
- skip_signal_reapply: true
+ skipSignalReapply: true
workflowRunId: workflowRunId
workflowId: workflowId
properties:
@@ -658,25 +713,16 @@ components:
resetType:
enum:
- HISTORY_EVENT_ID
- - FIRST_DECISION_COMPLETED
- - LAST_DECISION_COMPLETED
- - LAST_CONTINUED_AS_NEW
- - BAD_BINARY
- - DECISION_COMPLETED_TIME
- - FIRST_DECISION_SCHEDULED
- - LAST_DECISION_SCHEDULED
+ - BEGINNING
+ - HISTORY_EVENT_TIME
type: string
historyEventId:
type: integer
reason:
type: string
- decision_offset:
- type: integer
- reset_bad_binary_checksum:
- type: string
- earliest_time:
+ historyEventTime:
type: string
- skip_signal_reapply:
+ skipSignalReapply:
type: boolean
required:
- resetType
@@ -693,7 +739,7 @@ components:
type: object
WorkflowStateStartRequest:
example:
- queryAttributes:
+ dataObjects:
- value:
data: data
encoding: encoding
@@ -734,7 +780,7 @@ components:
items:
$ref: '#/components/schemas/SearchAttribute'
type: array
- queryAttributes:
+ dataObjects:
items:
$ref: '#/components/schemas/KeyValue'
type: array
@@ -755,15 +801,6 @@ components:
integerValue: 0
key: key
recordEvents:
- - value:
- data: data
- encoding: encoding
- key: key
- - value:
- data: data
- encoding: encoding
- key: key
- upsertStateLocalAttributes:
- value:
data: data
encoding: encoding
@@ -798,7 +835,16 @@ components:
value:
data: data
encoding: encoding
- upsertQueryAttributes:
+ upsertStateLocals:
+ - value:
+ data: data
+ encoding: encoding
+ key: key
+ - value:
+ data: data
+ encoding: encoding
+ key: key
+ upsertDataObjects:
- value:
data: data
encoding: encoding
@@ -812,13 +858,13 @@ components:
items:
$ref: '#/components/schemas/SearchAttribute'
type: array
- upsertQueryAttributes:
+ upsertDataObjects:
items:
$ref: '#/components/schemas/KeyValue'
type: array
commandRequest:
$ref: '#/components/schemas/CommandRequest'
- upsertStateLocalAttributes:
+ upsertStateLocals:
items:
$ref: '#/components/schemas/KeyValue'
type: array
@@ -833,7 +879,7 @@ components:
type: object
WorkflowStateDecideRequest:
example:
- queryAttributes:
+ stateLocals:
- value:
data: data
encoding: encoding
@@ -843,15 +889,6 @@ components:
encoding: encoding
key: key
workflowStateId: workflowStateId
- stateLocalAttributes:
- - value:
- data: data
- encoding: encoding
- key: key
- - value:
- data: data
- encoding: encoding
- key: key
commandResults:
signalResults:
- signalRequestStatus: WAITING
@@ -899,6 +936,15 @@ components:
valueType: KEYWORD
integerValue: 0
key: key
+ DataObjects:
+ - value:
+ data: data
+ encoding: encoding
+ key: key
+ - value:
+ data: data
+ encoding: encoding
+ key: key
stateInput:
data: data
encoding: encoding
@@ -915,11 +961,11 @@ components:
items:
$ref: '#/components/schemas/SearchAttribute'
type: array
- queryAttributes:
+ DataObjects:
items:
$ref: '#/components/schemas/KeyValue'
type: array
- stateLocalAttributes:
+ stateLocals:
items:
$ref: '#/components/schemas/KeyValue'
type: array
@@ -958,43 +1004,54 @@ components:
stateId: stateId
nextStateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
- nextStateInput:
data: data
encoding: encoding
stateId: stateId
nextStateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
- upsertStateLocalAttributes:
- - value:
- data: data
- encoding: encoding
- key: key
- - value:
- data: data
- encoding: encoding
- key: key
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
publishToInterStateChannel:
- channelName: channelName
value:
@@ -1004,7 +1061,16 @@ components:
value:
data: data
encoding: encoding
- upsertQueryAttributes:
+ upsertStateLocals:
+ - value:
+ data: data
+ encoding: encoding
+ key: key
+ - value:
+ data: data
+ encoding: encoding
+ key: key
+ upsertDataObjects:
- value:
data: data
encoding: encoding
@@ -1020,7 +1086,7 @@ components:
items:
$ref: '#/components/schemas/SearchAttribute'
type: array
- upsertQueryAttributes:
+ upsertDataObjects:
items:
$ref: '#/components/schemas/KeyValue'
type: array
@@ -1028,7 +1094,7 @@ components:
items:
$ref: '#/components/schemas/KeyValue'
type: array
- upsertStateLocalAttributes:
+ upsertStateLocals:
items:
$ref: '#/components/schemas/KeyValue'
type: array
@@ -1046,34 +1112,54 @@ components:
stateId: stateId
nextStateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
- nextStateInput:
data: data
encoding: encoding
stateId: stateId
nextStateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
properties:
nextStates:
items:
@@ -1088,17 +1174,27 @@ components:
stateId: stateId
nextStateOptions:
searchAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
commandCarryOverPolicy:
commandCarryOverType: NONE
- queryAttributesLoadingPolicy:
- attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
- attributeKeys:
- - attributeKeys
- - attributeKeys
+ decideApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ startApiRetryPolicy:
+ maximumAttempts: 5
+ initialInterval: 6.027456183070403
+ maximumInterval: 5.962133916683182
+ backoffCoefficient: 1.4658129805029452
+ dataObjectsLoadingPolicy:
+ partialLoadingKeys:
+ - partialLoadingKeys
+ - partialLoadingKeys
+ persistenceLoadingType: LOAD_ALL_WITHOUT_LOCKING
properties:
stateId:
type: string
diff --git a/gen/iwfidl/api_default.go b/gen/iwfidl/api_default.go
index 7e1779aa..37eebd72 100644
--- a/gen/iwfidl/api_default.go
+++ b/gen/iwfidl/api_default.go
@@ -22,15 +22,16 @@ import (
type DefaultApi interface {
/*
- ApiV1WorkflowCancelPost cancel a workflow
+ ApiV1WorkflowDataobjectsGetPost get workflow data objects
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiApiV1WorkflowCancelPostRequest
+ @return ApiApiV1WorkflowDataobjectsGetPostRequest
*/
- ApiV1WorkflowCancelPost(ctx context.Context) ApiApiV1WorkflowCancelPostRequest
+ ApiV1WorkflowDataobjectsGetPost(ctx context.Context) ApiApiV1WorkflowDataobjectsGetPostRequest
- // ApiV1WorkflowCancelPostExecute executes the request
- ApiV1WorkflowCancelPostExecute(r ApiApiV1WorkflowCancelPostRequest) (*http.Response, error)
+ // ApiV1WorkflowDataobjectsGetPostExecute executes the request
+ // @return WorkflowGetDataObjectsResponse
+ ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1WorkflowDataobjectsGetPostRequest) (*WorkflowGetDataObjectsResponse, *http.Response, error)
/*
ApiV1WorkflowGetPost get a workflow's status and results(if completed & requested)
@@ -56,18 +57,6 @@ type DefaultApi interface {
// @return WorkflowGetResponse
ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1WorkflowGetWithWaitPostRequest) (*WorkflowGetResponse, *http.Response, error)
- /*
- ApiV1WorkflowQueryattributesGetPost get workflow query attributes
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiApiV1WorkflowQueryattributesGetPostRequest
- */
- ApiV1WorkflowQueryattributesGetPost(ctx context.Context) ApiApiV1WorkflowQueryattributesGetPostRequest
-
- // ApiV1WorkflowQueryattributesGetPostExecute executes the request
- // @return WorkflowGetQueryAttributesResponse
- ApiV1WorkflowQueryattributesGetPostExecute(r ApiApiV1WorkflowQueryattributesGetPostRequest) (*WorkflowGetQueryAttributesResponse, *http.Response, error)
-
/*
ApiV1WorkflowResetPost reset a workflow
@@ -150,53 +139,66 @@ type DefaultApi interface {
// ApiV1WorkflowStateStartPostExecute executes the request
// @return WorkflowStateStartResponse
ApiV1WorkflowStateStartPostExecute(r ApiApiV1WorkflowStateStartPostRequest) (*WorkflowStateStartResponse, *http.Response, error)
+
+ /*
+ ApiV1WorkflowStopPost stop a workflow
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiApiV1WorkflowStopPostRequest
+ */
+ ApiV1WorkflowStopPost(ctx context.Context) ApiApiV1WorkflowStopPostRequest
+
+ // ApiV1WorkflowStopPostExecute executes the request
+ ApiV1WorkflowStopPostExecute(r ApiApiV1WorkflowStopPostRequest) (*http.Response, error)
}
// DefaultApiService DefaultApi service
type DefaultApiService service
-type ApiApiV1WorkflowCancelPostRequest struct {
+type ApiApiV1WorkflowDataobjectsGetPostRequest struct {
ctx context.Context
ApiService DefaultApi
- workflowCancelRequest *WorkflowCancelRequest
+ workflowGetDataObjectsRequest *WorkflowGetDataObjectsRequest
}
-func (r ApiApiV1WorkflowCancelPostRequest) WorkflowCancelRequest(workflowCancelRequest WorkflowCancelRequest) ApiApiV1WorkflowCancelPostRequest {
- r.workflowCancelRequest = &workflowCancelRequest
+func (r ApiApiV1WorkflowDataobjectsGetPostRequest) WorkflowGetDataObjectsRequest(workflowGetDataObjectsRequest WorkflowGetDataObjectsRequest) ApiApiV1WorkflowDataobjectsGetPostRequest {
+ r.workflowGetDataObjectsRequest = &workflowGetDataObjectsRequest
return r
}
-func (r ApiApiV1WorkflowCancelPostRequest) Execute() (*http.Response, error) {
- return r.ApiService.ApiV1WorkflowCancelPostExecute(r)
+func (r ApiApiV1WorkflowDataobjectsGetPostRequest) Execute() (*WorkflowGetDataObjectsResponse, *http.Response, error) {
+ return r.ApiService.ApiV1WorkflowDataobjectsGetPostExecute(r)
}
/*
-ApiV1WorkflowCancelPost cancel a workflow
+ApiV1WorkflowDataobjectsGetPost get workflow data objects
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiApiV1WorkflowCancelPostRequest
+ @return ApiApiV1WorkflowDataobjectsGetPostRequest
*/
-func (a *DefaultApiService) ApiV1WorkflowCancelPost(ctx context.Context) ApiApiV1WorkflowCancelPostRequest {
- return ApiApiV1WorkflowCancelPostRequest{
+func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPost(ctx context.Context) ApiApiV1WorkflowDataobjectsGetPostRequest {
+ return ApiApiV1WorkflowDataobjectsGetPostRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *DefaultApiService) ApiV1WorkflowCancelPostExecute(r ApiApiV1WorkflowCancelPostRequest) (*http.Response, error) {
+// @return WorkflowGetDataObjectsResponse
+func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1WorkflowDataobjectsGetPostRequest) (*WorkflowGetDataObjectsResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
+ localVarReturnValue *WorkflowGetDataObjectsResponse
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowCancelPost")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowDataobjectsGetPost")
if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/v1/workflow/cancel"
+ localVarPath := localBasePath + "/api/v1/workflow/dataobjects/get"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
@@ -220,22 +222,22 @@ func (a *DefaultApiService) ApiV1WorkflowCancelPostExecute(r ApiApiV1WorkflowCan
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.workflowCancelRequest
+ localVarPostBody = r.workflowGetDataObjectsRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
- return nil, err
+ return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
- return localVarHTTPResponse, err
+ return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
- return localVarHTTPResponse, err
+ return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
@@ -248,14 +250,23 @@ func (a *DefaultApiService) ApiV1WorkflowCancelPostExecute(r ApiApiV1WorkflowCan
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
- return localVarHTTPResponse, newErr
+ return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.model = v
}
- return localVarHTTPResponse, newErr
+ return localVarReturnValue, localVarHTTPResponse, newErr
}
- return localVarHTTPResponse, nil
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiApiV1WorkflowGetPostRequest struct {
@@ -486,120 +497,6 @@ func (a *DefaultApiService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1Workfl
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiApiV1WorkflowQueryattributesGetPostRequest struct {
- ctx context.Context
- ApiService DefaultApi
- workflowGetQueryAttributesRequest *WorkflowGetQueryAttributesRequest
-}
-
-func (r ApiApiV1WorkflowQueryattributesGetPostRequest) WorkflowGetQueryAttributesRequest(workflowGetQueryAttributesRequest WorkflowGetQueryAttributesRequest) ApiApiV1WorkflowQueryattributesGetPostRequest {
- r.workflowGetQueryAttributesRequest = &workflowGetQueryAttributesRequest
- return r
-}
-
-func (r ApiApiV1WorkflowQueryattributesGetPostRequest) Execute() (*WorkflowGetQueryAttributesResponse, *http.Response, error) {
- return r.ApiService.ApiV1WorkflowQueryattributesGetPostExecute(r)
-}
-
-/*
-ApiV1WorkflowQueryattributesGetPost get workflow query attributes
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiApiV1WorkflowQueryattributesGetPostRequest
-*/
-func (a *DefaultApiService) ApiV1WorkflowQueryattributesGetPost(ctx context.Context) ApiApiV1WorkflowQueryattributesGetPostRequest {
- return ApiApiV1WorkflowQueryattributesGetPostRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-// @return WorkflowGetQueryAttributesResponse
-func (a *DefaultApiService) ApiV1WorkflowQueryattributesGetPostExecute(r ApiApiV1WorkflowQueryattributesGetPostRequest) (*WorkflowGetQueryAttributesResponse, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WorkflowGetQueryAttributesResponse
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowQueryattributesGetPost")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/v1/workflow/queryattributes/get"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json"}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- // body params
- localVarPostBody = r.workflowGetQueryAttributesRequest
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 400 {
- var v ErrorResponse
- err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.error = err.Error()
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
- newErr.model = v
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
type ApiApiV1WorkflowResetPostRequest struct {
ctx context.Context
ApiService DefaultApi
@@ -1386,3 +1283,106 @@ func (a *DefaultApiService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1Workflo
return localVarReturnValue, localVarHTTPResponse, nil
}
+
+type ApiApiV1WorkflowStopPostRequest struct {
+ ctx context.Context
+ ApiService DefaultApi
+ workflowStopRequest *WorkflowStopRequest
+}
+
+func (r ApiApiV1WorkflowStopPostRequest) WorkflowStopRequest(workflowStopRequest WorkflowStopRequest) ApiApiV1WorkflowStopPostRequest {
+ r.workflowStopRequest = &workflowStopRequest
+ return r
+}
+
+func (r ApiApiV1WorkflowStopPostRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ApiV1WorkflowStopPostExecute(r)
+}
+
+/*
+ApiV1WorkflowStopPost stop a workflow
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiApiV1WorkflowStopPostRequest
+*/
+func (a *DefaultApiService) ApiV1WorkflowStopPost(ctx context.Context) ApiApiV1WorkflowStopPostRequest {
+ return ApiApiV1WorkflowStopPostRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *DefaultApiService) ApiV1WorkflowStopPostExecute(r ApiApiV1WorkflowStopPostRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowStopPost")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/v1/workflow/stop"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.workflowStopRequest
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ }
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
diff --git a/gen/iwfidl/docs/AttributesLoadingPolicy.md b/gen/iwfidl/docs/AttributesLoadingPolicy.md
deleted file mode 100644
index 94173d9f..00000000
--- a/gen/iwfidl/docs/AttributesLoadingPolicy.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# AttributesLoadingPolicy
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**AttributeLoadingType** | Pointer to **string** | | [optional]
-**AttributeKeys** | Pointer to **[]string** | | [optional]
-
-## Methods
-
-### NewAttributesLoadingPolicy
-
-`func NewAttributesLoadingPolicy() *AttributesLoadingPolicy`
-
-NewAttributesLoadingPolicy instantiates a new AttributesLoadingPolicy object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewAttributesLoadingPolicyWithDefaults
-
-`func NewAttributesLoadingPolicyWithDefaults() *AttributesLoadingPolicy`
-
-NewAttributesLoadingPolicyWithDefaults instantiates a new AttributesLoadingPolicy object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetAttributeLoadingType
-
-`func (o *AttributesLoadingPolicy) GetAttributeLoadingType() string`
-
-GetAttributeLoadingType returns the AttributeLoadingType field if non-nil, zero value otherwise.
-
-### GetAttributeLoadingTypeOk
-
-`func (o *AttributesLoadingPolicy) GetAttributeLoadingTypeOk() (*string, bool)`
-
-GetAttributeLoadingTypeOk returns a tuple with the AttributeLoadingType field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetAttributeLoadingType
-
-`func (o *AttributesLoadingPolicy) SetAttributeLoadingType(v string)`
-
-SetAttributeLoadingType sets AttributeLoadingType field to given value.
-
-### HasAttributeLoadingType
-
-`func (o *AttributesLoadingPolicy) HasAttributeLoadingType() bool`
-
-HasAttributeLoadingType returns a boolean if a field has been set.
-
-### GetAttributeKeys
-
-`func (o *AttributesLoadingPolicy) GetAttributeKeys() []string`
-
-GetAttributeKeys returns the AttributeKeys field if non-nil, zero value otherwise.
-
-### GetAttributeKeysOk
-
-`func (o *AttributesLoadingPolicy) GetAttributeKeysOk() (*[]string, bool)`
-
-GetAttributeKeysOk returns a tuple with the AttributeKeys field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetAttributeKeys
-
-`func (o *AttributesLoadingPolicy) SetAttributeKeys(v []string)`
-
-SetAttributeKeys sets AttributeKeys field to given value.
-
-### HasAttributeKeys
-
-`func (o *AttributesLoadingPolicy) HasAttributeKeys() bool`
-
-HasAttributeKeys returns a boolean if a field has been set.
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/gen/iwfidl/docs/DefaultApi.md b/gen/iwfidl/docs/DefaultApi.md
index 30b8921b..7d8628f0 100644
--- a/gen/iwfidl/docs/DefaultApi.md
+++ b/gen/iwfidl/docs/DefaultApi.md
@@ -4,10 +4,9 @@ All URIs are relative to *http://petstore.swagger.io/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**ApiV1WorkflowCancelPost**](DefaultApi.md#ApiV1WorkflowCancelPost) | **Post** /api/v1/workflow/cancel | cancel a workflow
+[**ApiV1WorkflowDataobjectsGetPost**](DefaultApi.md#ApiV1WorkflowDataobjectsGetPost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects
[**ApiV1WorkflowGetPost**](DefaultApi.md#ApiV1WorkflowGetPost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested)
[**ApiV1WorkflowGetWithWaitPost**](DefaultApi.md#ApiV1WorkflowGetWithWaitPost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running
-[**ApiV1WorkflowQueryattributesGetPost**](DefaultApi.md#ApiV1WorkflowQueryattributesGetPost) | **Post** /api/v1/workflow/queryattributes/get | get workflow query attributes
[**ApiV1WorkflowResetPost**](DefaultApi.md#ApiV1WorkflowResetPost) | **Post** /api/v1/workflow/reset | reset a workflow
[**ApiV1WorkflowSearchPost**](DefaultApi.md#ApiV1WorkflowSearchPost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query
[**ApiV1WorkflowSearchattributesGetPost**](DefaultApi.md#ApiV1WorkflowSearchattributesGetPost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes
@@ -15,14 +14,15 @@ Method | HTTP request | Description
[**ApiV1WorkflowStartPost**](DefaultApi.md#ApiV1WorkflowStartPost) | **Post** /api/v1/workflow/start | start a workflow
[**ApiV1WorkflowStateDecidePost**](DefaultApi.md#ApiV1WorkflowStateDecidePost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.decide API
[**ApiV1WorkflowStateStartPost**](DefaultApi.md#ApiV1WorkflowStateStartPost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.start API
+[**ApiV1WorkflowStopPost**](DefaultApi.md#ApiV1WorkflowStopPost) | **Post** /api/v1/workflow/stop | stop a workflow
-## ApiV1WorkflowCancelPost
+## ApiV1WorkflowDataobjectsGetPost
-> ApiV1WorkflowCancelPost(ctx).WorkflowCancelRequest(workflowCancelRequest).Execute()
+> WorkflowGetDataObjectsResponse ApiV1WorkflowDataobjectsGetPost(ctx).WorkflowGetDataObjectsRequest(workflowGetDataObjectsRequest).Execute()
-cancel a workflow
+get workflow data objects
### Example
@@ -37,15 +37,17 @@ import (
)
func main() {
- workflowCancelRequest := *openapiclient.NewWorkflowCancelRequest("WorkflowId_example") // WorkflowCancelRequest | (optional)
+ workflowGetDataObjectsRequest := *openapiclient.NewWorkflowGetDataObjectsRequest("WorkflowId_example") // WorkflowGetDataObjectsRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DefaultApi.ApiV1WorkflowCancelPost(context.Background()).WorkflowCancelRequest(workflowCancelRequest).Execute()
+ resp, r, err := apiClient.DefaultApi.ApiV1WorkflowDataobjectsGetPost(context.Background()).WorkflowGetDataObjectsRequest(workflowGetDataObjectsRequest).Execute()
if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowCancelPost``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowDataobjectsGetPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
+ // response from `ApiV1WorkflowDataobjectsGetPost`: WorkflowGetDataObjectsResponse
+ fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowDataobjectsGetPost`: %v\n", resp)
}
```
@@ -55,16 +57,16 @@ func main() {
### Other Parameters
-Other parameters are passed through a pointer to a apiApiV1WorkflowCancelPostRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiApiV1WorkflowDataobjectsGetPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **workflowCancelRequest** | [**WorkflowCancelRequest**](WorkflowCancelRequest.md) | |
+ **workflowGetDataObjectsRequest** | [**WorkflowGetDataObjectsRequest**](WorkflowGetDataObjectsRequest.md) | |
### Return type
- (empty response body)
+[**WorkflowGetDataObjectsResponse**](WorkflowGetDataObjectsResponse.md)
### Authorization
@@ -208,70 +210,6 @@ No authorization required
[[Back to README]](../README.md)
-## ApiV1WorkflowQueryattributesGetPost
-
-> WorkflowGetQueryAttributesResponse ApiV1WorkflowQueryattributesGetPost(ctx).WorkflowGetQueryAttributesRequest(workflowGetQueryAttributesRequest).Execute()
-
-get workflow query attributes
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "./openapi"
-)
-
-func main() {
- workflowGetQueryAttributesRequest := *openapiclient.NewWorkflowGetQueryAttributesRequest("WorkflowId_example") // WorkflowGetQueryAttributesRequest | (optional)
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DefaultApi.ApiV1WorkflowQueryattributesGetPost(context.Background()).WorkflowGetQueryAttributesRequest(workflowGetQueryAttributesRequest).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowQueryattributesGetPost``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ApiV1WorkflowQueryattributesGetPost`: WorkflowGetQueryAttributesResponse
- fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowQueryattributesGetPost`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiApiV1WorkflowQueryattributesGetPostRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **workflowGetQueryAttributesRequest** | [**WorkflowGetQueryAttributesRequest**](WorkflowGetQueryAttributesRequest.md) | |
-
-### Return type
-
-[**WorkflowGetQueryAttributesResponse**](WorkflowGetQueryAttributesResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
## ApiV1WorkflowResetPost
> WorkflowResetResponse ApiV1WorkflowResetPost(ctx).WorkflowResetRequest(workflowResetRequest).Execute()
@@ -717,3 +655,65 @@ No authorization required
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
+
+## ApiV1WorkflowStopPost
+
+> ApiV1WorkflowStopPost(ctx).WorkflowStopRequest(workflowStopRequest).Execute()
+
+stop a workflow
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ openapiclient "./openapi"
+)
+
+func main() {
+ workflowStopRequest := *openapiclient.NewWorkflowStopRequest("WorkflowId_example") // WorkflowStopRequest | (optional)
+
+ configuration := openapiclient.NewConfiguration()
+ apiClient := openapiclient.NewAPIClient(configuration)
+ resp, r, err := apiClient.DefaultApi.ApiV1WorkflowStopPost(context.Background()).WorkflowStopRequest(workflowStopRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowStopPost``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiApiV1WorkflowStopPostRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **workflowStopRequest** | [**WorkflowStopRequest**](WorkflowStopRequest.md) | |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
diff --git a/gen/iwfidl/docs/PersistenceLoadingPolicy.md b/gen/iwfidl/docs/PersistenceLoadingPolicy.md
new file mode 100644
index 00000000..7e2f7019
--- /dev/null
+++ b/gen/iwfidl/docs/PersistenceLoadingPolicy.md
@@ -0,0 +1,82 @@
+# PersistenceLoadingPolicy
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PersistenceLoadingType** | Pointer to **string** | | [optional]
+**PartialLoadingKeys** | Pointer to **[]string** | | [optional]
+
+## Methods
+
+### NewPersistenceLoadingPolicy
+
+`func NewPersistenceLoadingPolicy() *PersistenceLoadingPolicy`
+
+NewPersistenceLoadingPolicy instantiates a new PersistenceLoadingPolicy object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPersistenceLoadingPolicyWithDefaults
+
+`func NewPersistenceLoadingPolicyWithDefaults() *PersistenceLoadingPolicy`
+
+NewPersistenceLoadingPolicyWithDefaults instantiates a new PersistenceLoadingPolicy object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPersistenceLoadingType
+
+`func (o *PersistenceLoadingPolicy) GetPersistenceLoadingType() string`
+
+GetPersistenceLoadingType returns the PersistenceLoadingType field if non-nil, zero value otherwise.
+
+### GetPersistenceLoadingTypeOk
+
+`func (o *PersistenceLoadingPolicy) GetPersistenceLoadingTypeOk() (*string, bool)`
+
+GetPersistenceLoadingTypeOk returns a tuple with the PersistenceLoadingType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPersistenceLoadingType
+
+`func (o *PersistenceLoadingPolicy) SetPersistenceLoadingType(v string)`
+
+SetPersistenceLoadingType sets PersistenceLoadingType field to given value.
+
+### HasPersistenceLoadingType
+
+`func (o *PersistenceLoadingPolicy) HasPersistenceLoadingType() bool`
+
+HasPersistenceLoadingType returns a boolean if a field has been set.
+
+### GetPartialLoadingKeys
+
+`func (o *PersistenceLoadingPolicy) GetPartialLoadingKeys() []string`
+
+GetPartialLoadingKeys returns the PartialLoadingKeys field if non-nil, zero value otherwise.
+
+### GetPartialLoadingKeysOk
+
+`func (o *PersistenceLoadingPolicy) GetPartialLoadingKeysOk() (*[]string, bool)`
+
+GetPartialLoadingKeysOk returns a tuple with the PartialLoadingKeys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPartialLoadingKeys
+
+`func (o *PersistenceLoadingPolicy) SetPartialLoadingKeys(v []string)`
+
+SetPartialLoadingKeys sets PartialLoadingKeys field to given value.
+
+### HasPartialLoadingKeys
+
+`func (o *PersistenceLoadingPolicy) HasPartialLoadingKeys() bool`
+
+HasPartialLoadingKeys returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/gen/iwfidl/docs/RetryPolicy.md b/gen/iwfidl/docs/RetryPolicy.md
new file mode 100644
index 00000000..9f5192b0
--- /dev/null
+++ b/gen/iwfidl/docs/RetryPolicy.md
@@ -0,0 +1,134 @@
+# RetryPolicy
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**InitialInterval** | Pointer to **float32** | | [optional]
+**BackoffCoefficient** | Pointer to **float32** | | [optional]
+**MaximumInterval** | Pointer to **float32** | | [optional]
+**MaximumAttempts** | Pointer to **int32** | | [optional]
+
+## Methods
+
+### NewRetryPolicy
+
+`func NewRetryPolicy() *RetryPolicy`
+
+NewRetryPolicy instantiates a new RetryPolicy object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewRetryPolicyWithDefaults
+
+`func NewRetryPolicyWithDefaults() *RetryPolicy`
+
+NewRetryPolicyWithDefaults instantiates a new RetryPolicy object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetInitialInterval
+
+`func (o *RetryPolicy) GetInitialInterval() float32`
+
+GetInitialInterval returns the InitialInterval field if non-nil, zero value otherwise.
+
+### GetInitialIntervalOk
+
+`func (o *RetryPolicy) GetInitialIntervalOk() (*float32, bool)`
+
+GetInitialIntervalOk returns a tuple with the InitialInterval field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetInitialInterval
+
+`func (o *RetryPolicy) SetInitialInterval(v float32)`
+
+SetInitialInterval sets InitialInterval field to given value.
+
+### HasInitialInterval
+
+`func (o *RetryPolicy) HasInitialInterval() bool`
+
+HasInitialInterval returns a boolean if a field has been set.
+
+### GetBackoffCoefficient
+
+`func (o *RetryPolicy) GetBackoffCoefficient() float32`
+
+GetBackoffCoefficient returns the BackoffCoefficient field if non-nil, zero value otherwise.
+
+### GetBackoffCoefficientOk
+
+`func (o *RetryPolicy) GetBackoffCoefficientOk() (*float32, bool)`
+
+GetBackoffCoefficientOk returns a tuple with the BackoffCoefficient field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetBackoffCoefficient
+
+`func (o *RetryPolicy) SetBackoffCoefficient(v float32)`
+
+SetBackoffCoefficient sets BackoffCoefficient field to given value.
+
+### HasBackoffCoefficient
+
+`func (o *RetryPolicy) HasBackoffCoefficient() bool`
+
+HasBackoffCoefficient returns a boolean if a field has been set.
+
+### GetMaximumInterval
+
+`func (o *RetryPolicy) GetMaximumInterval() float32`
+
+GetMaximumInterval returns the MaximumInterval field if non-nil, zero value otherwise.
+
+### GetMaximumIntervalOk
+
+`func (o *RetryPolicy) GetMaximumIntervalOk() (*float32, bool)`
+
+GetMaximumIntervalOk returns a tuple with the MaximumInterval field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMaximumInterval
+
+`func (o *RetryPolicy) SetMaximumInterval(v float32)`
+
+SetMaximumInterval sets MaximumInterval field to given value.
+
+### HasMaximumInterval
+
+`func (o *RetryPolicy) HasMaximumInterval() bool`
+
+HasMaximumInterval returns a boolean if a field has been set.
+
+### GetMaximumAttempts
+
+`func (o *RetryPolicy) GetMaximumAttempts() int32`
+
+GetMaximumAttempts returns the MaximumAttempts field if non-nil, zero value otherwise.
+
+### GetMaximumAttemptsOk
+
+`func (o *RetryPolicy) GetMaximumAttemptsOk() (*int32, bool)`
+
+GetMaximumAttemptsOk returns a tuple with the MaximumAttempts field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMaximumAttempts
+
+`func (o *RetryPolicy) SetMaximumAttempts(v int32)`
+
+SetMaximumAttempts sets MaximumAttempts field to given value.
+
+### HasMaximumAttempts
+
+`func (o *RetryPolicy) HasMaximumAttempts() bool`
+
+HasMaximumAttempts returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/gen/iwfidl/docs/WorkflowGetDataObjectsRequest.md b/gen/iwfidl/docs/WorkflowGetDataObjectsRequest.md
new file mode 100644
index 00000000..a78902f6
--- /dev/null
+++ b/gen/iwfidl/docs/WorkflowGetDataObjectsRequest.md
@@ -0,0 +1,103 @@
+# WorkflowGetDataObjectsRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**WorkflowId** | **string** | |
+**WorkflowRunId** | Pointer to **string** | | [optional]
+**Keys** | Pointer to **[]string** | | [optional]
+
+## Methods
+
+### NewWorkflowGetDataObjectsRequest
+
+`func NewWorkflowGetDataObjectsRequest(workflowId string, ) *WorkflowGetDataObjectsRequest`
+
+NewWorkflowGetDataObjectsRequest instantiates a new WorkflowGetDataObjectsRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWorkflowGetDataObjectsRequestWithDefaults
+
+`func NewWorkflowGetDataObjectsRequestWithDefaults() *WorkflowGetDataObjectsRequest`
+
+NewWorkflowGetDataObjectsRequestWithDefaults instantiates a new WorkflowGetDataObjectsRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetWorkflowId
+
+`func (o *WorkflowGetDataObjectsRequest) GetWorkflowId() string`
+
+GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise.
+
+### GetWorkflowIdOk
+
+`func (o *WorkflowGetDataObjectsRequest) GetWorkflowIdOk() (*string, bool)`
+
+GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWorkflowId
+
+`func (o *WorkflowGetDataObjectsRequest) SetWorkflowId(v string)`
+
+SetWorkflowId sets WorkflowId field to given value.
+
+
+### GetWorkflowRunId
+
+`func (o *WorkflowGetDataObjectsRequest) GetWorkflowRunId() string`
+
+GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise.
+
+### GetWorkflowRunIdOk
+
+`func (o *WorkflowGetDataObjectsRequest) GetWorkflowRunIdOk() (*string, bool)`
+
+GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWorkflowRunId
+
+`func (o *WorkflowGetDataObjectsRequest) SetWorkflowRunId(v string)`
+
+SetWorkflowRunId sets WorkflowRunId field to given value.
+
+### HasWorkflowRunId
+
+`func (o *WorkflowGetDataObjectsRequest) HasWorkflowRunId() bool`
+
+HasWorkflowRunId returns a boolean if a field has been set.
+
+### GetKeys
+
+`func (o *WorkflowGetDataObjectsRequest) GetKeys() []string`
+
+GetKeys returns the Keys field if non-nil, zero value otherwise.
+
+### GetKeysOk
+
+`func (o *WorkflowGetDataObjectsRequest) GetKeysOk() (*[]string, bool)`
+
+GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetKeys
+
+`func (o *WorkflowGetDataObjectsRequest) SetKeys(v []string)`
+
+SetKeys sets Keys field to given value.
+
+### HasKeys
+
+`func (o *WorkflowGetDataObjectsRequest) HasKeys() bool`
+
+HasKeys returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/gen/iwfidl/docs/WorkflowGetDataObjectsResponse.md b/gen/iwfidl/docs/WorkflowGetDataObjectsResponse.md
new file mode 100644
index 00000000..a02031c9
--- /dev/null
+++ b/gen/iwfidl/docs/WorkflowGetDataObjectsResponse.md
@@ -0,0 +1,56 @@
+# WorkflowGetDataObjectsResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Objects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+
+## Methods
+
+### NewWorkflowGetDataObjectsResponse
+
+`func NewWorkflowGetDataObjectsResponse() *WorkflowGetDataObjectsResponse`
+
+NewWorkflowGetDataObjectsResponse instantiates a new WorkflowGetDataObjectsResponse object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWorkflowGetDataObjectsResponseWithDefaults
+
+`func NewWorkflowGetDataObjectsResponseWithDefaults() *WorkflowGetDataObjectsResponse`
+
+NewWorkflowGetDataObjectsResponseWithDefaults instantiates a new WorkflowGetDataObjectsResponse object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetObjects
+
+`func (o *WorkflowGetDataObjectsResponse) GetObjects() []KeyValue`
+
+GetObjects returns the Objects field if non-nil, zero value otherwise.
+
+### GetObjectsOk
+
+`func (o *WorkflowGetDataObjectsResponse) GetObjectsOk() (*[]KeyValue, bool)`
+
+GetObjectsOk returns a tuple with the Objects field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetObjects
+
+`func (o *WorkflowGetDataObjectsResponse) SetObjects(v []KeyValue)`
+
+SetObjects sets Objects field to given value.
+
+### HasObjects
+
+`func (o *WorkflowGetDataObjectsResponse) HasObjects() bool`
+
+HasObjects returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/gen/iwfidl/docs/WorkflowGetQueryAttributesRequest.md b/gen/iwfidl/docs/WorkflowGetQueryAttributesRequest.md
deleted file mode 100644
index 4c997b46..00000000
--- a/gen/iwfidl/docs/WorkflowGetQueryAttributesRequest.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# WorkflowGetQueryAttributesRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**WorkflowId** | **string** | |
-**WorkflowRunId** | Pointer to **string** | | [optional]
-**AttributeKeys** | Pointer to **[]string** | | [optional]
-
-## Methods
-
-### NewWorkflowGetQueryAttributesRequest
-
-`func NewWorkflowGetQueryAttributesRequest(workflowId string, ) *WorkflowGetQueryAttributesRequest`
-
-NewWorkflowGetQueryAttributesRequest instantiates a new WorkflowGetQueryAttributesRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWorkflowGetQueryAttributesRequestWithDefaults
-
-`func NewWorkflowGetQueryAttributesRequestWithDefaults() *WorkflowGetQueryAttributesRequest`
-
-NewWorkflowGetQueryAttributesRequestWithDefaults instantiates a new WorkflowGetQueryAttributesRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetWorkflowId
-
-`func (o *WorkflowGetQueryAttributesRequest) GetWorkflowId() string`
-
-GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise.
-
-### GetWorkflowIdOk
-
-`func (o *WorkflowGetQueryAttributesRequest) GetWorkflowIdOk() (*string, bool)`
-
-GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetWorkflowId
-
-`func (o *WorkflowGetQueryAttributesRequest) SetWorkflowId(v string)`
-
-SetWorkflowId sets WorkflowId field to given value.
-
-
-### GetWorkflowRunId
-
-`func (o *WorkflowGetQueryAttributesRequest) GetWorkflowRunId() string`
-
-GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise.
-
-### GetWorkflowRunIdOk
-
-`func (o *WorkflowGetQueryAttributesRequest) GetWorkflowRunIdOk() (*string, bool)`
-
-GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetWorkflowRunId
-
-`func (o *WorkflowGetQueryAttributesRequest) SetWorkflowRunId(v string)`
-
-SetWorkflowRunId sets WorkflowRunId field to given value.
-
-### HasWorkflowRunId
-
-`func (o *WorkflowGetQueryAttributesRequest) HasWorkflowRunId() bool`
-
-HasWorkflowRunId returns a boolean if a field has been set.
-
-### GetAttributeKeys
-
-`func (o *WorkflowGetQueryAttributesRequest) GetAttributeKeys() []string`
-
-GetAttributeKeys returns the AttributeKeys field if non-nil, zero value otherwise.
-
-### GetAttributeKeysOk
-
-`func (o *WorkflowGetQueryAttributesRequest) GetAttributeKeysOk() (*[]string, bool)`
-
-GetAttributeKeysOk returns a tuple with the AttributeKeys field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetAttributeKeys
-
-`func (o *WorkflowGetQueryAttributesRequest) SetAttributeKeys(v []string)`
-
-SetAttributeKeys sets AttributeKeys field to given value.
-
-### HasAttributeKeys
-
-`func (o *WorkflowGetQueryAttributesRequest) HasAttributeKeys() bool`
-
-HasAttributeKeys returns a boolean if a field has been set.
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/gen/iwfidl/docs/WorkflowGetQueryAttributesResponse.md b/gen/iwfidl/docs/WorkflowGetQueryAttributesResponse.md
deleted file mode 100644
index 38d27805..00000000
--- a/gen/iwfidl/docs/WorkflowGetQueryAttributesResponse.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# WorkflowGetQueryAttributesResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**QueryAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
-
-## Methods
-
-### NewWorkflowGetQueryAttributesResponse
-
-`func NewWorkflowGetQueryAttributesResponse() *WorkflowGetQueryAttributesResponse`
-
-NewWorkflowGetQueryAttributesResponse instantiates a new WorkflowGetQueryAttributesResponse object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWorkflowGetQueryAttributesResponseWithDefaults
-
-`func NewWorkflowGetQueryAttributesResponseWithDefaults() *WorkflowGetQueryAttributesResponse`
-
-NewWorkflowGetQueryAttributesResponseWithDefaults instantiates a new WorkflowGetQueryAttributesResponse object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetQueryAttributes
-
-`func (o *WorkflowGetQueryAttributesResponse) GetQueryAttributes() []KeyValue`
-
-GetQueryAttributes returns the QueryAttributes field if non-nil, zero value otherwise.
-
-### GetQueryAttributesOk
-
-`func (o *WorkflowGetQueryAttributesResponse) GetQueryAttributesOk() (*[]KeyValue, bool)`
-
-GetQueryAttributesOk returns a tuple with the QueryAttributes field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetQueryAttributes
-
-`func (o *WorkflowGetQueryAttributesResponse) SetQueryAttributes(v []KeyValue)`
-
-SetQueryAttributes sets QueryAttributes field to given value.
-
-### HasQueryAttributes
-
-`func (o *WorkflowGetQueryAttributesResponse) HasQueryAttributes() bool`
-
-HasQueryAttributes returns a boolean if a field has been set.
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/gen/iwfidl/docs/WorkflowGetSearchAttributesRequest.md b/gen/iwfidl/docs/WorkflowGetSearchAttributesRequest.md
index cc318ce8..f3fdd3f6 100644
--- a/gen/iwfidl/docs/WorkflowGetSearchAttributesRequest.md
+++ b/gen/iwfidl/docs/WorkflowGetSearchAttributesRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**WorkflowId** | **string** | |
**WorkflowRunId** | Pointer to **string** | | [optional]
-**AttributeKeys** | Pointer to [**[]SearchAttributeKeyAndType**](SearchAttributeKeyAndType.md) | | [optional]
+**Keys** | Pointer to [**[]SearchAttributeKeyAndType**](SearchAttributeKeyAndType.md) | | [optional]
## Methods
@@ -72,30 +72,30 @@ SetWorkflowRunId sets WorkflowRunId field to given value.
HasWorkflowRunId returns a boolean if a field has been set.
-### GetAttributeKeys
+### GetKeys
-`func (o *WorkflowGetSearchAttributesRequest) GetAttributeKeys() []SearchAttributeKeyAndType`
+`func (o *WorkflowGetSearchAttributesRequest) GetKeys() []SearchAttributeKeyAndType`
-GetAttributeKeys returns the AttributeKeys field if non-nil, zero value otherwise.
+GetKeys returns the Keys field if non-nil, zero value otherwise.
-### GetAttributeKeysOk
+### GetKeysOk
-`func (o *WorkflowGetSearchAttributesRequest) GetAttributeKeysOk() (*[]SearchAttributeKeyAndType, bool)`
+`func (o *WorkflowGetSearchAttributesRequest) GetKeysOk() (*[]SearchAttributeKeyAndType, bool)`
-GetAttributeKeysOk returns a tuple with the AttributeKeys field if it's non-nil, zero value otherwise
+GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetAttributeKeys
+### SetKeys
-`func (o *WorkflowGetSearchAttributesRequest) SetAttributeKeys(v []SearchAttributeKeyAndType)`
+`func (o *WorkflowGetSearchAttributesRequest) SetKeys(v []SearchAttributeKeyAndType)`
-SetAttributeKeys sets AttributeKeys field to given value.
+SetKeys sets Keys field to given value.
-### HasAttributeKeys
+### HasKeys
-`func (o *WorkflowGetSearchAttributesRequest) HasAttributeKeys() bool`
+`func (o *WorkflowGetSearchAttributesRequest) HasKeys() bool`
-HasAttributeKeys returns a boolean if a field has been set.
+HasKeys returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/gen/iwfidl/docs/WorkflowResetRequest.md b/gen/iwfidl/docs/WorkflowResetRequest.md
index d5233631..b494e175 100644
--- a/gen/iwfidl/docs/WorkflowResetRequest.md
+++ b/gen/iwfidl/docs/WorkflowResetRequest.md
@@ -9,9 +9,7 @@ Name | Type | Description | Notes
**ResetType** | **string** | |
**HistoryEventId** | Pointer to **int32** | | [optional]
**Reason** | Pointer to **string** | | [optional]
-**DecisionOffset** | Pointer to **int32** | | [optional]
-**ResetBadBinaryChecksum** | Pointer to **string** | | [optional]
-**EarliestTime** | Pointer to **string** | | [optional]
+**HistoryEventTime** | Pointer to **string** | | [optional]
**SkipSignalReapply** | Pointer to **bool** | | [optional]
## Methods
@@ -148,80 +146,30 @@ SetReason sets Reason field to given value.
HasReason returns a boolean if a field has been set.
-### GetDecisionOffset
+### GetHistoryEventTime
-`func (o *WorkflowResetRequest) GetDecisionOffset() int32`
+`func (o *WorkflowResetRequest) GetHistoryEventTime() string`
-GetDecisionOffset returns the DecisionOffset field if non-nil, zero value otherwise.
+GetHistoryEventTime returns the HistoryEventTime field if non-nil, zero value otherwise.
-### GetDecisionOffsetOk
+### GetHistoryEventTimeOk
-`func (o *WorkflowResetRequest) GetDecisionOffsetOk() (*int32, bool)`
+`func (o *WorkflowResetRequest) GetHistoryEventTimeOk() (*string, bool)`
-GetDecisionOffsetOk returns a tuple with the DecisionOffset field if it's non-nil, zero value otherwise
+GetHistoryEventTimeOk returns a tuple with the HistoryEventTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetDecisionOffset
+### SetHistoryEventTime
-`func (o *WorkflowResetRequest) SetDecisionOffset(v int32)`
+`func (o *WorkflowResetRequest) SetHistoryEventTime(v string)`
-SetDecisionOffset sets DecisionOffset field to given value.
+SetHistoryEventTime sets HistoryEventTime field to given value.
-### HasDecisionOffset
+### HasHistoryEventTime
-`func (o *WorkflowResetRequest) HasDecisionOffset() bool`
+`func (o *WorkflowResetRequest) HasHistoryEventTime() bool`
-HasDecisionOffset returns a boolean if a field has been set.
-
-### GetResetBadBinaryChecksum
-
-`func (o *WorkflowResetRequest) GetResetBadBinaryChecksum() string`
-
-GetResetBadBinaryChecksum returns the ResetBadBinaryChecksum field if non-nil, zero value otherwise.
-
-### GetResetBadBinaryChecksumOk
-
-`func (o *WorkflowResetRequest) GetResetBadBinaryChecksumOk() (*string, bool)`
-
-GetResetBadBinaryChecksumOk returns a tuple with the ResetBadBinaryChecksum field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetResetBadBinaryChecksum
-
-`func (o *WorkflowResetRequest) SetResetBadBinaryChecksum(v string)`
-
-SetResetBadBinaryChecksum sets ResetBadBinaryChecksum field to given value.
-
-### HasResetBadBinaryChecksum
-
-`func (o *WorkflowResetRequest) HasResetBadBinaryChecksum() bool`
-
-HasResetBadBinaryChecksum returns a boolean if a field has been set.
-
-### GetEarliestTime
-
-`func (o *WorkflowResetRequest) GetEarliestTime() string`
-
-GetEarliestTime returns the EarliestTime field if non-nil, zero value otherwise.
-
-### GetEarliestTimeOk
-
-`func (o *WorkflowResetRequest) GetEarliestTimeOk() (*string, bool)`
-
-GetEarliestTimeOk returns a tuple with the EarliestTime field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetEarliestTime
-
-`func (o *WorkflowResetRequest) SetEarliestTime(v string)`
-
-SetEarliestTime sets EarliestTime field to given value.
-
-### HasEarliestTime
-
-`func (o *WorkflowResetRequest) HasEarliestTime() bool`
-
-HasEarliestTime returns a boolean if a field has been set.
+HasHistoryEventTime returns a boolean if a field has been set.
### GetSkipSignalReapply
diff --git a/gen/iwfidl/docs/WorkflowStartOptions.md b/gen/iwfidl/docs/WorkflowStartOptions.md
index 245d9d27..eca4e347 100644
--- a/gen/iwfidl/docs/WorkflowStartOptions.md
+++ b/gen/iwfidl/docs/WorkflowStartOptions.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**WorkflowIDReusePolicy** | Pointer to **string** | | [optional]
**CronSchedule** | Pointer to **string** | | [optional]
+**RetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional]
## Methods
@@ -76,6 +77,31 @@ SetCronSchedule sets CronSchedule field to given value.
HasCronSchedule returns a boolean if a field has been set.
+### GetRetryPolicy
+
+`func (o *WorkflowStartOptions) GetRetryPolicy() RetryPolicy`
+
+GetRetryPolicy returns the RetryPolicy field if non-nil, zero value otherwise.
+
+### GetRetryPolicyOk
+
+`func (o *WorkflowStartOptions) GetRetryPolicyOk() (*RetryPolicy, bool)`
+
+GetRetryPolicyOk returns a tuple with the RetryPolicy field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRetryPolicy
+
+`func (o *WorkflowStartOptions) SetRetryPolicy(v RetryPolicy)`
+
+SetRetryPolicy sets RetryPolicy field to given value.
+
+### HasRetryPolicy
+
+`func (o *WorkflowStartOptions) HasRetryPolicy() bool`
+
+HasRetryPolicy returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/gen/iwfidl/docs/WorkflowStateDecideRequest.md b/gen/iwfidl/docs/WorkflowStateDecideRequest.md
index b1427024..64e374d5 100644
--- a/gen/iwfidl/docs/WorkflowStateDecideRequest.md
+++ b/gen/iwfidl/docs/WorkflowStateDecideRequest.md
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
**WorkflowStateId** | **string** | |
**StateInput** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
-**QueryAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
-**StateLocalAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**DataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**StateLocals** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**CommandResults** | Pointer to [**CommandResults**](CommandResults.md) | | [optional]
## Methods
@@ -142,55 +142,55 @@ SetSearchAttributes sets SearchAttributes field to given value.
HasSearchAttributes returns a boolean if a field has been set.
-### GetQueryAttributes
+### GetDataObjects
-`func (o *WorkflowStateDecideRequest) GetQueryAttributes() []KeyValue`
+`func (o *WorkflowStateDecideRequest) GetDataObjects() []KeyValue`
-GetQueryAttributes returns the QueryAttributes field if non-nil, zero value otherwise.
+GetDataObjects returns the DataObjects field if non-nil, zero value otherwise.
-### GetQueryAttributesOk
+### GetDataObjectsOk
-`func (o *WorkflowStateDecideRequest) GetQueryAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateDecideRequest) GetDataObjectsOk() (*[]KeyValue, bool)`
-GetQueryAttributesOk returns a tuple with the QueryAttributes field if it's non-nil, zero value otherwise
+GetDataObjectsOk returns a tuple with the DataObjects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetQueryAttributes
+### SetDataObjects
-`func (o *WorkflowStateDecideRequest) SetQueryAttributes(v []KeyValue)`
+`func (o *WorkflowStateDecideRequest) SetDataObjects(v []KeyValue)`
-SetQueryAttributes sets QueryAttributes field to given value.
+SetDataObjects sets DataObjects field to given value.
-### HasQueryAttributes
+### HasDataObjects
-`func (o *WorkflowStateDecideRequest) HasQueryAttributes() bool`
+`func (o *WorkflowStateDecideRequest) HasDataObjects() bool`
-HasQueryAttributes returns a boolean if a field has been set.
+HasDataObjects returns a boolean if a field has been set.
-### GetStateLocalAttributes
+### GetStateLocals
-`func (o *WorkflowStateDecideRequest) GetStateLocalAttributes() []KeyValue`
+`func (o *WorkflowStateDecideRequest) GetStateLocals() []KeyValue`
-GetStateLocalAttributes returns the StateLocalAttributes field if non-nil, zero value otherwise.
+GetStateLocals returns the StateLocals field if non-nil, zero value otherwise.
-### GetStateLocalAttributesOk
+### GetStateLocalsOk
-`func (o *WorkflowStateDecideRequest) GetStateLocalAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateDecideRequest) GetStateLocalsOk() (*[]KeyValue, bool)`
-GetStateLocalAttributesOk returns a tuple with the StateLocalAttributes field if it's non-nil, zero value otherwise
+GetStateLocalsOk returns a tuple with the StateLocals field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetStateLocalAttributes
+### SetStateLocals
-`func (o *WorkflowStateDecideRequest) SetStateLocalAttributes(v []KeyValue)`
+`func (o *WorkflowStateDecideRequest) SetStateLocals(v []KeyValue)`
-SetStateLocalAttributes sets StateLocalAttributes field to given value.
+SetStateLocals sets StateLocals field to given value.
-### HasStateLocalAttributes
+### HasStateLocals
-`func (o *WorkflowStateDecideRequest) HasStateLocalAttributes() bool`
+`func (o *WorkflowStateDecideRequest) HasStateLocals() bool`
-HasStateLocalAttributes returns a boolean if a field has been set.
+HasStateLocals returns a boolean if a field has been set.
### GetCommandResults
diff --git a/gen/iwfidl/docs/WorkflowStateDecideResponse.md b/gen/iwfidl/docs/WorkflowStateDecideResponse.md
index f05978c1..304fd8bc 100644
--- a/gen/iwfidl/docs/WorkflowStateDecideResponse.md
+++ b/gen/iwfidl/docs/WorkflowStateDecideResponse.md
@@ -6,9 +6,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StateDecision** | Pointer to [**StateDecision**](StateDecision.md) | | [optional]
**UpsertSearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
-**UpsertQueryAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**UpsertDataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**RecordEvents** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
-**UpsertStateLocalAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**UpsertStateLocals** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**PublishToInterStateChannel** | Pointer to [**[]InterStateChannelPublishing**](InterStateChannelPublishing.md) | | [optional]
## Methods
@@ -80,30 +80,30 @@ SetUpsertSearchAttributes sets UpsertSearchAttributes field to given value.
HasUpsertSearchAttributes returns a boolean if a field has been set.
-### GetUpsertQueryAttributes
+### GetUpsertDataObjects
-`func (o *WorkflowStateDecideResponse) GetUpsertQueryAttributes() []KeyValue`
+`func (o *WorkflowStateDecideResponse) GetUpsertDataObjects() []KeyValue`
-GetUpsertQueryAttributes returns the UpsertQueryAttributes field if non-nil, zero value otherwise.
+GetUpsertDataObjects returns the UpsertDataObjects field if non-nil, zero value otherwise.
-### GetUpsertQueryAttributesOk
+### GetUpsertDataObjectsOk
-`func (o *WorkflowStateDecideResponse) GetUpsertQueryAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateDecideResponse) GetUpsertDataObjectsOk() (*[]KeyValue, bool)`
-GetUpsertQueryAttributesOk returns a tuple with the UpsertQueryAttributes field if it's non-nil, zero value otherwise
+GetUpsertDataObjectsOk returns a tuple with the UpsertDataObjects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUpsertQueryAttributes
+### SetUpsertDataObjects
-`func (o *WorkflowStateDecideResponse) SetUpsertQueryAttributes(v []KeyValue)`
+`func (o *WorkflowStateDecideResponse) SetUpsertDataObjects(v []KeyValue)`
-SetUpsertQueryAttributes sets UpsertQueryAttributes field to given value.
+SetUpsertDataObjects sets UpsertDataObjects field to given value.
-### HasUpsertQueryAttributes
+### HasUpsertDataObjects
-`func (o *WorkflowStateDecideResponse) HasUpsertQueryAttributes() bool`
+`func (o *WorkflowStateDecideResponse) HasUpsertDataObjects() bool`
-HasUpsertQueryAttributes returns a boolean if a field has been set.
+HasUpsertDataObjects returns a boolean if a field has been set.
### GetRecordEvents
@@ -130,30 +130,30 @@ SetRecordEvents sets RecordEvents field to given value.
HasRecordEvents returns a boolean if a field has been set.
-### GetUpsertStateLocalAttributes
+### GetUpsertStateLocals
-`func (o *WorkflowStateDecideResponse) GetUpsertStateLocalAttributes() []KeyValue`
+`func (o *WorkflowStateDecideResponse) GetUpsertStateLocals() []KeyValue`
-GetUpsertStateLocalAttributes returns the UpsertStateLocalAttributes field if non-nil, zero value otherwise.
+GetUpsertStateLocals returns the UpsertStateLocals field if non-nil, zero value otherwise.
-### GetUpsertStateLocalAttributesOk
+### GetUpsertStateLocalsOk
-`func (o *WorkflowStateDecideResponse) GetUpsertStateLocalAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateDecideResponse) GetUpsertStateLocalsOk() (*[]KeyValue, bool)`
-GetUpsertStateLocalAttributesOk returns a tuple with the UpsertStateLocalAttributes field if it's non-nil, zero value otherwise
+GetUpsertStateLocalsOk returns a tuple with the UpsertStateLocals field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUpsertStateLocalAttributes
+### SetUpsertStateLocals
-`func (o *WorkflowStateDecideResponse) SetUpsertStateLocalAttributes(v []KeyValue)`
+`func (o *WorkflowStateDecideResponse) SetUpsertStateLocals(v []KeyValue)`
-SetUpsertStateLocalAttributes sets UpsertStateLocalAttributes field to given value.
+SetUpsertStateLocals sets UpsertStateLocals field to given value.
-### HasUpsertStateLocalAttributes
+### HasUpsertStateLocals
-`func (o *WorkflowStateDecideResponse) HasUpsertStateLocalAttributes() bool`
+`func (o *WorkflowStateDecideResponse) HasUpsertStateLocals() bool`
-HasUpsertStateLocalAttributes returns a boolean if a field has been set.
+HasUpsertStateLocals returns a boolean if a field has been set.
### GetPublishToInterStateChannel
diff --git a/gen/iwfidl/docs/WorkflowStateOptions.md b/gen/iwfidl/docs/WorkflowStateOptions.md
index 309d280a..e12860b7 100644
--- a/gen/iwfidl/docs/WorkflowStateOptions.md
+++ b/gen/iwfidl/docs/WorkflowStateOptions.md
@@ -4,9 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**SearchAttributesLoadingPolicy** | Pointer to [**AttributesLoadingPolicy**](AttributesLoadingPolicy.md) | | [optional]
-**QueryAttributesLoadingPolicy** | Pointer to [**AttributesLoadingPolicy**](AttributesLoadingPolicy.md) | | [optional]
+**SearchAttributesLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional]
+**DataObjectsLoadingPolicy** | Pointer to [**PersistenceLoadingPolicy**](PersistenceLoadingPolicy.md) | | [optional]
**CommandCarryOverPolicy** | Pointer to [**CommandCarryOverPolicy**](CommandCarryOverPolicy.md) | | [optional]
+**StartApiRetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional]
+**DecideApiRetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional]
## Methods
@@ -29,20 +31,20 @@ but it doesn't guarantee that properties required by API are set
### GetSearchAttributesLoadingPolicy
-`func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicy() AttributesLoadingPolicy`
+`func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicy() PersistenceLoadingPolicy`
GetSearchAttributesLoadingPolicy returns the SearchAttributesLoadingPolicy field if non-nil, zero value otherwise.
### GetSearchAttributesLoadingPolicyOk
-`func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicyOk() (*AttributesLoadingPolicy, bool)`
+`func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)`
GetSearchAttributesLoadingPolicyOk returns a tuple with the SearchAttributesLoadingPolicy field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSearchAttributesLoadingPolicy
-`func (o *WorkflowStateOptions) SetSearchAttributesLoadingPolicy(v AttributesLoadingPolicy)`
+`func (o *WorkflowStateOptions) SetSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy)`
SetSearchAttributesLoadingPolicy sets SearchAttributesLoadingPolicy field to given value.
@@ -52,30 +54,30 @@ SetSearchAttributesLoadingPolicy sets SearchAttributesLoadingPolicy field to giv
HasSearchAttributesLoadingPolicy returns a boolean if a field has been set.
-### GetQueryAttributesLoadingPolicy
+### GetDataObjectsLoadingPolicy
-`func (o *WorkflowStateOptions) GetQueryAttributesLoadingPolicy() AttributesLoadingPolicy`
+`func (o *WorkflowStateOptions) GetDataObjectsLoadingPolicy() PersistenceLoadingPolicy`
-GetQueryAttributesLoadingPolicy returns the QueryAttributesLoadingPolicy field if non-nil, zero value otherwise.
+GetDataObjectsLoadingPolicy returns the DataObjectsLoadingPolicy field if non-nil, zero value otherwise.
-### GetQueryAttributesLoadingPolicyOk
+### GetDataObjectsLoadingPolicyOk
-`func (o *WorkflowStateOptions) GetQueryAttributesLoadingPolicyOk() (*AttributesLoadingPolicy, bool)`
+`func (o *WorkflowStateOptions) GetDataObjectsLoadingPolicyOk() (*PersistenceLoadingPolicy, bool)`
-GetQueryAttributesLoadingPolicyOk returns a tuple with the QueryAttributesLoadingPolicy field if it's non-nil, zero value otherwise
+GetDataObjectsLoadingPolicyOk returns a tuple with the DataObjectsLoadingPolicy field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetQueryAttributesLoadingPolicy
+### SetDataObjectsLoadingPolicy
-`func (o *WorkflowStateOptions) SetQueryAttributesLoadingPolicy(v AttributesLoadingPolicy)`
+`func (o *WorkflowStateOptions) SetDataObjectsLoadingPolicy(v PersistenceLoadingPolicy)`
-SetQueryAttributesLoadingPolicy sets QueryAttributesLoadingPolicy field to given value.
+SetDataObjectsLoadingPolicy sets DataObjectsLoadingPolicy field to given value.
-### HasQueryAttributesLoadingPolicy
+### HasDataObjectsLoadingPolicy
-`func (o *WorkflowStateOptions) HasQueryAttributesLoadingPolicy() bool`
+`func (o *WorkflowStateOptions) HasDataObjectsLoadingPolicy() bool`
-HasQueryAttributesLoadingPolicy returns a boolean if a field has been set.
+HasDataObjectsLoadingPolicy returns a boolean if a field has been set.
### GetCommandCarryOverPolicy
@@ -102,6 +104,56 @@ SetCommandCarryOverPolicy sets CommandCarryOverPolicy field to given value.
HasCommandCarryOverPolicy returns a boolean if a field has been set.
+### GetStartApiRetryPolicy
+
+`func (o *WorkflowStateOptions) GetStartApiRetryPolicy() RetryPolicy`
+
+GetStartApiRetryPolicy returns the StartApiRetryPolicy field if non-nil, zero value otherwise.
+
+### GetStartApiRetryPolicyOk
+
+`func (o *WorkflowStateOptions) GetStartApiRetryPolicyOk() (*RetryPolicy, bool)`
+
+GetStartApiRetryPolicyOk returns a tuple with the StartApiRetryPolicy field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStartApiRetryPolicy
+
+`func (o *WorkflowStateOptions) SetStartApiRetryPolicy(v RetryPolicy)`
+
+SetStartApiRetryPolicy sets StartApiRetryPolicy field to given value.
+
+### HasStartApiRetryPolicy
+
+`func (o *WorkflowStateOptions) HasStartApiRetryPolicy() bool`
+
+HasStartApiRetryPolicy returns a boolean if a field has been set.
+
+### GetDecideApiRetryPolicy
+
+`func (o *WorkflowStateOptions) GetDecideApiRetryPolicy() RetryPolicy`
+
+GetDecideApiRetryPolicy returns the DecideApiRetryPolicy field if non-nil, zero value otherwise.
+
+### GetDecideApiRetryPolicyOk
+
+`func (o *WorkflowStateOptions) GetDecideApiRetryPolicyOk() (*RetryPolicy, bool)`
+
+GetDecideApiRetryPolicyOk returns a tuple with the DecideApiRetryPolicy field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDecideApiRetryPolicy
+
+`func (o *WorkflowStateOptions) SetDecideApiRetryPolicy(v RetryPolicy)`
+
+SetDecideApiRetryPolicy sets DecideApiRetryPolicy field to given value.
+
+### HasDecideApiRetryPolicy
+
+`func (o *WorkflowStateOptions) HasDecideApiRetryPolicy() bool`
+
+HasDecideApiRetryPolicy returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/gen/iwfidl/docs/WorkflowStateStartRequest.md b/gen/iwfidl/docs/WorkflowStateStartRequest.md
index cba1f199..0b7d0db7 100644
--- a/gen/iwfidl/docs/WorkflowStateStartRequest.md
+++ b/gen/iwfidl/docs/WorkflowStateStartRequest.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**WorkflowStateId** | **string** | |
**StateInput** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
-**QueryAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**DataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
## Methods
@@ -140,30 +140,30 @@ SetSearchAttributes sets SearchAttributes field to given value.
HasSearchAttributes returns a boolean if a field has been set.
-### GetQueryAttributes
+### GetDataObjects
-`func (o *WorkflowStateStartRequest) GetQueryAttributes() []KeyValue`
+`func (o *WorkflowStateStartRequest) GetDataObjects() []KeyValue`
-GetQueryAttributes returns the QueryAttributes field if non-nil, zero value otherwise.
+GetDataObjects returns the DataObjects field if non-nil, zero value otherwise.
-### GetQueryAttributesOk
+### GetDataObjectsOk
-`func (o *WorkflowStateStartRequest) GetQueryAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateStartRequest) GetDataObjectsOk() (*[]KeyValue, bool)`
-GetQueryAttributesOk returns a tuple with the QueryAttributes field if it's non-nil, zero value otherwise
+GetDataObjectsOk returns a tuple with the DataObjects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetQueryAttributes
+### SetDataObjects
-`func (o *WorkflowStateStartRequest) SetQueryAttributes(v []KeyValue)`
+`func (o *WorkflowStateStartRequest) SetDataObjects(v []KeyValue)`
-SetQueryAttributes sets QueryAttributes field to given value.
+SetDataObjects sets DataObjects field to given value.
-### HasQueryAttributes
+### HasDataObjects
-`func (o *WorkflowStateStartRequest) HasQueryAttributes() bool`
+`func (o *WorkflowStateStartRequest) HasDataObjects() bool`
-HasQueryAttributes returns a boolean if a field has been set.
+HasDataObjects returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/gen/iwfidl/docs/WorkflowStateStartResponse.md b/gen/iwfidl/docs/WorkflowStateStartResponse.md
index 88fd4bb4..8c8c7232 100644
--- a/gen/iwfidl/docs/WorkflowStateStartResponse.md
+++ b/gen/iwfidl/docs/WorkflowStateStartResponse.md
@@ -5,9 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**UpsertSearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
-**UpsertQueryAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**UpsertDataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**CommandRequest** | Pointer to [**CommandRequest**](CommandRequest.md) | | [optional]
-**UpsertStateLocalAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
+**UpsertStateLocals** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**RecordEvents** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional]
**PublishToInterStateChannel** | Pointer to [**[]InterStateChannelPublishing**](InterStateChannelPublishing.md) | | [optional]
@@ -55,30 +55,30 @@ SetUpsertSearchAttributes sets UpsertSearchAttributes field to given value.
HasUpsertSearchAttributes returns a boolean if a field has been set.
-### GetUpsertQueryAttributes
+### GetUpsertDataObjects
-`func (o *WorkflowStateStartResponse) GetUpsertQueryAttributes() []KeyValue`
+`func (o *WorkflowStateStartResponse) GetUpsertDataObjects() []KeyValue`
-GetUpsertQueryAttributes returns the UpsertQueryAttributes field if non-nil, zero value otherwise.
+GetUpsertDataObjects returns the UpsertDataObjects field if non-nil, zero value otherwise.
-### GetUpsertQueryAttributesOk
+### GetUpsertDataObjectsOk
-`func (o *WorkflowStateStartResponse) GetUpsertQueryAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateStartResponse) GetUpsertDataObjectsOk() (*[]KeyValue, bool)`
-GetUpsertQueryAttributesOk returns a tuple with the UpsertQueryAttributes field if it's non-nil, zero value otherwise
+GetUpsertDataObjectsOk returns a tuple with the UpsertDataObjects field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUpsertQueryAttributes
+### SetUpsertDataObjects
-`func (o *WorkflowStateStartResponse) SetUpsertQueryAttributes(v []KeyValue)`
+`func (o *WorkflowStateStartResponse) SetUpsertDataObjects(v []KeyValue)`
-SetUpsertQueryAttributes sets UpsertQueryAttributes field to given value.
+SetUpsertDataObjects sets UpsertDataObjects field to given value.
-### HasUpsertQueryAttributes
+### HasUpsertDataObjects
-`func (o *WorkflowStateStartResponse) HasUpsertQueryAttributes() bool`
+`func (o *WorkflowStateStartResponse) HasUpsertDataObjects() bool`
-HasUpsertQueryAttributes returns a boolean if a field has been set.
+HasUpsertDataObjects returns a boolean if a field has been set.
### GetCommandRequest
@@ -105,30 +105,30 @@ SetCommandRequest sets CommandRequest field to given value.
HasCommandRequest returns a boolean if a field has been set.
-### GetUpsertStateLocalAttributes
+### GetUpsertStateLocals
-`func (o *WorkflowStateStartResponse) GetUpsertStateLocalAttributes() []KeyValue`
+`func (o *WorkflowStateStartResponse) GetUpsertStateLocals() []KeyValue`
-GetUpsertStateLocalAttributes returns the UpsertStateLocalAttributes field if non-nil, zero value otherwise.
+GetUpsertStateLocals returns the UpsertStateLocals field if non-nil, zero value otherwise.
-### GetUpsertStateLocalAttributesOk
+### GetUpsertStateLocalsOk
-`func (o *WorkflowStateStartResponse) GetUpsertStateLocalAttributesOk() (*[]KeyValue, bool)`
+`func (o *WorkflowStateStartResponse) GetUpsertStateLocalsOk() (*[]KeyValue, bool)`
-GetUpsertStateLocalAttributesOk returns a tuple with the UpsertStateLocalAttributes field if it's non-nil, zero value otherwise
+GetUpsertStateLocalsOk returns a tuple with the UpsertStateLocals field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUpsertStateLocalAttributes
+### SetUpsertStateLocals
-`func (o *WorkflowStateStartResponse) SetUpsertStateLocalAttributes(v []KeyValue)`
+`func (o *WorkflowStateStartResponse) SetUpsertStateLocals(v []KeyValue)`
-SetUpsertStateLocalAttributes sets UpsertStateLocalAttributes field to given value.
+SetUpsertStateLocals sets UpsertStateLocals field to given value.
-### HasUpsertStateLocalAttributes
+### HasUpsertStateLocals
-`func (o *WorkflowStateStartResponse) HasUpsertStateLocalAttributes() bool`
+`func (o *WorkflowStateStartResponse) HasUpsertStateLocals() bool`
-HasUpsertStateLocalAttributes returns a boolean if a field has been set.
+HasUpsertStateLocals returns a boolean if a field has been set.
### GetRecordEvents
diff --git a/gen/iwfidl/docs/WorkflowCancelRequest.md b/gen/iwfidl/docs/WorkflowStopRequest.md
similarity index 53%
rename from gen/iwfidl/docs/WorkflowCancelRequest.md
rename to gen/iwfidl/docs/WorkflowStopRequest.md
index 8e07f8dc..81927456 100644
--- a/gen/iwfidl/docs/WorkflowCancelRequest.md
+++ b/gen/iwfidl/docs/WorkflowStopRequest.md
@@ -1,4 +1,4 @@
-# WorkflowCancelRequest
+# WorkflowStopRequest
## Properties
@@ -7,96 +7,122 @@ Name | Type | Description | Notes
**WorkflowId** | **string** | |
**WorkflowRunId** | Pointer to **string** | | [optional]
**Reason** | Pointer to **string** | | [optional]
+**StopType** | Pointer to **string** | | [optional]
## Methods
-### NewWorkflowCancelRequest
+### NewWorkflowStopRequest
-`func NewWorkflowCancelRequest(workflowId string, ) *WorkflowCancelRequest`
+`func NewWorkflowStopRequest(workflowId string, ) *WorkflowStopRequest`
-NewWorkflowCancelRequest instantiates a new WorkflowCancelRequest object
+NewWorkflowStopRequest instantiates a new WorkflowStopRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWorkflowCancelRequestWithDefaults
+### NewWorkflowStopRequestWithDefaults
-`func NewWorkflowCancelRequestWithDefaults() *WorkflowCancelRequest`
+`func NewWorkflowStopRequestWithDefaults() *WorkflowStopRequest`
-NewWorkflowCancelRequestWithDefaults instantiates a new WorkflowCancelRequest object
+NewWorkflowStopRequestWithDefaults instantiates a new WorkflowStopRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetWorkflowId
-`func (o *WorkflowCancelRequest) GetWorkflowId() string`
+`func (o *WorkflowStopRequest) GetWorkflowId() string`
GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise.
### GetWorkflowIdOk
-`func (o *WorkflowCancelRequest) GetWorkflowIdOk() (*string, bool)`
+`func (o *WorkflowStopRequest) GetWorkflowIdOk() (*string, bool)`
GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWorkflowId
-`func (o *WorkflowCancelRequest) SetWorkflowId(v string)`
+`func (o *WorkflowStopRequest) SetWorkflowId(v string)`
SetWorkflowId sets WorkflowId field to given value.
### GetWorkflowRunId
-`func (o *WorkflowCancelRequest) GetWorkflowRunId() string`
+`func (o *WorkflowStopRequest) GetWorkflowRunId() string`
GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise.
### GetWorkflowRunIdOk
-`func (o *WorkflowCancelRequest) GetWorkflowRunIdOk() (*string, bool)`
+`func (o *WorkflowStopRequest) GetWorkflowRunIdOk() (*string, bool)`
GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWorkflowRunId
-`func (o *WorkflowCancelRequest) SetWorkflowRunId(v string)`
+`func (o *WorkflowStopRequest) SetWorkflowRunId(v string)`
SetWorkflowRunId sets WorkflowRunId field to given value.
### HasWorkflowRunId
-`func (o *WorkflowCancelRequest) HasWorkflowRunId() bool`
+`func (o *WorkflowStopRequest) HasWorkflowRunId() bool`
HasWorkflowRunId returns a boolean if a field has been set.
### GetReason
-`func (o *WorkflowCancelRequest) GetReason() string`
+`func (o *WorkflowStopRequest) GetReason() string`
GetReason returns the Reason field if non-nil, zero value otherwise.
### GetReasonOk
-`func (o *WorkflowCancelRequest) GetReasonOk() (*string, bool)`
+`func (o *WorkflowStopRequest) GetReasonOk() (*string, bool)`
GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetReason
-`func (o *WorkflowCancelRequest) SetReason(v string)`
+`func (o *WorkflowStopRequest) SetReason(v string)`
SetReason sets Reason field to given value.
### HasReason
-`func (o *WorkflowCancelRequest) HasReason() bool`
+`func (o *WorkflowStopRequest) HasReason() bool`
HasReason returns a boolean if a field has been set.
+### GetStopType
+
+`func (o *WorkflowStopRequest) GetStopType() string`
+
+GetStopType returns the StopType field if non-nil, zero value otherwise.
+
+### GetStopTypeOk
+
+`func (o *WorkflowStopRequest) GetStopTypeOk() (*string, bool)`
+
+GetStopTypeOk returns a tuple with the StopType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStopType
+
+`func (o *WorkflowStopRequest) SetStopType(v string)`
+
+SetStopType sets StopType field to given value.
+
+### HasStopType
+
+`func (o *WorkflowStopRequest) HasStopType() bool`
+
+HasStopType returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/gen/iwfidl/model_attributes_loading_policy.go b/gen/iwfidl/model_attributes_loading_policy.go
deleted file mode 100644
index af6a372d..00000000
--- a/gen/iwfidl/model_attributes_loading_policy.go
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
-Workflow APIs
-
-This APIs for iwf SDKs to operate workflows
-
-API version: 1.0.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package iwfidl
-
-import (
- "encoding/json"
-)
-
-// AttributesLoadingPolicy struct for AttributesLoadingPolicy
-type AttributesLoadingPolicy struct {
- AttributeLoadingType *string `json:"attributeLoadingType,omitempty"`
- AttributeKeys []string `json:"attributeKeys,omitempty"`
-}
-
-// NewAttributesLoadingPolicy instantiates a new AttributesLoadingPolicy object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewAttributesLoadingPolicy() *AttributesLoadingPolicy {
- this := AttributesLoadingPolicy{}
- return &this
-}
-
-// NewAttributesLoadingPolicyWithDefaults instantiates a new AttributesLoadingPolicy object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewAttributesLoadingPolicyWithDefaults() *AttributesLoadingPolicy {
- this := AttributesLoadingPolicy{}
- return &this
-}
-
-// GetAttributeLoadingType returns the AttributeLoadingType field value if set, zero value otherwise.
-func (o *AttributesLoadingPolicy) GetAttributeLoadingType() string {
- if o == nil || o.AttributeLoadingType == nil {
- var ret string
- return ret
- }
- return *o.AttributeLoadingType
-}
-
-// GetAttributeLoadingTypeOk returns a tuple with the AttributeLoadingType field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *AttributesLoadingPolicy) GetAttributeLoadingTypeOk() (*string, bool) {
- if o == nil || o.AttributeLoadingType == nil {
- return nil, false
- }
- return o.AttributeLoadingType, true
-}
-
-// HasAttributeLoadingType returns a boolean if a field has been set.
-func (o *AttributesLoadingPolicy) HasAttributeLoadingType() bool {
- if o != nil && o.AttributeLoadingType != nil {
- return true
- }
-
- return false
-}
-
-// SetAttributeLoadingType gets a reference to the given string and assigns it to the AttributeLoadingType field.
-func (o *AttributesLoadingPolicy) SetAttributeLoadingType(v string) {
- o.AttributeLoadingType = &v
-}
-
-// GetAttributeKeys returns the AttributeKeys field value if set, zero value otherwise.
-func (o *AttributesLoadingPolicy) GetAttributeKeys() []string {
- if o == nil || o.AttributeKeys == nil {
- var ret []string
- return ret
- }
- return o.AttributeKeys
-}
-
-// GetAttributeKeysOk returns a tuple with the AttributeKeys field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *AttributesLoadingPolicy) GetAttributeKeysOk() ([]string, bool) {
- if o == nil || o.AttributeKeys == nil {
- return nil, false
- }
- return o.AttributeKeys, true
-}
-
-// HasAttributeKeys returns a boolean if a field has been set.
-func (o *AttributesLoadingPolicy) HasAttributeKeys() bool {
- if o != nil && o.AttributeKeys != nil {
- return true
- }
-
- return false
-}
-
-// SetAttributeKeys gets a reference to the given []string and assigns it to the AttributeKeys field.
-func (o *AttributesLoadingPolicy) SetAttributeKeys(v []string) {
- o.AttributeKeys = v
-}
-
-func (o AttributesLoadingPolicy) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if o.AttributeLoadingType != nil {
- toSerialize["attributeLoadingType"] = o.AttributeLoadingType
- }
- if o.AttributeKeys != nil {
- toSerialize["attributeKeys"] = o.AttributeKeys
- }
- return json.Marshal(toSerialize)
-}
-
-type NullableAttributesLoadingPolicy struct {
- value *AttributesLoadingPolicy
- isSet bool
-}
-
-func (v NullableAttributesLoadingPolicy) Get() *AttributesLoadingPolicy {
- return v.value
-}
-
-func (v *NullableAttributesLoadingPolicy) Set(val *AttributesLoadingPolicy) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableAttributesLoadingPolicy) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableAttributesLoadingPolicy) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableAttributesLoadingPolicy(val *AttributesLoadingPolicy) *NullableAttributesLoadingPolicy {
- return &NullableAttributesLoadingPolicy{value: val, isSet: true}
-}
-
-func (v NullableAttributesLoadingPolicy) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableAttributesLoadingPolicy) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-
diff --git a/gen/iwfidl/model_persistence_loading_policy.go b/gen/iwfidl/model_persistence_loading_policy.go
new file mode 100644
index 00000000..633f50c7
--- /dev/null
+++ b/gen/iwfidl/model_persistence_loading_policy.go
@@ -0,0 +1,151 @@
+/*
+Workflow APIs
+
+This APIs for iwf SDKs to operate workflows
+
+API version: 1.0.0
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package iwfidl
+
+import (
+ "encoding/json"
+)
+
+// PersistenceLoadingPolicy struct for PersistenceLoadingPolicy
+type PersistenceLoadingPolicy struct {
+ PersistenceLoadingType *string `json:"persistenceLoadingType,omitempty"`
+ PartialLoadingKeys []string `json:"partialLoadingKeys,omitempty"`
+}
+
+// NewPersistenceLoadingPolicy instantiates a new PersistenceLoadingPolicy object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPersistenceLoadingPolicy() *PersistenceLoadingPolicy {
+ this := PersistenceLoadingPolicy{}
+ return &this
+}
+
+// NewPersistenceLoadingPolicyWithDefaults instantiates a new PersistenceLoadingPolicy object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPersistenceLoadingPolicyWithDefaults() *PersistenceLoadingPolicy {
+ this := PersistenceLoadingPolicy{}
+ return &this
+}
+
+// GetPersistenceLoadingType returns the PersistenceLoadingType field value if set, zero value otherwise.
+func (o *PersistenceLoadingPolicy) GetPersistenceLoadingType() string {
+ if o == nil || o.PersistenceLoadingType == nil {
+ var ret string
+ return ret
+ }
+ return *o.PersistenceLoadingType
+}
+
+// GetPersistenceLoadingTypeOk returns a tuple with the PersistenceLoadingType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PersistenceLoadingPolicy) GetPersistenceLoadingTypeOk() (*string, bool) {
+ if o == nil || o.PersistenceLoadingType == nil {
+ return nil, false
+ }
+ return o.PersistenceLoadingType, true
+}
+
+// HasPersistenceLoadingType returns a boolean if a field has been set.
+func (o *PersistenceLoadingPolicy) HasPersistenceLoadingType() bool {
+ if o != nil && o.PersistenceLoadingType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPersistenceLoadingType gets a reference to the given string and assigns it to the PersistenceLoadingType field.
+func (o *PersistenceLoadingPolicy) SetPersistenceLoadingType(v string) {
+ o.PersistenceLoadingType = &v
+}
+
+// GetPartialLoadingKeys returns the PartialLoadingKeys field value if set, zero value otherwise.
+func (o *PersistenceLoadingPolicy) GetPartialLoadingKeys() []string {
+ if o == nil || o.PartialLoadingKeys == nil {
+ var ret []string
+ return ret
+ }
+ return o.PartialLoadingKeys
+}
+
+// GetPartialLoadingKeysOk returns a tuple with the PartialLoadingKeys field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PersistenceLoadingPolicy) GetPartialLoadingKeysOk() ([]string, bool) {
+ if o == nil || o.PartialLoadingKeys == nil {
+ return nil, false
+ }
+ return o.PartialLoadingKeys, true
+}
+
+// HasPartialLoadingKeys returns a boolean if a field has been set.
+func (o *PersistenceLoadingPolicy) HasPartialLoadingKeys() bool {
+ if o != nil && o.PartialLoadingKeys != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPartialLoadingKeys gets a reference to the given []string and assigns it to the PartialLoadingKeys field.
+func (o *PersistenceLoadingPolicy) SetPartialLoadingKeys(v []string) {
+ o.PartialLoadingKeys = v
+}
+
+func (o PersistenceLoadingPolicy) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]interface{}{}
+ if o.PersistenceLoadingType != nil {
+ toSerialize["persistenceLoadingType"] = o.PersistenceLoadingType
+ }
+ if o.PartialLoadingKeys != nil {
+ toSerialize["partialLoadingKeys"] = o.PartialLoadingKeys
+ }
+ return json.Marshal(toSerialize)
+}
+
+type NullablePersistenceLoadingPolicy struct {
+ value *PersistenceLoadingPolicy
+ isSet bool
+}
+
+func (v NullablePersistenceLoadingPolicy) Get() *PersistenceLoadingPolicy {
+ return v.value
+}
+
+func (v *NullablePersistenceLoadingPolicy) Set(val *PersistenceLoadingPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePersistenceLoadingPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePersistenceLoadingPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePersistenceLoadingPolicy(val *PersistenceLoadingPolicy) *NullablePersistenceLoadingPolicy {
+ return &NullablePersistenceLoadingPolicy{value: val, isSet: true}
+}
+
+func (v NullablePersistenceLoadingPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePersistenceLoadingPolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/gen/iwfidl/model_retry_policy.go b/gen/iwfidl/model_retry_policy.go
new file mode 100644
index 00000000..098519de
--- /dev/null
+++ b/gen/iwfidl/model_retry_policy.go
@@ -0,0 +1,223 @@
+/*
+Workflow APIs
+
+This APIs for iwf SDKs to operate workflows
+
+API version: 1.0.0
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package iwfidl
+
+import (
+ "encoding/json"
+)
+
+// RetryPolicy struct for RetryPolicy
+type RetryPolicy struct {
+ InitialInterval *float32 `json:"initialInterval,omitempty"`
+ BackoffCoefficient *float32 `json:"backoffCoefficient,omitempty"`
+ MaximumInterval *float32 `json:"maximumInterval,omitempty"`
+ MaximumAttempts *int32 `json:"maximumAttempts,omitempty"`
+}
+
+// NewRetryPolicy instantiates a new RetryPolicy object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRetryPolicy() *RetryPolicy {
+ this := RetryPolicy{}
+ return &this
+}
+
+// NewRetryPolicyWithDefaults instantiates a new RetryPolicy object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRetryPolicyWithDefaults() *RetryPolicy {
+ this := RetryPolicy{}
+ return &this
+}
+
+// GetInitialInterval returns the InitialInterval field value if set, zero value otherwise.
+func (o *RetryPolicy) GetInitialInterval() float32 {
+ if o == nil || o.InitialInterval == nil {
+ var ret float32
+ return ret
+ }
+ return *o.InitialInterval
+}
+
+// GetInitialIntervalOk returns a tuple with the InitialInterval field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RetryPolicy) GetInitialIntervalOk() (*float32, bool) {
+ if o == nil || o.InitialInterval == nil {
+ return nil, false
+ }
+ return o.InitialInterval, true
+}
+
+// HasInitialInterval returns a boolean if a field has been set.
+func (o *RetryPolicy) HasInitialInterval() bool {
+ if o != nil && o.InitialInterval != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetInitialInterval gets a reference to the given float32 and assigns it to the InitialInterval field.
+func (o *RetryPolicy) SetInitialInterval(v float32) {
+ o.InitialInterval = &v
+}
+
+// GetBackoffCoefficient returns the BackoffCoefficient field value if set, zero value otherwise.
+func (o *RetryPolicy) GetBackoffCoefficient() float32 {
+ if o == nil || o.BackoffCoefficient == nil {
+ var ret float32
+ return ret
+ }
+ return *o.BackoffCoefficient
+}
+
+// GetBackoffCoefficientOk returns a tuple with the BackoffCoefficient field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RetryPolicy) GetBackoffCoefficientOk() (*float32, bool) {
+ if o == nil || o.BackoffCoefficient == nil {
+ return nil, false
+ }
+ return o.BackoffCoefficient, true
+}
+
+// HasBackoffCoefficient returns a boolean if a field has been set.
+func (o *RetryPolicy) HasBackoffCoefficient() bool {
+ if o != nil && o.BackoffCoefficient != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetBackoffCoefficient gets a reference to the given float32 and assigns it to the BackoffCoefficient field.
+func (o *RetryPolicy) SetBackoffCoefficient(v float32) {
+ o.BackoffCoefficient = &v
+}
+
+// GetMaximumInterval returns the MaximumInterval field value if set, zero value otherwise.
+func (o *RetryPolicy) GetMaximumInterval() float32 {
+ if o == nil || o.MaximumInterval == nil {
+ var ret float32
+ return ret
+ }
+ return *o.MaximumInterval
+}
+
+// GetMaximumIntervalOk returns a tuple with the MaximumInterval field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RetryPolicy) GetMaximumIntervalOk() (*float32, bool) {
+ if o == nil || o.MaximumInterval == nil {
+ return nil, false
+ }
+ return o.MaximumInterval, true
+}
+
+// HasMaximumInterval returns a boolean if a field has been set.
+func (o *RetryPolicy) HasMaximumInterval() bool {
+ if o != nil && o.MaximumInterval != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMaximumInterval gets a reference to the given float32 and assigns it to the MaximumInterval field.
+func (o *RetryPolicy) SetMaximumInterval(v float32) {
+ o.MaximumInterval = &v
+}
+
+// GetMaximumAttempts returns the MaximumAttempts field value if set, zero value otherwise.
+func (o *RetryPolicy) GetMaximumAttempts() int32 {
+ if o == nil || o.MaximumAttempts == nil {
+ var ret int32
+ return ret
+ }
+ return *o.MaximumAttempts
+}
+
+// GetMaximumAttemptsOk returns a tuple with the MaximumAttempts field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RetryPolicy) GetMaximumAttemptsOk() (*int32, bool) {
+ if o == nil || o.MaximumAttempts == nil {
+ return nil, false
+ }
+ return o.MaximumAttempts, true
+}
+
+// HasMaximumAttempts returns a boolean if a field has been set.
+func (o *RetryPolicy) HasMaximumAttempts() bool {
+ if o != nil && o.MaximumAttempts != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMaximumAttempts gets a reference to the given int32 and assigns it to the MaximumAttempts field.
+func (o *RetryPolicy) SetMaximumAttempts(v int32) {
+ o.MaximumAttempts = &v
+}
+
+func (o RetryPolicy) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]interface{}{}
+ if o.InitialInterval != nil {
+ toSerialize["initialInterval"] = o.InitialInterval
+ }
+ if o.BackoffCoefficient != nil {
+ toSerialize["backoffCoefficient"] = o.BackoffCoefficient
+ }
+ if o.MaximumInterval != nil {
+ toSerialize["maximumInterval"] = o.MaximumInterval
+ }
+ if o.MaximumAttempts != nil {
+ toSerialize["maximumAttempts"] = o.MaximumAttempts
+ }
+ return json.Marshal(toSerialize)
+}
+
+type NullableRetryPolicy struct {
+ value *RetryPolicy
+ isSet bool
+}
+
+func (v NullableRetryPolicy) Get() *RetryPolicy {
+ return v.value
+}
+
+func (v *NullableRetryPolicy) Set(val *RetryPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRetryPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRetryPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRetryPolicy(val *RetryPolicy) *NullableRetryPolicy {
+ return &NullableRetryPolicy{value: val, isSet: true}
+}
+
+func (v NullableRetryPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRetryPolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/gen/iwfidl/model_workflow_get_data_objects_request.go b/gen/iwfidl/model_workflow_get_data_objects_request.go
new file mode 100644
index 00000000..05966893
--- /dev/null
+++ b/gen/iwfidl/model_workflow_get_data_objects_request.go
@@ -0,0 +1,180 @@
+/*
+Workflow APIs
+
+This APIs for iwf SDKs to operate workflows
+
+API version: 1.0.0
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package iwfidl
+
+import (
+ "encoding/json"
+)
+
+// WorkflowGetDataObjectsRequest struct for WorkflowGetDataObjectsRequest
+type WorkflowGetDataObjectsRequest struct {
+ WorkflowId string `json:"workflowId"`
+ WorkflowRunId *string `json:"workflowRunId,omitempty"`
+ Keys []string `json:"keys,omitempty"`
+}
+
+// NewWorkflowGetDataObjectsRequest instantiates a new WorkflowGetDataObjectsRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWorkflowGetDataObjectsRequest(workflowId string) *WorkflowGetDataObjectsRequest {
+ this := WorkflowGetDataObjectsRequest{}
+ this.WorkflowId = workflowId
+ return &this
+}
+
+// NewWorkflowGetDataObjectsRequestWithDefaults instantiates a new WorkflowGetDataObjectsRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWorkflowGetDataObjectsRequestWithDefaults() *WorkflowGetDataObjectsRequest {
+ this := WorkflowGetDataObjectsRequest{}
+ return &this
+}
+
+// GetWorkflowId returns the WorkflowId field value
+func (o *WorkflowGetDataObjectsRequest) GetWorkflowId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.WorkflowId
+}
+
+// GetWorkflowIdOk returns a tuple with the WorkflowId field value
+// and a boolean to check if the value has been set.
+func (o *WorkflowGetDataObjectsRequest) GetWorkflowIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.WorkflowId, true
+}
+
+// SetWorkflowId sets field value
+func (o *WorkflowGetDataObjectsRequest) SetWorkflowId(v string) {
+ o.WorkflowId = v
+}
+
+// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise.
+func (o *WorkflowGetDataObjectsRequest) GetWorkflowRunId() string {
+ if o == nil || o.WorkflowRunId == nil {
+ var ret string
+ return ret
+ }
+ return *o.WorkflowRunId
+}
+
+// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowGetDataObjectsRequest) GetWorkflowRunIdOk() (*string, bool) {
+ if o == nil || o.WorkflowRunId == nil {
+ return nil, false
+ }
+ return o.WorkflowRunId, true
+}
+
+// HasWorkflowRunId returns a boolean if a field has been set.
+func (o *WorkflowGetDataObjectsRequest) HasWorkflowRunId() bool {
+ if o != nil && o.WorkflowRunId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field.
+func (o *WorkflowGetDataObjectsRequest) SetWorkflowRunId(v string) {
+ o.WorkflowRunId = &v
+}
+
+// GetKeys returns the Keys field value if set, zero value otherwise.
+func (o *WorkflowGetDataObjectsRequest) GetKeys() []string {
+ if o == nil || o.Keys == nil {
+ var ret []string
+ return ret
+ }
+ return o.Keys
+}
+
+// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowGetDataObjectsRequest) GetKeysOk() ([]string, bool) {
+ if o == nil || o.Keys == nil {
+ return nil, false
+ }
+ return o.Keys, true
+}
+
+// HasKeys returns a boolean if a field has been set.
+func (o *WorkflowGetDataObjectsRequest) HasKeys() bool {
+ if o != nil && o.Keys != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetKeys gets a reference to the given []string and assigns it to the Keys field.
+func (o *WorkflowGetDataObjectsRequest) SetKeys(v []string) {
+ o.Keys = v
+}
+
+func (o WorkflowGetDataObjectsRequest) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]interface{}{}
+ if true {
+ toSerialize["workflowId"] = o.WorkflowId
+ }
+ if o.WorkflowRunId != nil {
+ toSerialize["workflowRunId"] = o.WorkflowRunId
+ }
+ if o.Keys != nil {
+ toSerialize["keys"] = o.Keys
+ }
+ return json.Marshal(toSerialize)
+}
+
+type NullableWorkflowGetDataObjectsRequest struct {
+ value *WorkflowGetDataObjectsRequest
+ isSet bool
+}
+
+func (v NullableWorkflowGetDataObjectsRequest) Get() *WorkflowGetDataObjectsRequest {
+ return v.value
+}
+
+func (v *NullableWorkflowGetDataObjectsRequest) Set(val *WorkflowGetDataObjectsRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWorkflowGetDataObjectsRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWorkflowGetDataObjectsRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWorkflowGetDataObjectsRequest(val *WorkflowGetDataObjectsRequest) *NullableWorkflowGetDataObjectsRequest {
+ return &NullableWorkflowGetDataObjectsRequest{value: val, isSet: true}
+}
+
+func (v NullableWorkflowGetDataObjectsRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWorkflowGetDataObjectsRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/gen/iwfidl/model_workflow_get_data_objects_response.go b/gen/iwfidl/model_workflow_get_data_objects_response.go
new file mode 100644
index 00000000..4702692f
--- /dev/null
+++ b/gen/iwfidl/model_workflow_get_data_objects_response.go
@@ -0,0 +1,115 @@
+/*
+Workflow APIs
+
+This APIs for iwf SDKs to operate workflows
+
+API version: 1.0.0
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package iwfidl
+
+import (
+ "encoding/json"
+)
+
+// WorkflowGetDataObjectsResponse struct for WorkflowGetDataObjectsResponse
+type WorkflowGetDataObjectsResponse struct {
+ Objects []KeyValue `json:"objects,omitempty"`
+}
+
+// NewWorkflowGetDataObjectsResponse instantiates a new WorkflowGetDataObjectsResponse object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWorkflowGetDataObjectsResponse() *WorkflowGetDataObjectsResponse {
+ this := WorkflowGetDataObjectsResponse{}
+ return &this
+}
+
+// NewWorkflowGetDataObjectsResponseWithDefaults instantiates a new WorkflowGetDataObjectsResponse object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWorkflowGetDataObjectsResponseWithDefaults() *WorkflowGetDataObjectsResponse {
+ this := WorkflowGetDataObjectsResponse{}
+ return &this
+}
+
+// GetObjects returns the Objects field value if set, zero value otherwise.
+func (o *WorkflowGetDataObjectsResponse) GetObjects() []KeyValue {
+ if o == nil || o.Objects == nil {
+ var ret []KeyValue
+ return ret
+ }
+ return o.Objects
+}
+
+// GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowGetDataObjectsResponse) GetObjectsOk() ([]KeyValue, bool) {
+ if o == nil || o.Objects == nil {
+ return nil, false
+ }
+ return o.Objects, true
+}
+
+// HasObjects returns a boolean if a field has been set.
+func (o *WorkflowGetDataObjectsResponse) HasObjects() bool {
+ if o != nil && o.Objects != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetObjects gets a reference to the given []KeyValue and assigns it to the Objects field.
+func (o *WorkflowGetDataObjectsResponse) SetObjects(v []KeyValue) {
+ o.Objects = v
+}
+
+func (o WorkflowGetDataObjectsResponse) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]interface{}{}
+ if o.Objects != nil {
+ toSerialize["objects"] = o.Objects
+ }
+ return json.Marshal(toSerialize)
+}
+
+type NullableWorkflowGetDataObjectsResponse struct {
+ value *WorkflowGetDataObjectsResponse
+ isSet bool
+}
+
+func (v NullableWorkflowGetDataObjectsResponse) Get() *WorkflowGetDataObjectsResponse {
+ return v.value
+}
+
+func (v *NullableWorkflowGetDataObjectsResponse) Set(val *WorkflowGetDataObjectsResponse) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWorkflowGetDataObjectsResponse) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWorkflowGetDataObjectsResponse) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWorkflowGetDataObjectsResponse(val *WorkflowGetDataObjectsResponse) *NullableWorkflowGetDataObjectsResponse {
+ return &NullableWorkflowGetDataObjectsResponse{value: val, isSet: true}
+}
+
+func (v NullableWorkflowGetDataObjectsResponse) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWorkflowGetDataObjectsResponse) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/gen/iwfidl/model_workflow_get_query_attributes_request.go b/gen/iwfidl/model_workflow_get_query_attributes_request.go
deleted file mode 100644
index 80de12f9..00000000
--- a/gen/iwfidl/model_workflow_get_query_attributes_request.go
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
-Workflow APIs
-
-This APIs for iwf SDKs to operate workflows
-
-API version: 1.0.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package iwfidl
-
-import (
- "encoding/json"
-)
-
-// WorkflowGetQueryAttributesRequest struct for WorkflowGetQueryAttributesRequest
-type WorkflowGetQueryAttributesRequest struct {
- WorkflowId string `json:"workflowId"`
- WorkflowRunId *string `json:"workflowRunId,omitempty"`
- AttributeKeys []string `json:"attributeKeys,omitempty"`
-}
-
-// NewWorkflowGetQueryAttributesRequest instantiates a new WorkflowGetQueryAttributesRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWorkflowGetQueryAttributesRequest(workflowId string) *WorkflowGetQueryAttributesRequest {
- this := WorkflowGetQueryAttributesRequest{}
- this.WorkflowId = workflowId
- return &this
-}
-
-// NewWorkflowGetQueryAttributesRequestWithDefaults instantiates a new WorkflowGetQueryAttributesRequest object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewWorkflowGetQueryAttributesRequestWithDefaults() *WorkflowGetQueryAttributesRequest {
- this := WorkflowGetQueryAttributesRequest{}
- return &this
-}
-
-// GetWorkflowId returns the WorkflowId field value
-func (o *WorkflowGetQueryAttributesRequest) GetWorkflowId() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.WorkflowId
-}
-
-// GetWorkflowIdOk returns a tuple with the WorkflowId field value
-// and a boolean to check if the value has been set.
-func (o *WorkflowGetQueryAttributesRequest) GetWorkflowIdOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.WorkflowId, true
-}
-
-// SetWorkflowId sets field value
-func (o *WorkflowGetQueryAttributesRequest) SetWorkflowId(v string) {
- o.WorkflowId = v
-}
-
-// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise.
-func (o *WorkflowGetQueryAttributesRequest) GetWorkflowRunId() string {
- if o == nil || o.WorkflowRunId == nil {
- var ret string
- return ret
- }
- return *o.WorkflowRunId
-}
-
-// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WorkflowGetQueryAttributesRequest) GetWorkflowRunIdOk() (*string, bool) {
- if o == nil || o.WorkflowRunId == nil {
- return nil, false
- }
- return o.WorkflowRunId, true
-}
-
-// HasWorkflowRunId returns a boolean if a field has been set.
-func (o *WorkflowGetQueryAttributesRequest) HasWorkflowRunId() bool {
- if o != nil && o.WorkflowRunId != nil {
- return true
- }
-
- return false
-}
-
-// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field.
-func (o *WorkflowGetQueryAttributesRequest) SetWorkflowRunId(v string) {
- o.WorkflowRunId = &v
-}
-
-// GetAttributeKeys returns the AttributeKeys field value if set, zero value otherwise.
-func (o *WorkflowGetQueryAttributesRequest) GetAttributeKeys() []string {
- if o == nil || o.AttributeKeys == nil {
- var ret []string
- return ret
- }
- return o.AttributeKeys
-}
-
-// GetAttributeKeysOk returns a tuple with the AttributeKeys field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WorkflowGetQueryAttributesRequest) GetAttributeKeysOk() ([]string, bool) {
- if o == nil || o.AttributeKeys == nil {
- return nil, false
- }
- return o.AttributeKeys, true
-}
-
-// HasAttributeKeys returns a boolean if a field has been set.
-func (o *WorkflowGetQueryAttributesRequest) HasAttributeKeys() bool {
- if o != nil && o.AttributeKeys != nil {
- return true
- }
-
- return false
-}
-
-// SetAttributeKeys gets a reference to the given []string and assigns it to the AttributeKeys field.
-func (o *WorkflowGetQueryAttributesRequest) SetAttributeKeys(v []string) {
- o.AttributeKeys = v
-}
-
-func (o WorkflowGetQueryAttributesRequest) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if true {
- toSerialize["workflowId"] = o.WorkflowId
- }
- if o.WorkflowRunId != nil {
- toSerialize["workflowRunId"] = o.WorkflowRunId
- }
- if o.AttributeKeys != nil {
- toSerialize["attributeKeys"] = o.AttributeKeys
- }
- return json.Marshal(toSerialize)
-}
-
-type NullableWorkflowGetQueryAttributesRequest struct {
- value *WorkflowGetQueryAttributesRequest
- isSet bool
-}
-
-func (v NullableWorkflowGetQueryAttributesRequest) Get() *WorkflowGetQueryAttributesRequest {
- return v.value
-}
-
-func (v *NullableWorkflowGetQueryAttributesRequest) Set(val *WorkflowGetQueryAttributesRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWorkflowGetQueryAttributesRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWorkflowGetQueryAttributesRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWorkflowGetQueryAttributesRequest(val *WorkflowGetQueryAttributesRequest) *NullableWorkflowGetQueryAttributesRequest {
- return &NullableWorkflowGetQueryAttributesRequest{value: val, isSet: true}
-}
-
-func (v NullableWorkflowGetQueryAttributesRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWorkflowGetQueryAttributesRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-
diff --git a/gen/iwfidl/model_workflow_get_query_attributes_response.go b/gen/iwfidl/model_workflow_get_query_attributes_response.go
deleted file mode 100644
index b898a898..00000000
--- a/gen/iwfidl/model_workflow_get_query_attributes_response.go
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
-Workflow APIs
-
-This APIs for iwf SDKs to operate workflows
-
-API version: 1.0.0
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package iwfidl
-
-import (
- "encoding/json"
-)
-
-// WorkflowGetQueryAttributesResponse struct for WorkflowGetQueryAttributesResponse
-type WorkflowGetQueryAttributesResponse struct {
- QueryAttributes []KeyValue `json:"queryAttributes,omitempty"`
-}
-
-// NewWorkflowGetQueryAttributesResponse instantiates a new WorkflowGetQueryAttributesResponse object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWorkflowGetQueryAttributesResponse() *WorkflowGetQueryAttributesResponse {
- this := WorkflowGetQueryAttributesResponse{}
- return &this
-}
-
-// NewWorkflowGetQueryAttributesResponseWithDefaults instantiates a new WorkflowGetQueryAttributesResponse object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewWorkflowGetQueryAttributesResponseWithDefaults() *WorkflowGetQueryAttributesResponse {
- this := WorkflowGetQueryAttributesResponse{}
- return &this
-}
-
-// GetQueryAttributes returns the QueryAttributes field value if set, zero value otherwise.
-func (o *WorkflowGetQueryAttributesResponse) GetQueryAttributes() []KeyValue {
- if o == nil || o.QueryAttributes == nil {
- var ret []KeyValue
- return ret
- }
- return o.QueryAttributes
-}
-
-// GetQueryAttributesOk returns a tuple with the QueryAttributes field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WorkflowGetQueryAttributesResponse) GetQueryAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.QueryAttributes == nil {
- return nil, false
- }
- return o.QueryAttributes, true
-}
-
-// HasQueryAttributes returns a boolean if a field has been set.
-func (o *WorkflowGetQueryAttributesResponse) HasQueryAttributes() bool {
- if o != nil && o.QueryAttributes != nil {
- return true
- }
-
- return false
-}
-
-// SetQueryAttributes gets a reference to the given []KeyValue and assigns it to the QueryAttributes field.
-func (o *WorkflowGetQueryAttributesResponse) SetQueryAttributes(v []KeyValue) {
- o.QueryAttributes = v
-}
-
-func (o WorkflowGetQueryAttributesResponse) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if o.QueryAttributes != nil {
- toSerialize["queryAttributes"] = o.QueryAttributes
- }
- return json.Marshal(toSerialize)
-}
-
-type NullableWorkflowGetQueryAttributesResponse struct {
- value *WorkflowGetQueryAttributesResponse
- isSet bool
-}
-
-func (v NullableWorkflowGetQueryAttributesResponse) Get() *WorkflowGetQueryAttributesResponse {
- return v.value
-}
-
-func (v *NullableWorkflowGetQueryAttributesResponse) Set(val *WorkflowGetQueryAttributesResponse) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWorkflowGetQueryAttributesResponse) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWorkflowGetQueryAttributesResponse) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWorkflowGetQueryAttributesResponse(val *WorkflowGetQueryAttributesResponse) *NullableWorkflowGetQueryAttributesResponse {
- return &NullableWorkflowGetQueryAttributesResponse{value: val, isSet: true}
-}
-
-func (v NullableWorkflowGetQueryAttributesResponse) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWorkflowGetQueryAttributesResponse) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-
diff --git a/gen/iwfidl/model_workflow_get_search_attributes_request.go b/gen/iwfidl/model_workflow_get_search_attributes_request.go
index 332af4ac..b5a25f66 100644
--- a/gen/iwfidl/model_workflow_get_search_attributes_request.go
+++ b/gen/iwfidl/model_workflow_get_search_attributes_request.go
@@ -18,7 +18,7 @@ import (
type WorkflowGetSearchAttributesRequest struct {
WorkflowId string `json:"workflowId"`
WorkflowRunId *string `json:"workflowRunId,omitempty"`
- AttributeKeys []SearchAttributeKeyAndType `json:"attributeKeys,omitempty"`
+ Keys []SearchAttributeKeyAndType `json:"keys,omitempty"`
}
// NewWorkflowGetSearchAttributesRequest instantiates a new WorkflowGetSearchAttributesRequest object
@@ -95,36 +95,36 @@ func (o *WorkflowGetSearchAttributesRequest) SetWorkflowRunId(v string) {
o.WorkflowRunId = &v
}
-// GetAttributeKeys returns the AttributeKeys field value if set, zero value otherwise.
-func (o *WorkflowGetSearchAttributesRequest) GetAttributeKeys() []SearchAttributeKeyAndType {
- if o == nil || o.AttributeKeys == nil {
+// GetKeys returns the Keys field value if set, zero value otherwise.
+func (o *WorkflowGetSearchAttributesRequest) GetKeys() []SearchAttributeKeyAndType {
+ if o == nil || o.Keys == nil {
var ret []SearchAttributeKeyAndType
return ret
}
- return o.AttributeKeys
+ return o.Keys
}
-// GetAttributeKeysOk returns a tuple with the AttributeKeys field value if set, nil otherwise
+// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowGetSearchAttributesRequest) GetAttributeKeysOk() ([]SearchAttributeKeyAndType, bool) {
- if o == nil || o.AttributeKeys == nil {
+func (o *WorkflowGetSearchAttributesRequest) GetKeysOk() ([]SearchAttributeKeyAndType, bool) {
+ if o == nil || o.Keys == nil {
return nil, false
}
- return o.AttributeKeys, true
+ return o.Keys, true
}
-// HasAttributeKeys returns a boolean if a field has been set.
-func (o *WorkflowGetSearchAttributesRequest) HasAttributeKeys() bool {
- if o != nil && o.AttributeKeys != nil {
+// HasKeys returns a boolean if a field has been set.
+func (o *WorkflowGetSearchAttributesRequest) HasKeys() bool {
+ if o != nil && o.Keys != nil {
return true
}
return false
}
-// SetAttributeKeys gets a reference to the given []SearchAttributeKeyAndType and assigns it to the AttributeKeys field.
-func (o *WorkflowGetSearchAttributesRequest) SetAttributeKeys(v []SearchAttributeKeyAndType) {
- o.AttributeKeys = v
+// SetKeys gets a reference to the given []SearchAttributeKeyAndType and assigns it to the Keys field.
+func (o *WorkflowGetSearchAttributesRequest) SetKeys(v []SearchAttributeKeyAndType) {
+ o.Keys = v
}
func (o WorkflowGetSearchAttributesRequest) MarshalJSON() ([]byte, error) {
@@ -135,8 +135,8 @@ func (o WorkflowGetSearchAttributesRequest) MarshalJSON() ([]byte, error) {
if o.WorkflowRunId != nil {
toSerialize["workflowRunId"] = o.WorkflowRunId
}
- if o.AttributeKeys != nil {
- toSerialize["attributeKeys"] = o.AttributeKeys
+ if o.Keys != nil {
+ toSerialize["keys"] = o.Keys
}
return json.Marshal(toSerialize)
}
diff --git a/gen/iwfidl/model_workflow_reset_request.go b/gen/iwfidl/model_workflow_reset_request.go
index c81e8a49..55470b14 100644
--- a/gen/iwfidl/model_workflow_reset_request.go
+++ b/gen/iwfidl/model_workflow_reset_request.go
@@ -21,10 +21,8 @@ type WorkflowResetRequest struct {
ResetType string `json:"resetType"`
HistoryEventId *int32 `json:"historyEventId,omitempty"`
Reason *string `json:"reason,omitempty"`
- DecisionOffset *int32 `json:"decision_offset,omitempty"`
- ResetBadBinaryChecksum *string `json:"reset_bad_binary_checksum,omitempty"`
- EarliestTime *string `json:"earliest_time,omitempty"`
- SkipSignalReapply *bool `json:"skip_signal_reapply,omitempty"`
+ HistoryEventTime *string `json:"historyEventTime,omitempty"`
+ SkipSignalReapply *bool `json:"skipSignalReapply,omitempty"`
}
// NewWorkflowResetRequest instantiates a new WorkflowResetRequest object
@@ -190,100 +188,36 @@ func (o *WorkflowResetRequest) SetReason(v string) {
o.Reason = &v
}
-// GetDecisionOffset returns the DecisionOffset field value if set, zero value otherwise.
-func (o *WorkflowResetRequest) GetDecisionOffset() int32 {
- if o == nil || o.DecisionOffset == nil {
- var ret int32
- return ret
- }
- return *o.DecisionOffset
-}
-
-// GetDecisionOffsetOk returns a tuple with the DecisionOffset field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WorkflowResetRequest) GetDecisionOffsetOk() (*int32, bool) {
- if o == nil || o.DecisionOffset == nil {
- return nil, false
- }
- return o.DecisionOffset, true
-}
-
-// HasDecisionOffset returns a boolean if a field has been set.
-func (o *WorkflowResetRequest) HasDecisionOffset() bool {
- if o != nil && o.DecisionOffset != nil {
- return true
- }
-
- return false
-}
-
-// SetDecisionOffset gets a reference to the given int32 and assigns it to the DecisionOffset field.
-func (o *WorkflowResetRequest) SetDecisionOffset(v int32) {
- o.DecisionOffset = &v
-}
-
-// GetResetBadBinaryChecksum returns the ResetBadBinaryChecksum field value if set, zero value otherwise.
-func (o *WorkflowResetRequest) GetResetBadBinaryChecksum() string {
- if o == nil || o.ResetBadBinaryChecksum == nil {
- var ret string
- return ret
- }
- return *o.ResetBadBinaryChecksum
-}
-
-// GetResetBadBinaryChecksumOk returns a tuple with the ResetBadBinaryChecksum field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WorkflowResetRequest) GetResetBadBinaryChecksumOk() (*string, bool) {
- if o == nil || o.ResetBadBinaryChecksum == nil {
- return nil, false
- }
- return o.ResetBadBinaryChecksum, true
-}
-
-// HasResetBadBinaryChecksum returns a boolean if a field has been set.
-func (o *WorkflowResetRequest) HasResetBadBinaryChecksum() bool {
- if o != nil && o.ResetBadBinaryChecksum != nil {
- return true
- }
-
- return false
-}
-
-// SetResetBadBinaryChecksum gets a reference to the given string and assigns it to the ResetBadBinaryChecksum field.
-func (o *WorkflowResetRequest) SetResetBadBinaryChecksum(v string) {
- o.ResetBadBinaryChecksum = &v
-}
-
-// GetEarliestTime returns the EarliestTime field value if set, zero value otherwise.
-func (o *WorkflowResetRequest) GetEarliestTime() string {
- if o == nil || o.EarliestTime == nil {
+// GetHistoryEventTime returns the HistoryEventTime field value if set, zero value otherwise.
+func (o *WorkflowResetRequest) GetHistoryEventTime() string {
+ if o == nil || o.HistoryEventTime == nil {
var ret string
return ret
}
- return *o.EarliestTime
+ return *o.HistoryEventTime
}
-// GetEarliestTimeOk returns a tuple with the EarliestTime field value if set, nil otherwise
+// GetHistoryEventTimeOk returns a tuple with the HistoryEventTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowResetRequest) GetEarliestTimeOk() (*string, bool) {
- if o == nil || o.EarliestTime == nil {
+func (o *WorkflowResetRequest) GetHistoryEventTimeOk() (*string, bool) {
+ if o == nil || o.HistoryEventTime == nil {
return nil, false
}
- return o.EarliestTime, true
+ return o.HistoryEventTime, true
}
-// HasEarliestTime returns a boolean if a field has been set.
-func (o *WorkflowResetRequest) HasEarliestTime() bool {
- if o != nil && o.EarliestTime != nil {
+// HasHistoryEventTime returns a boolean if a field has been set.
+func (o *WorkflowResetRequest) HasHistoryEventTime() bool {
+ if o != nil && o.HistoryEventTime != nil {
return true
}
return false
}
-// SetEarliestTime gets a reference to the given string and assigns it to the EarliestTime field.
-func (o *WorkflowResetRequest) SetEarliestTime(v string) {
- o.EarliestTime = &v
+// SetHistoryEventTime gets a reference to the given string and assigns it to the HistoryEventTime field.
+func (o *WorkflowResetRequest) SetHistoryEventTime(v string) {
+ o.HistoryEventTime = &v
}
// GetSkipSignalReapply returns the SkipSignalReapply field value if set, zero value otherwise.
@@ -335,17 +269,11 @@ func (o WorkflowResetRequest) MarshalJSON() ([]byte, error) {
if o.Reason != nil {
toSerialize["reason"] = o.Reason
}
- if o.DecisionOffset != nil {
- toSerialize["decision_offset"] = o.DecisionOffset
- }
- if o.ResetBadBinaryChecksum != nil {
- toSerialize["reset_bad_binary_checksum"] = o.ResetBadBinaryChecksum
- }
- if o.EarliestTime != nil {
- toSerialize["earliest_time"] = o.EarliestTime
+ if o.HistoryEventTime != nil {
+ toSerialize["historyEventTime"] = o.HistoryEventTime
}
if o.SkipSignalReapply != nil {
- toSerialize["skip_signal_reapply"] = o.SkipSignalReapply
+ toSerialize["skipSignalReapply"] = o.SkipSignalReapply
}
return json.Marshal(toSerialize)
}
diff --git a/gen/iwfidl/model_workflow_start_options.go b/gen/iwfidl/model_workflow_start_options.go
index d031797e..d5c5ad1d 100644
--- a/gen/iwfidl/model_workflow_start_options.go
+++ b/gen/iwfidl/model_workflow_start_options.go
@@ -18,6 +18,7 @@ import (
type WorkflowStartOptions struct {
WorkflowIDReusePolicy *string `json:"workflowIDReusePolicy,omitempty"`
CronSchedule *string `json:"cronSchedule,omitempty"`
+ RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"`
}
// NewWorkflowStartOptions instantiates a new WorkflowStartOptions object
@@ -101,6 +102,38 @@ func (o *WorkflowStartOptions) SetCronSchedule(v string) {
o.CronSchedule = &v
}
+// GetRetryPolicy returns the RetryPolicy field value if set, zero value otherwise.
+func (o *WorkflowStartOptions) GetRetryPolicy() RetryPolicy {
+ if o == nil || o.RetryPolicy == nil {
+ var ret RetryPolicy
+ return ret
+ }
+ return *o.RetryPolicy
+}
+
+// GetRetryPolicyOk returns a tuple with the RetryPolicy field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowStartOptions) GetRetryPolicyOk() (*RetryPolicy, bool) {
+ if o == nil || o.RetryPolicy == nil {
+ return nil, false
+ }
+ return o.RetryPolicy, true
+}
+
+// HasRetryPolicy returns a boolean if a field has been set.
+func (o *WorkflowStartOptions) HasRetryPolicy() bool {
+ if o != nil && o.RetryPolicy != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRetryPolicy gets a reference to the given RetryPolicy and assigns it to the RetryPolicy field.
+func (o *WorkflowStartOptions) SetRetryPolicy(v RetryPolicy) {
+ o.RetryPolicy = &v
+}
+
func (o WorkflowStartOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.WorkflowIDReusePolicy != nil {
@@ -109,6 +142,9 @@ func (o WorkflowStartOptions) MarshalJSON() ([]byte, error) {
if o.CronSchedule != nil {
toSerialize["cronSchedule"] = o.CronSchedule
}
+ if o.RetryPolicy != nil {
+ toSerialize["retryPolicy"] = o.RetryPolicy
+ }
return json.Marshal(toSerialize)
}
diff --git a/gen/iwfidl/model_workflow_state_decide_request.go b/gen/iwfidl/model_workflow_state_decide_request.go
index 2e98dc64..7e2f570d 100644
--- a/gen/iwfidl/model_workflow_state_decide_request.go
+++ b/gen/iwfidl/model_workflow_state_decide_request.go
@@ -21,8 +21,8 @@ type WorkflowStateDecideRequest struct {
WorkflowStateId string `json:"workflowStateId"`
StateInput *EncodedObject `json:"stateInput,omitempty"`
SearchAttributes []SearchAttribute `json:"searchAttributes,omitempty"`
- QueryAttributes []KeyValue `json:"queryAttributes,omitempty"`
- StateLocalAttributes []KeyValue `json:"stateLocalAttributes,omitempty"`
+ DataObjects []KeyValue `json:"DataObjects,omitempty"`
+ StateLocals []KeyValue `json:"stateLocals,omitempty"`
CommandResults *CommandResults `json:"commandResults,omitempty"`
}
@@ -182,68 +182,68 @@ func (o *WorkflowStateDecideRequest) SetSearchAttributes(v []SearchAttribute) {
o.SearchAttributes = v
}
-// GetQueryAttributes returns the QueryAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateDecideRequest) GetQueryAttributes() []KeyValue {
- if o == nil || o.QueryAttributes == nil {
+// GetDataObjects returns the DataObjects field value if set, zero value otherwise.
+func (o *WorkflowStateDecideRequest) GetDataObjects() []KeyValue {
+ if o == nil || o.DataObjects == nil {
var ret []KeyValue
return ret
}
- return o.QueryAttributes
+ return o.DataObjects
}
-// GetQueryAttributesOk returns a tuple with the QueryAttributes field value if set, nil otherwise
+// GetDataObjectsOk returns a tuple with the DataObjects field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateDecideRequest) GetQueryAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.QueryAttributes == nil {
+func (o *WorkflowStateDecideRequest) GetDataObjectsOk() ([]KeyValue, bool) {
+ if o == nil || o.DataObjects == nil {
return nil, false
}
- return o.QueryAttributes, true
+ return o.DataObjects, true
}
-// HasQueryAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateDecideRequest) HasQueryAttributes() bool {
- if o != nil && o.QueryAttributes != nil {
+// HasDataObjects returns a boolean if a field has been set.
+func (o *WorkflowStateDecideRequest) HasDataObjects() bool {
+ if o != nil && o.DataObjects != nil {
return true
}
return false
}
-// SetQueryAttributes gets a reference to the given []KeyValue and assigns it to the QueryAttributes field.
-func (o *WorkflowStateDecideRequest) SetQueryAttributes(v []KeyValue) {
- o.QueryAttributes = v
+// SetDataObjects gets a reference to the given []KeyValue and assigns it to the DataObjects field.
+func (o *WorkflowStateDecideRequest) SetDataObjects(v []KeyValue) {
+ o.DataObjects = v
}
-// GetStateLocalAttributes returns the StateLocalAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateDecideRequest) GetStateLocalAttributes() []KeyValue {
- if o == nil || o.StateLocalAttributes == nil {
+// GetStateLocals returns the StateLocals field value if set, zero value otherwise.
+func (o *WorkflowStateDecideRequest) GetStateLocals() []KeyValue {
+ if o == nil || o.StateLocals == nil {
var ret []KeyValue
return ret
}
- return o.StateLocalAttributes
+ return o.StateLocals
}
-// GetStateLocalAttributesOk returns a tuple with the StateLocalAttributes field value if set, nil otherwise
+// GetStateLocalsOk returns a tuple with the StateLocals field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateDecideRequest) GetStateLocalAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.StateLocalAttributes == nil {
+func (o *WorkflowStateDecideRequest) GetStateLocalsOk() ([]KeyValue, bool) {
+ if o == nil || o.StateLocals == nil {
return nil, false
}
- return o.StateLocalAttributes, true
+ return o.StateLocals, true
}
-// HasStateLocalAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateDecideRequest) HasStateLocalAttributes() bool {
- if o != nil && o.StateLocalAttributes != nil {
+// HasStateLocals returns a boolean if a field has been set.
+func (o *WorkflowStateDecideRequest) HasStateLocals() bool {
+ if o != nil && o.StateLocals != nil {
return true
}
return false
}
-// SetStateLocalAttributes gets a reference to the given []KeyValue and assigns it to the StateLocalAttributes field.
-func (o *WorkflowStateDecideRequest) SetStateLocalAttributes(v []KeyValue) {
- o.StateLocalAttributes = v
+// SetStateLocals gets a reference to the given []KeyValue and assigns it to the StateLocals field.
+func (o *WorkflowStateDecideRequest) SetStateLocals(v []KeyValue) {
+ o.StateLocals = v
}
// GetCommandResults returns the CommandResults field value if set, zero value otherwise.
@@ -295,11 +295,11 @@ func (o WorkflowStateDecideRequest) MarshalJSON() ([]byte, error) {
if o.SearchAttributes != nil {
toSerialize["searchAttributes"] = o.SearchAttributes
}
- if o.QueryAttributes != nil {
- toSerialize["queryAttributes"] = o.QueryAttributes
+ if o.DataObjects != nil {
+ toSerialize["DataObjects"] = o.DataObjects
}
- if o.StateLocalAttributes != nil {
- toSerialize["stateLocalAttributes"] = o.StateLocalAttributes
+ if o.StateLocals != nil {
+ toSerialize["stateLocals"] = o.StateLocals
}
if o.CommandResults != nil {
toSerialize["commandResults"] = o.CommandResults
diff --git a/gen/iwfidl/model_workflow_state_decide_response.go b/gen/iwfidl/model_workflow_state_decide_response.go
index 5bfcca4d..7f3ca4ae 100644
--- a/gen/iwfidl/model_workflow_state_decide_response.go
+++ b/gen/iwfidl/model_workflow_state_decide_response.go
@@ -18,9 +18,9 @@ import (
type WorkflowStateDecideResponse struct {
StateDecision *StateDecision `json:"stateDecision,omitempty"`
UpsertSearchAttributes []SearchAttribute `json:"upsertSearchAttributes,omitempty"`
- UpsertQueryAttributes []KeyValue `json:"upsertQueryAttributes,omitempty"`
+ UpsertDataObjects []KeyValue `json:"upsertDataObjects,omitempty"`
RecordEvents []KeyValue `json:"recordEvents,omitempty"`
- UpsertStateLocalAttributes []KeyValue `json:"upsertStateLocalAttributes,omitempty"`
+ UpsertStateLocals []KeyValue `json:"upsertStateLocals,omitempty"`
PublishToInterStateChannel []InterStateChannelPublishing `json:"publishToInterStateChannel,omitempty"`
}
@@ -105,36 +105,36 @@ func (o *WorkflowStateDecideResponse) SetUpsertSearchAttributes(v []SearchAttrib
o.UpsertSearchAttributes = v
}
-// GetUpsertQueryAttributes returns the UpsertQueryAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateDecideResponse) GetUpsertQueryAttributes() []KeyValue {
- if o == nil || o.UpsertQueryAttributes == nil {
+// GetUpsertDataObjects returns the UpsertDataObjects field value if set, zero value otherwise.
+func (o *WorkflowStateDecideResponse) GetUpsertDataObjects() []KeyValue {
+ if o == nil || o.UpsertDataObjects == nil {
var ret []KeyValue
return ret
}
- return o.UpsertQueryAttributes
+ return o.UpsertDataObjects
}
-// GetUpsertQueryAttributesOk returns a tuple with the UpsertQueryAttributes field value if set, nil otherwise
+// GetUpsertDataObjectsOk returns a tuple with the UpsertDataObjects field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateDecideResponse) GetUpsertQueryAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.UpsertQueryAttributes == nil {
+func (o *WorkflowStateDecideResponse) GetUpsertDataObjectsOk() ([]KeyValue, bool) {
+ if o == nil || o.UpsertDataObjects == nil {
return nil, false
}
- return o.UpsertQueryAttributes, true
+ return o.UpsertDataObjects, true
}
-// HasUpsertQueryAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateDecideResponse) HasUpsertQueryAttributes() bool {
- if o != nil && o.UpsertQueryAttributes != nil {
+// HasUpsertDataObjects returns a boolean if a field has been set.
+func (o *WorkflowStateDecideResponse) HasUpsertDataObjects() bool {
+ if o != nil && o.UpsertDataObjects != nil {
return true
}
return false
}
-// SetUpsertQueryAttributes gets a reference to the given []KeyValue and assigns it to the UpsertQueryAttributes field.
-func (o *WorkflowStateDecideResponse) SetUpsertQueryAttributes(v []KeyValue) {
- o.UpsertQueryAttributes = v
+// SetUpsertDataObjects gets a reference to the given []KeyValue and assigns it to the UpsertDataObjects field.
+func (o *WorkflowStateDecideResponse) SetUpsertDataObjects(v []KeyValue) {
+ o.UpsertDataObjects = v
}
// GetRecordEvents returns the RecordEvents field value if set, zero value otherwise.
@@ -169,36 +169,36 @@ func (o *WorkflowStateDecideResponse) SetRecordEvents(v []KeyValue) {
o.RecordEvents = v
}
-// GetUpsertStateLocalAttributes returns the UpsertStateLocalAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateDecideResponse) GetUpsertStateLocalAttributes() []KeyValue {
- if o == nil || o.UpsertStateLocalAttributes == nil {
+// GetUpsertStateLocals returns the UpsertStateLocals field value if set, zero value otherwise.
+func (o *WorkflowStateDecideResponse) GetUpsertStateLocals() []KeyValue {
+ if o == nil || o.UpsertStateLocals == nil {
var ret []KeyValue
return ret
}
- return o.UpsertStateLocalAttributes
+ return o.UpsertStateLocals
}
-// GetUpsertStateLocalAttributesOk returns a tuple with the UpsertStateLocalAttributes field value if set, nil otherwise
+// GetUpsertStateLocalsOk returns a tuple with the UpsertStateLocals field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateDecideResponse) GetUpsertStateLocalAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.UpsertStateLocalAttributes == nil {
+func (o *WorkflowStateDecideResponse) GetUpsertStateLocalsOk() ([]KeyValue, bool) {
+ if o == nil || o.UpsertStateLocals == nil {
return nil, false
}
- return o.UpsertStateLocalAttributes, true
+ return o.UpsertStateLocals, true
}
-// HasUpsertStateLocalAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateDecideResponse) HasUpsertStateLocalAttributes() bool {
- if o != nil && o.UpsertStateLocalAttributes != nil {
+// HasUpsertStateLocals returns a boolean if a field has been set.
+func (o *WorkflowStateDecideResponse) HasUpsertStateLocals() bool {
+ if o != nil && o.UpsertStateLocals != nil {
return true
}
return false
}
-// SetUpsertStateLocalAttributes gets a reference to the given []KeyValue and assigns it to the UpsertStateLocalAttributes field.
-func (o *WorkflowStateDecideResponse) SetUpsertStateLocalAttributes(v []KeyValue) {
- o.UpsertStateLocalAttributes = v
+// SetUpsertStateLocals gets a reference to the given []KeyValue and assigns it to the UpsertStateLocals field.
+func (o *WorkflowStateDecideResponse) SetUpsertStateLocals(v []KeyValue) {
+ o.UpsertStateLocals = v
}
// GetPublishToInterStateChannel returns the PublishToInterStateChannel field value if set, zero value otherwise.
@@ -241,14 +241,14 @@ func (o WorkflowStateDecideResponse) MarshalJSON() ([]byte, error) {
if o.UpsertSearchAttributes != nil {
toSerialize["upsertSearchAttributes"] = o.UpsertSearchAttributes
}
- if o.UpsertQueryAttributes != nil {
- toSerialize["upsertQueryAttributes"] = o.UpsertQueryAttributes
+ if o.UpsertDataObjects != nil {
+ toSerialize["upsertDataObjects"] = o.UpsertDataObjects
}
if o.RecordEvents != nil {
toSerialize["recordEvents"] = o.RecordEvents
}
- if o.UpsertStateLocalAttributes != nil {
- toSerialize["upsertStateLocalAttributes"] = o.UpsertStateLocalAttributes
+ if o.UpsertStateLocals != nil {
+ toSerialize["upsertStateLocals"] = o.UpsertStateLocals
}
if o.PublishToInterStateChannel != nil {
toSerialize["publishToInterStateChannel"] = o.PublishToInterStateChannel
diff --git a/gen/iwfidl/model_workflow_state_options.go b/gen/iwfidl/model_workflow_state_options.go
index 3f9b2dde..d5b5a410 100644
--- a/gen/iwfidl/model_workflow_state_options.go
+++ b/gen/iwfidl/model_workflow_state_options.go
@@ -16,9 +16,11 @@ import (
// WorkflowStateOptions struct for WorkflowStateOptions
type WorkflowStateOptions struct {
- SearchAttributesLoadingPolicy *AttributesLoadingPolicy `json:"searchAttributesLoadingPolicy,omitempty"`
- QueryAttributesLoadingPolicy *AttributesLoadingPolicy `json:"queryAttributesLoadingPolicy,omitempty"`
+ SearchAttributesLoadingPolicy *PersistenceLoadingPolicy `json:"searchAttributesLoadingPolicy,omitempty"`
+ DataObjectsLoadingPolicy *PersistenceLoadingPolicy `json:"dataObjectsLoadingPolicy,omitempty"`
CommandCarryOverPolicy *CommandCarryOverPolicy `json:"commandCarryOverPolicy,omitempty"`
+ StartApiRetryPolicy *RetryPolicy `json:"startApiRetryPolicy,omitempty"`
+ DecideApiRetryPolicy *RetryPolicy `json:"decideApiRetryPolicy,omitempty"`
}
// NewWorkflowStateOptions instantiates a new WorkflowStateOptions object
@@ -39,9 +41,9 @@ func NewWorkflowStateOptionsWithDefaults() *WorkflowStateOptions {
}
// GetSearchAttributesLoadingPolicy returns the SearchAttributesLoadingPolicy field value if set, zero value otherwise.
-func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicy() AttributesLoadingPolicy {
+func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicy() PersistenceLoadingPolicy {
if o == nil || o.SearchAttributesLoadingPolicy == nil {
- var ret AttributesLoadingPolicy
+ var ret PersistenceLoadingPolicy
return ret
}
return *o.SearchAttributesLoadingPolicy
@@ -49,7 +51,7 @@ func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicy() AttributesLoad
// GetSearchAttributesLoadingPolicyOk returns a tuple with the SearchAttributesLoadingPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicyOk() (*AttributesLoadingPolicy, bool) {
+func (o *WorkflowStateOptions) GetSearchAttributesLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) {
if o == nil || o.SearchAttributesLoadingPolicy == nil {
return nil, false
}
@@ -65,41 +67,41 @@ func (o *WorkflowStateOptions) HasSearchAttributesLoadingPolicy() bool {
return false
}
-// SetSearchAttributesLoadingPolicy gets a reference to the given AttributesLoadingPolicy and assigns it to the SearchAttributesLoadingPolicy field.
-func (o *WorkflowStateOptions) SetSearchAttributesLoadingPolicy(v AttributesLoadingPolicy) {
+// SetSearchAttributesLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the SearchAttributesLoadingPolicy field.
+func (o *WorkflowStateOptions) SetSearchAttributesLoadingPolicy(v PersistenceLoadingPolicy) {
o.SearchAttributesLoadingPolicy = &v
}
-// GetQueryAttributesLoadingPolicy returns the QueryAttributesLoadingPolicy field value if set, zero value otherwise.
-func (o *WorkflowStateOptions) GetQueryAttributesLoadingPolicy() AttributesLoadingPolicy {
- if o == nil || o.QueryAttributesLoadingPolicy == nil {
- var ret AttributesLoadingPolicy
+// GetDataObjectsLoadingPolicy returns the DataObjectsLoadingPolicy field value if set, zero value otherwise.
+func (o *WorkflowStateOptions) GetDataObjectsLoadingPolicy() PersistenceLoadingPolicy {
+ if o == nil || o.DataObjectsLoadingPolicy == nil {
+ var ret PersistenceLoadingPolicy
return ret
}
- return *o.QueryAttributesLoadingPolicy
+ return *o.DataObjectsLoadingPolicy
}
-// GetQueryAttributesLoadingPolicyOk returns a tuple with the QueryAttributesLoadingPolicy field value if set, nil otherwise
+// GetDataObjectsLoadingPolicyOk returns a tuple with the DataObjectsLoadingPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateOptions) GetQueryAttributesLoadingPolicyOk() (*AttributesLoadingPolicy, bool) {
- if o == nil || o.QueryAttributesLoadingPolicy == nil {
+func (o *WorkflowStateOptions) GetDataObjectsLoadingPolicyOk() (*PersistenceLoadingPolicy, bool) {
+ if o == nil || o.DataObjectsLoadingPolicy == nil {
return nil, false
}
- return o.QueryAttributesLoadingPolicy, true
+ return o.DataObjectsLoadingPolicy, true
}
-// HasQueryAttributesLoadingPolicy returns a boolean if a field has been set.
-func (o *WorkflowStateOptions) HasQueryAttributesLoadingPolicy() bool {
- if o != nil && o.QueryAttributesLoadingPolicy != nil {
+// HasDataObjectsLoadingPolicy returns a boolean if a field has been set.
+func (o *WorkflowStateOptions) HasDataObjectsLoadingPolicy() bool {
+ if o != nil && o.DataObjectsLoadingPolicy != nil {
return true
}
return false
}
-// SetQueryAttributesLoadingPolicy gets a reference to the given AttributesLoadingPolicy and assigns it to the QueryAttributesLoadingPolicy field.
-func (o *WorkflowStateOptions) SetQueryAttributesLoadingPolicy(v AttributesLoadingPolicy) {
- o.QueryAttributesLoadingPolicy = &v
+// SetDataObjectsLoadingPolicy gets a reference to the given PersistenceLoadingPolicy and assigns it to the DataObjectsLoadingPolicy field.
+func (o *WorkflowStateOptions) SetDataObjectsLoadingPolicy(v PersistenceLoadingPolicy) {
+ o.DataObjectsLoadingPolicy = &v
}
// GetCommandCarryOverPolicy returns the CommandCarryOverPolicy field value if set, zero value otherwise.
@@ -134,17 +136,87 @@ func (o *WorkflowStateOptions) SetCommandCarryOverPolicy(v CommandCarryOverPolic
o.CommandCarryOverPolicy = &v
}
+// GetStartApiRetryPolicy returns the StartApiRetryPolicy field value if set, zero value otherwise.
+func (o *WorkflowStateOptions) GetStartApiRetryPolicy() RetryPolicy {
+ if o == nil || o.StartApiRetryPolicy == nil {
+ var ret RetryPolicy
+ return ret
+ }
+ return *o.StartApiRetryPolicy
+}
+
+// GetStartApiRetryPolicyOk returns a tuple with the StartApiRetryPolicy field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowStateOptions) GetStartApiRetryPolicyOk() (*RetryPolicy, bool) {
+ if o == nil || o.StartApiRetryPolicy == nil {
+ return nil, false
+ }
+ return o.StartApiRetryPolicy, true
+}
+
+// HasStartApiRetryPolicy returns a boolean if a field has been set.
+func (o *WorkflowStateOptions) HasStartApiRetryPolicy() bool {
+ if o != nil && o.StartApiRetryPolicy != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStartApiRetryPolicy gets a reference to the given RetryPolicy and assigns it to the StartApiRetryPolicy field.
+func (o *WorkflowStateOptions) SetStartApiRetryPolicy(v RetryPolicy) {
+ o.StartApiRetryPolicy = &v
+}
+
+// GetDecideApiRetryPolicy returns the DecideApiRetryPolicy field value if set, zero value otherwise.
+func (o *WorkflowStateOptions) GetDecideApiRetryPolicy() RetryPolicy {
+ if o == nil || o.DecideApiRetryPolicy == nil {
+ var ret RetryPolicy
+ return ret
+ }
+ return *o.DecideApiRetryPolicy
+}
+
+// GetDecideApiRetryPolicyOk returns a tuple with the DecideApiRetryPolicy field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowStateOptions) GetDecideApiRetryPolicyOk() (*RetryPolicy, bool) {
+ if o == nil || o.DecideApiRetryPolicy == nil {
+ return nil, false
+ }
+ return o.DecideApiRetryPolicy, true
+}
+
+// HasDecideApiRetryPolicy returns a boolean if a field has been set.
+func (o *WorkflowStateOptions) HasDecideApiRetryPolicy() bool {
+ if o != nil && o.DecideApiRetryPolicy != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDecideApiRetryPolicy gets a reference to the given RetryPolicy and assigns it to the DecideApiRetryPolicy field.
+func (o *WorkflowStateOptions) SetDecideApiRetryPolicy(v RetryPolicy) {
+ o.DecideApiRetryPolicy = &v
+}
+
func (o WorkflowStateOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SearchAttributesLoadingPolicy != nil {
toSerialize["searchAttributesLoadingPolicy"] = o.SearchAttributesLoadingPolicy
}
- if o.QueryAttributesLoadingPolicy != nil {
- toSerialize["queryAttributesLoadingPolicy"] = o.QueryAttributesLoadingPolicy
+ if o.DataObjectsLoadingPolicy != nil {
+ toSerialize["dataObjectsLoadingPolicy"] = o.DataObjectsLoadingPolicy
}
if o.CommandCarryOverPolicy != nil {
toSerialize["commandCarryOverPolicy"] = o.CommandCarryOverPolicy
}
+ if o.StartApiRetryPolicy != nil {
+ toSerialize["startApiRetryPolicy"] = o.StartApiRetryPolicy
+ }
+ if o.DecideApiRetryPolicy != nil {
+ toSerialize["decideApiRetryPolicy"] = o.DecideApiRetryPolicy
+ }
return json.Marshal(toSerialize)
}
diff --git a/gen/iwfidl/model_workflow_state_start_request.go b/gen/iwfidl/model_workflow_state_start_request.go
index 23f65a85..b62fddc0 100644
--- a/gen/iwfidl/model_workflow_state_start_request.go
+++ b/gen/iwfidl/model_workflow_state_start_request.go
@@ -21,7 +21,7 @@ type WorkflowStateStartRequest struct {
WorkflowStateId string `json:"workflowStateId"`
StateInput *EncodedObject `json:"stateInput,omitempty"`
SearchAttributes []SearchAttribute `json:"searchAttributes,omitempty"`
- QueryAttributes []KeyValue `json:"queryAttributes,omitempty"`
+ DataObjects []KeyValue `json:"dataObjects,omitempty"`
}
// NewWorkflowStateStartRequest instantiates a new WorkflowStateStartRequest object
@@ -180,36 +180,36 @@ func (o *WorkflowStateStartRequest) SetSearchAttributes(v []SearchAttribute) {
o.SearchAttributes = v
}
-// GetQueryAttributes returns the QueryAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateStartRequest) GetQueryAttributes() []KeyValue {
- if o == nil || o.QueryAttributes == nil {
+// GetDataObjects returns the DataObjects field value if set, zero value otherwise.
+func (o *WorkflowStateStartRequest) GetDataObjects() []KeyValue {
+ if o == nil || o.DataObjects == nil {
var ret []KeyValue
return ret
}
- return o.QueryAttributes
+ return o.DataObjects
}
-// GetQueryAttributesOk returns a tuple with the QueryAttributes field value if set, nil otherwise
+// GetDataObjectsOk returns a tuple with the DataObjects field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateStartRequest) GetQueryAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.QueryAttributes == nil {
+func (o *WorkflowStateStartRequest) GetDataObjectsOk() ([]KeyValue, bool) {
+ if o == nil || o.DataObjects == nil {
return nil, false
}
- return o.QueryAttributes, true
+ return o.DataObjects, true
}
-// HasQueryAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateStartRequest) HasQueryAttributes() bool {
- if o != nil && o.QueryAttributes != nil {
+// HasDataObjects returns a boolean if a field has been set.
+func (o *WorkflowStateStartRequest) HasDataObjects() bool {
+ if o != nil && o.DataObjects != nil {
return true
}
return false
}
-// SetQueryAttributes gets a reference to the given []KeyValue and assigns it to the QueryAttributes field.
-func (o *WorkflowStateStartRequest) SetQueryAttributes(v []KeyValue) {
- o.QueryAttributes = v
+// SetDataObjects gets a reference to the given []KeyValue and assigns it to the DataObjects field.
+func (o *WorkflowStateStartRequest) SetDataObjects(v []KeyValue) {
+ o.DataObjects = v
}
func (o WorkflowStateStartRequest) MarshalJSON() ([]byte, error) {
@@ -229,8 +229,8 @@ func (o WorkflowStateStartRequest) MarshalJSON() ([]byte, error) {
if o.SearchAttributes != nil {
toSerialize["searchAttributes"] = o.SearchAttributes
}
- if o.QueryAttributes != nil {
- toSerialize["queryAttributes"] = o.QueryAttributes
+ if o.DataObjects != nil {
+ toSerialize["dataObjects"] = o.DataObjects
}
return json.Marshal(toSerialize)
}
diff --git a/gen/iwfidl/model_workflow_state_start_response.go b/gen/iwfidl/model_workflow_state_start_response.go
index b252f2de..99492fbf 100644
--- a/gen/iwfidl/model_workflow_state_start_response.go
+++ b/gen/iwfidl/model_workflow_state_start_response.go
@@ -17,9 +17,9 @@ import (
// WorkflowStateStartResponse struct for WorkflowStateStartResponse
type WorkflowStateStartResponse struct {
UpsertSearchAttributes []SearchAttribute `json:"upsertSearchAttributes,omitempty"`
- UpsertQueryAttributes []KeyValue `json:"upsertQueryAttributes,omitempty"`
+ UpsertDataObjects []KeyValue `json:"upsertDataObjects,omitempty"`
CommandRequest *CommandRequest `json:"commandRequest,omitempty"`
- UpsertStateLocalAttributes []KeyValue `json:"upsertStateLocalAttributes,omitempty"`
+ UpsertStateLocals []KeyValue `json:"upsertStateLocals,omitempty"`
RecordEvents []KeyValue `json:"recordEvents,omitempty"`
PublishToInterStateChannel []InterStateChannelPublishing `json:"publishToInterStateChannel,omitempty"`
}
@@ -73,36 +73,36 @@ func (o *WorkflowStateStartResponse) SetUpsertSearchAttributes(v []SearchAttribu
o.UpsertSearchAttributes = v
}
-// GetUpsertQueryAttributes returns the UpsertQueryAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateStartResponse) GetUpsertQueryAttributes() []KeyValue {
- if o == nil || o.UpsertQueryAttributes == nil {
+// GetUpsertDataObjects returns the UpsertDataObjects field value if set, zero value otherwise.
+func (o *WorkflowStateStartResponse) GetUpsertDataObjects() []KeyValue {
+ if o == nil || o.UpsertDataObjects == nil {
var ret []KeyValue
return ret
}
- return o.UpsertQueryAttributes
+ return o.UpsertDataObjects
}
-// GetUpsertQueryAttributesOk returns a tuple with the UpsertQueryAttributes field value if set, nil otherwise
+// GetUpsertDataObjectsOk returns a tuple with the UpsertDataObjects field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateStartResponse) GetUpsertQueryAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.UpsertQueryAttributes == nil {
+func (o *WorkflowStateStartResponse) GetUpsertDataObjectsOk() ([]KeyValue, bool) {
+ if o == nil || o.UpsertDataObjects == nil {
return nil, false
}
- return o.UpsertQueryAttributes, true
+ return o.UpsertDataObjects, true
}
-// HasUpsertQueryAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateStartResponse) HasUpsertQueryAttributes() bool {
- if o != nil && o.UpsertQueryAttributes != nil {
+// HasUpsertDataObjects returns a boolean if a field has been set.
+func (o *WorkflowStateStartResponse) HasUpsertDataObjects() bool {
+ if o != nil && o.UpsertDataObjects != nil {
return true
}
return false
}
-// SetUpsertQueryAttributes gets a reference to the given []KeyValue and assigns it to the UpsertQueryAttributes field.
-func (o *WorkflowStateStartResponse) SetUpsertQueryAttributes(v []KeyValue) {
- o.UpsertQueryAttributes = v
+// SetUpsertDataObjects gets a reference to the given []KeyValue and assigns it to the UpsertDataObjects field.
+func (o *WorkflowStateStartResponse) SetUpsertDataObjects(v []KeyValue) {
+ o.UpsertDataObjects = v
}
// GetCommandRequest returns the CommandRequest field value if set, zero value otherwise.
@@ -137,36 +137,36 @@ func (o *WorkflowStateStartResponse) SetCommandRequest(v CommandRequest) {
o.CommandRequest = &v
}
-// GetUpsertStateLocalAttributes returns the UpsertStateLocalAttributes field value if set, zero value otherwise.
-func (o *WorkflowStateStartResponse) GetUpsertStateLocalAttributes() []KeyValue {
- if o == nil || o.UpsertStateLocalAttributes == nil {
+// GetUpsertStateLocals returns the UpsertStateLocals field value if set, zero value otherwise.
+func (o *WorkflowStateStartResponse) GetUpsertStateLocals() []KeyValue {
+ if o == nil || o.UpsertStateLocals == nil {
var ret []KeyValue
return ret
}
- return o.UpsertStateLocalAttributes
+ return o.UpsertStateLocals
}
-// GetUpsertStateLocalAttributesOk returns a tuple with the UpsertStateLocalAttributes field value if set, nil otherwise
+// GetUpsertStateLocalsOk returns a tuple with the UpsertStateLocals field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowStateStartResponse) GetUpsertStateLocalAttributesOk() ([]KeyValue, bool) {
- if o == nil || o.UpsertStateLocalAttributes == nil {
+func (o *WorkflowStateStartResponse) GetUpsertStateLocalsOk() ([]KeyValue, bool) {
+ if o == nil || o.UpsertStateLocals == nil {
return nil, false
}
- return o.UpsertStateLocalAttributes, true
+ return o.UpsertStateLocals, true
}
-// HasUpsertStateLocalAttributes returns a boolean if a field has been set.
-func (o *WorkflowStateStartResponse) HasUpsertStateLocalAttributes() bool {
- if o != nil && o.UpsertStateLocalAttributes != nil {
+// HasUpsertStateLocals returns a boolean if a field has been set.
+func (o *WorkflowStateStartResponse) HasUpsertStateLocals() bool {
+ if o != nil && o.UpsertStateLocals != nil {
return true
}
return false
}
-// SetUpsertStateLocalAttributes gets a reference to the given []KeyValue and assigns it to the UpsertStateLocalAttributes field.
-func (o *WorkflowStateStartResponse) SetUpsertStateLocalAttributes(v []KeyValue) {
- o.UpsertStateLocalAttributes = v
+// SetUpsertStateLocals gets a reference to the given []KeyValue and assigns it to the UpsertStateLocals field.
+func (o *WorkflowStateStartResponse) SetUpsertStateLocals(v []KeyValue) {
+ o.UpsertStateLocals = v
}
// GetRecordEvents returns the RecordEvents field value if set, zero value otherwise.
@@ -238,14 +238,14 @@ func (o WorkflowStateStartResponse) MarshalJSON() ([]byte, error) {
if o.UpsertSearchAttributes != nil {
toSerialize["upsertSearchAttributes"] = o.UpsertSearchAttributes
}
- if o.UpsertQueryAttributes != nil {
- toSerialize["upsertQueryAttributes"] = o.UpsertQueryAttributes
+ if o.UpsertDataObjects != nil {
+ toSerialize["upsertDataObjects"] = o.UpsertDataObjects
}
if o.CommandRequest != nil {
toSerialize["commandRequest"] = o.CommandRequest
}
- if o.UpsertStateLocalAttributes != nil {
- toSerialize["upsertStateLocalAttributes"] = o.UpsertStateLocalAttributes
+ if o.UpsertStateLocals != nil {
+ toSerialize["upsertStateLocals"] = o.UpsertStateLocals
}
if o.RecordEvents != nil {
toSerialize["recordEvents"] = o.RecordEvents
diff --git a/gen/iwfidl/model_workflow_cancel_request.go b/gen/iwfidl/model_workflow_stop_request.go
similarity index 52%
rename from gen/iwfidl/model_workflow_cancel_request.go
rename to gen/iwfidl/model_workflow_stop_request.go
index 0d74a71d..4caf4cee 100644
--- a/gen/iwfidl/model_workflow_cancel_request.go
+++ b/gen/iwfidl/model_workflow_stop_request.go
@@ -14,33 +14,34 @@ import (
"encoding/json"
)
-// WorkflowCancelRequest struct for WorkflowCancelRequest
-type WorkflowCancelRequest struct {
+// WorkflowStopRequest struct for WorkflowStopRequest
+type WorkflowStopRequest struct {
WorkflowId string `json:"workflowId"`
WorkflowRunId *string `json:"workflowRunId,omitempty"`
Reason *string `json:"reason,omitempty"`
+ StopType *string `json:"stopType,omitempty"`
}
-// NewWorkflowCancelRequest instantiates a new WorkflowCancelRequest object
+// NewWorkflowStopRequest instantiates a new WorkflowStopRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWorkflowCancelRequest(workflowId string) *WorkflowCancelRequest {
- this := WorkflowCancelRequest{}
+func NewWorkflowStopRequest(workflowId string) *WorkflowStopRequest {
+ this := WorkflowStopRequest{}
this.WorkflowId = workflowId
return &this
}
-// NewWorkflowCancelRequestWithDefaults instantiates a new WorkflowCancelRequest object
+// NewWorkflowStopRequestWithDefaults instantiates a new WorkflowStopRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
-func NewWorkflowCancelRequestWithDefaults() *WorkflowCancelRequest {
- this := WorkflowCancelRequest{}
+func NewWorkflowStopRequestWithDefaults() *WorkflowStopRequest {
+ this := WorkflowStopRequest{}
return &this
}
// GetWorkflowId returns the WorkflowId field value
-func (o *WorkflowCancelRequest) GetWorkflowId() string {
+func (o *WorkflowStopRequest) GetWorkflowId() string {
if o == nil {
var ret string
return ret
@@ -51,7 +52,7 @@ func (o *WorkflowCancelRequest) GetWorkflowId() string {
// GetWorkflowIdOk returns a tuple with the WorkflowId field value
// and a boolean to check if the value has been set.
-func (o *WorkflowCancelRequest) GetWorkflowIdOk() (*string, bool) {
+func (o *WorkflowStopRequest) GetWorkflowIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -59,12 +60,12 @@ func (o *WorkflowCancelRequest) GetWorkflowIdOk() (*string, bool) {
}
// SetWorkflowId sets field value
-func (o *WorkflowCancelRequest) SetWorkflowId(v string) {
+func (o *WorkflowStopRequest) SetWorkflowId(v string) {
o.WorkflowId = v
}
// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise.
-func (o *WorkflowCancelRequest) GetWorkflowRunId() string {
+func (o *WorkflowStopRequest) GetWorkflowRunId() string {
if o == nil || o.WorkflowRunId == nil {
var ret string
return ret
@@ -74,7 +75,7 @@ func (o *WorkflowCancelRequest) GetWorkflowRunId() string {
// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowCancelRequest) GetWorkflowRunIdOk() (*string, bool) {
+func (o *WorkflowStopRequest) GetWorkflowRunIdOk() (*string, bool) {
if o == nil || o.WorkflowRunId == nil {
return nil, false
}
@@ -82,7 +83,7 @@ func (o *WorkflowCancelRequest) GetWorkflowRunIdOk() (*string, bool) {
}
// HasWorkflowRunId returns a boolean if a field has been set.
-func (o *WorkflowCancelRequest) HasWorkflowRunId() bool {
+func (o *WorkflowStopRequest) HasWorkflowRunId() bool {
if o != nil && o.WorkflowRunId != nil {
return true
}
@@ -91,12 +92,12 @@ func (o *WorkflowCancelRequest) HasWorkflowRunId() bool {
}
// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field.
-func (o *WorkflowCancelRequest) SetWorkflowRunId(v string) {
+func (o *WorkflowStopRequest) SetWorkflowRunId(v string) {
o.WorkflowRunId = &v
}
// GetReason returns the Reason field value if set, zero value otherwise.
-func (o *WorkflowCancelRequest) GetReason() string {
+func (o *WorkflowStopRequest) GetReason() string {
if o == nil || o.Reason == nil {
var ret string
return ret
@@ -106,7 +107,7 @@ func (o *WorkflowCancelRequest) GetReason() string {
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WorkflowCancelRequest) GetReasonOk() (*string, bool) {
+func (o *WorkflowStopRequest) GetReasonOk() (*string, bool) {
if o == nil || o.Reason == nil {
return nil, false
}
@@ -114,7 +115,7 @@ func (o *WorkflowCancelRequest) GetReasonOk() (*string, bool) {
}
// HasReason returns a boolean if a field has been set.
-func (o *WorkflowCancelRequest) HasReason() bool {
+func (o *WorkflowStopRequest) HasReason() bool {
if o != nil && o.Reason != nil {
return true
}
@@ -123,11 +124,43 @@ func (o *WorkflowCancelRequest) HasReason() bool {
}
// SetReason gets a reference to the given string and assigns it to the Reason field.
-func (o *WorkflowCancelRequest) SetReason(v string) {
+func (o *WorkflowStopRequest) SetReason(v string) {
o.Reason = &v
}
-func (o WorkflowCancelRequest) MarshalJSON() ([]byte, error) {
+// GetStopType returns the StopType field value if set, zero value otherwise.
+func (o *WorkflowStopRequest) GetStopType() string {
+ if o == nil || o.StopType == nil {
+ var ret string
+ return ret
+ }
+ return *o.StopType
+}
+
+// GetStopTypeOk returns a tuple with the StopType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WorkflowStopRequest) GetStopTypeOk() (*string, bool) {
+ if o == nil || o.StopType == nil {
+ return nil, false
+ }
+ return o.StopType, true
+}
+
+// HasStopType returns a boolean if a field has been set.
+func (o *WorkflowStopRequest) HasStopType() bool {
+ if o != nil && o.StopType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStopType gets a reference to the given string and assigns it to the StopType field.
+func (o *WorkflowStopRequest) SetStopType(v string) {
+ o.StopType = &v
+}
+
+func (o WorkflowStopRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["workflowId"] = o.WorkflowId
@@ -138,41 +171,44 @@ func (o WorkflowCancelRequest) MarshalJSON() ([]byte, error) {
if o.Reason != nil {
toSerialize["reason"] = o.Reason
}
+ if o.StopType != nil {
+ toSerialize["stopType"] = o.StopType
+ }
return json.Marshal(toSerialize)
}
-type NullableWorkflowCancelRequest struct {
- value *WorkflowCancelRequest
+type NullableWorkflowStopRequest struct {
+ value *WorkflowStopRequest
isSet bool
}
-func (v NullableWorkflowCancelRequest) Get() *WorkflowCancelRequest {
+func (v NullableWorkflowStopRequest) Get() *WorkflowStopRequest {
return v.value
}
-func (v *NullableWorkflowCancelRequest) Set(val *WorkflowCancelRequest) {
+func (v *NullableWorkflowStopRequest) Set(val *WorkflowStopRequest) {
v.value = val
v.isSet = true
}
-func (v NullableWorkflowCancelRequest) IsSet() bool {
+func (v NullableWorkflowStopRequest) IsSet() bool {
return v.isSet
}
-func (v *NullableWorkflowCancelRequest) Unset() {
+func (v *NullableWorkflowStopRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableWorkflowCancelRequest(val *WorkflowCancelRequest) *NullableWorkflowCancelRequest {
- return &NullableWorkflowCancelRequest{value: val, isSet: true}
+func NewNullableWorkflowStopRequest(val *WorkflowStopRequest) *NullableWorkflowStopRequest {
+ return &NullableWorkflowStopRequest{value: val, isSet: true}
}
-func (v NullableWorkflowCancelRequest) MarshalJSON() ([]byte, error) {
+func (v NullableWorkflowStopRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableWorkflowCancelRequest) UnmarshalJSON(src []byte) error {
+func (v *NullableWorkflowStopRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/integ/attribute_test.go b/integ/persistence_test.go
similarity index 72%
rename from integ/attribute_test.go
rename to integ/persistence_test.go
index 90188506..a2cbe841 100644
--- a/integ/attribute_test.go
+++ b/integ/persistence_test.go
@@ -9,21 +9,21 @@ import (
"time"
"github.com/indeedeng/iwf/gen/iwfidl"
- "github.com/indeedeng/iwf/integ/workflow/attribute"
+ "github.com/indeedeng/iwf/integ/workflow/persistence"
"github.com/indeedeng/iwf/service"
"github.com/stretchr/testify/assert"
)
-func TestAttributeWorkflowTemporal(t *testing.T) {
- doTestAttributeWorkflow(t, service.BackendTypeTemporal)
+func TestPersistenceWorkflowTemporal(t *testing.T) {
+ doTestPersistenceWorkflow(t, service.BackendTypeTemporal)
}
-func TestAttributeWorkflowCadence(t *testing.T) {
- doTestAttributeWorkflow(t, service.BackendTypeCadence)
+func TestPersistenceWorkflowCadence(t *testing.T) {
+ doTestPersistenceWorkflow(t, service.BackendTypeCadence)
}
-func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
- wfHandler := attribute.NewHandler()
+func doTestPersistenceWorkflow(t *testing.T, backendType service.BackendType) {
+ wfHandler := persistence.NewHandler()
closeFunc1 := startWorkflowWorker(wfHandler)
defer closeFunc1()
@@ -38,14 +38,14 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
},
},
})
- wfId := attribute.WorkflowType + strconv.Itoa(int(time.Now().Unix()))
+ wfId := persistence.WorkflowType + strconv.Itoa(int(time.Now().Unix()))
reqStart := apiClient.DefaultApi.ApiV1WorkflowStartPost(context.Background())
_, httpResp, err := reqStart.WorkflowStartRequest(iwfidl.WorkflowStartRequest{
WorkflowId: wfId,
- IwfWorkflowType: attribute.WorkflowType,
+ IwfWorkflowType: persistence.WorkflowType,
WorkflowTimeoutSeconds: 10,
IwfWorkerUrl: "http://localhost:" + testWorkflowServerPort,
- StartStateId: attribute.State1,
+ StartStateId: persistence.State1,
}).Execute()
if err != nil {
log.Fatalf("Fail to invoke start api %v", err)
@@ -65,11 +65,11 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
log.Fatalf("Fail to get workflow" + httpResp.Status)
}
- reqQry := apiClient.DefaultApi.ApiV1WorkflowQueryattributesGetPost(context.Background())
- queryResult1, httpResp2, err := reqQry.WorkflowGetQueryAttributesRequest(iwfidl.WorkflowGetQueryAttributesRequest{
+ reqQry := apiClient.DefaultApi.ApiV1WorkflowDataobjectsGetPost(context.Background())
+ queryResult1, httpResp2, err := reqQry.WorkflowGetDataObjectsRequest(iwfidl.WorkflowGetDataObjectsRequest{
WorkflowId: wfId,
- AttributeKeys: []string{
- attribute.TestQueryAttributeKey,
+ Keys: []string{
+ persistence.TestDataObjectKey,
},
}).Execute()
@@ -77,7 +77,7 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
log.Fatalf("Fail to invoke query workflow for sigle attr %v %v", err, httpResp2)
}
- queryResult2, httpResp2, err := reqQry.WorkflowGetQueryAttributesRequest(iwfidl.WorkflowGetQueryAttributesRequest{
+ queryResult2, httpResp2, err := reqQry.WorkflowGetDataObjectsRequest(iwfidl.WorkflowGetDataObjectsRequest{
WorkflowId: wfId,
}).Execute()
@@ -89,9 +89,9 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
searchResult1, httpSearchResponse1, err := reqSearch.WorkflowGetSearchAttributesRequest(iwfidl.WorkflowGetSearchAttributesRequest{
WorkflowId: wfId,
WorkflowRunId: &wfResponse.WorkflowRunId,
- AttributeKeys: []iwfidl.SearchAttributeKeyAndType{
+ Keys: []iwfidl.SearchAttributeKeyAndType{
{
- Key: iwfidl.PtrString(attribute.TestSearchAttributeKeywordKey),
+ Key: iwfidl.PtrString(persistence.TestSearchAttributeKeywordKey),
ValueType: iwfidl.PtrString(service.SearchAttributeValueTypeKeyword),
},
},
@@ -104,9 +104,9 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
searchResult2, httpSearchResponse2, err := reqSearch.WorkflowGetSearchAttributesRequest(iwfidl.WorkflowGetSearchAttributesRequest{
WorkflowId: wfId,
WorkflowRunId: &wfResponse.WorkflowRunId,
- AttributeKeys: []iwfidl.SearchAttributeKeyAndType{
+ Keys: []iwfidl.SearchAttributeKeyAndType{
{
- Key: iwfidl.PtrString(attribute.TestSearchAttributeIntKey),
+ Key: iwfidl.PtrString(persistence.TestSearchAttributeIntKey),
ValueType: iwfidl.PtrString(service.SearchAttributeValueTypeInt),
},
},
@@ -126,7 +126,7 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
"S2_decide": 1,
}, history, "attribute test fail, %v", history)
- if attribute.EnableTestingSearchAttribute {
+ if persistence.EnableTestingSearchAttribute {
assertions.Equal(map[string]interface{}{
"S1_decide_intSaFounds": 1,
"S1_decide_kwSaFounds": 1,
@@ -161,23 +161,23 @@ func doTestAttributeWorkflow(t *testing.T, backendType service.BackendType) {
expected := []iwfidl.KeyValue{
{
- Key: iwfidl.PtrString(attribute.TestQueryAttributeKey),
- Value: &attribute.TestQueryVal2,
+ Key: iwfidl.PtrString(persistence.TestDataObjectKey),
+ Value: &persistence.TestDataObjectVal2,
},
}
- assertions.Equal(expected, queryResult2.GetQueryAttributes())
- assertions.Equal(expected, queryResult1.GetQueryAttributes())
+ assertions.Equal(expected, queryResult2.GetObjects())
+ assertions.Equal(expected, queryResult1.GetObjects())
expectedSearchAttributeInt := iwfidl.SearchAttribute{
- Key: iwfidl.PtrString(attribute.TestSearchAttributeIntKey),
+ Key: iwfidl.PtrString(persistence.TestSearchAttributeIntKey),
ValueType: iwfidl.PtrString(service.SearchAttributeValueTypeInt),
- IntegerValue: iwfidl.PtrInt64(attribute.TestSearchAttributeIntValue2),
+ IntegerValue: iwfidl.PtrInt64(persistence.TestSearchAttributeIntValue2),
}
expectedSearchAttributeKeyword := iwfidl.SearchAttribute{
- Key: iwfidl.PtrString(attribute.TestSearchAttributeKeywordKey),
+ Key: iwfidl.PtrString(persistence.TestSearchAttributeKeywordKey),
ValueType: iwfidl.PtrString(service.SearchAttributeValueTypeKeyword),
- StringValue: iwfidl.PtrString(attribute.TestSearchAttributeKeywordValue2),
+ StringValue: iwfidl.PtrString(persistence.TestSearchAttributeKeywordValue2),
}
assertions.Equal([]iwfidl.SearchAttribute{expectedSearchAttributeKeyword}, searchResult1.GetSearchAttributes())
diff --git a/integ/workflow/attribute/routers.go b/integ/workflow/persistence/routers.go
similarity index 80%
rename from integ/workflow/attribute/routers.go
rename to integ/workflow/persistence/routers.go
index 500353ec..5604327d 100644
--- a/integ/workflow/attribute/routers.go
+++ b/integ/workflow/persistence/routers.go
@@ -1,4 +1,4 @@
-package attribute
+package persistence
import (
"github.com/gin-gonic/gin"
@@ -12,11 +12,11 @@ import (
const (
EnableTestingSearchAttribute = true
- WorkflowType = "attribute"
- State1 = "S1"
- State2 = "S2"
- TestQueryAttributeKey = "test-query-attribute"
- TestStateLocalAttributeKey = "test-state-local-attribute"
+ WorkflowType = "persistence"
+ State1 = "S1"
+ State2 = "S2"
+ TestDataObjectKey = "test-data-object"
+ TestStateLocalKey = "test-state-local"
TestSearchAttributeKeywordKey = "CustomKeywordField"
TestSearchAttributeKeywordValue1 = "keyword-value1"
@@ -26,17 +26,17 @@ const (
TestSearchAttributeIntValue2 = 2
)
-var TestQueryVal1 = iwfidl.EncodedObject{
+var TestDataObjectVal1 = iwfidl.EncodedObject{
Encoding: iwfidl.PtrString("json"),
- Data: iwfidl.PtrString("test-query-value1"),
+ Data: iwfidl.PtrString("test-data-object-value1"),
}
-var TestQueryVal2 = iwfidl.EncodedObject{
+var TestDataObjectVal2 = iwfidl.EncodedObject{
Encoding: iwfidl.PtrString("json"),
- Data: iwfidl.PtrString("test-query-value2"),
+ Data: iwfidl.PtrString("test-data-object-value2"),
}
-var testStateLocalAttributeVal = iwfidl.EncodedObject{
+var testStateLocalVal = iwfidl.EncodedObject{
Encoding: iwfidl.PtrString("json"),
Data: iwfidl.PtrString("test-state-local-value"),
}
@@ -85,17 +85,17 @@ func (h *handler) ApiV1WorkflowStateStart(c *gin.Context) {
CommandRequest: &iwfidl.CommandRequest{
DeciderTriggerType: service.DeciderTypeAllCommandCompleted,
},
- UpsertQueryAttributes: []iwfidl.KeyValue{
+ UpsertDataObjects: []iwfidl.KeyValue{
{
- Key: iwfidl.PtrString(TestQueryAttributeKey),
- Value: &TestQueryVal1,
+ Key: iwfidl.PtrString(TestDataObjectKey),
+ Value: &TestDataObjectVal1,
},
},
UpsertSearchAttributes: sa,
- UpsertStateLocalAttributes: []iwfidl.KeyValue{
+ UpsertStateLocals: []iwfidl.KeyValue{
{
- Key: iwfidl.PtrString(TestStateLocalAttributeKey),
- Value: &testStateLocalAttributeVal,
+ Key: iwfidl.PtrString(TestStateLocalKey),
+ Value: &testStateLocalVal,
},
},
})
@@ -117,9 +117,9 @@ func (h *handler) ApiV1WorkflowStateStart(c *gin.Context) {
h.invokeData["S2_start_intSaFounds"] = intSaFounds
queryAttFound := false
- queryAtt := req.GetQueryAttributes()[0]
+ queryAtt := req.GetDataObjects()[0]
value := queryAtt.GetValue()
- if queryAtt.GetKey() == TestQueryAttributeKey && value.GetData() == TestQueryVal2.GetData() && value.GetEncoding() == TestQueryVal2.GetEncoding() {
+ if queryAtt.GetKey() == TestDataObjectKey && value.GetData() == TestDataObjectVal2.GetData() && value.GetEncoding() == TestDataObjectVal2.GetEncoding() {
queryAttFound = true
}
h.invokeData["S2_start_queryAttFound"] = queryAttFound
@@ -162,17 +162,17 @@ func (h *handler) ApiV1WorkflowStateDecide(c *gin.Context) {
h.invokeData["S1_decide_intSaFounds"] = intSaFounds
queryAttFound := false
- queryAtt := req.GetQueryAttributes()[0]
+ queryAtt := req.GetDataObjects()[0]
value := queryAtt.GetValue()
- if queryAtt.GetKey() == TestQueryAttributeKey && value.GetData() == TestQueryVal1.GetData() && value.GetEncoding() == TestQueryVal1.GetEncoding() {
+ if queryAtt.GetKey() == TestDataObjectKey && value.GetData() == TestDataObjectVal1.GetData() && value.GetEncoding() == TestDataObjectVal1.GetEncoding() {
queryAttFound = true
}
h.invokeData["S1_decide_queryAttFound"] = queryAttFound
localAttFound := false
- localAtt := req.GetStateLocalAttributes()[0]
+ localAtt := req.GetStateLocals()[0]
value = localAtt.GetValue()
- if localAtt.GetKey() == TestStateLocalAttributeKey && value.GetData() == testStateLocalAttributeVal.GetData() && value.GetEncoding() == testStateLocalAttributeVal.GetEncoding() {
+ if localAtt.GetKey() == TestStateLocalKey && value.GetData() == testStateLocalVal.GetData() && value.GetEncoding() == testStateLocalVal.GetEncoding() {
localAttFound = true
}
h.invokeData["S1_decide_localAttFound"] = localAttFound
@@ -201,10 +201,10 @@ func (h *handler) ApiV1WorkflowStateDecide(c *gin.Context) {
},
},
},
- UpsertQueryAttributes: []iwfidl.KeyValue{
+ UpsertDataObjects: []iwfidl.KeyValue{
{
- Key: iwfidl.PtrString(TestQueryAttributeKey),
- Value: &TestQueryVal2,
+ Key: iwfidl.PtrString(TestDataObjectKey),
+ Value: &TestDataObjectVal2,
},
},
UpsertSearchAttributes: sa,
@@ -226,9 +226,9 @@ func (h *handler) ApiV1WorkflowStateDecide(c *gin.Context) {
h.invokeData["S2_decide_intSaFounds"] = intSaFounds
queryAttFound := false
- queryAtt := req.GetQueryAttributes()[0]
+ queryAtt := req.GetDataObjects()[0]
value := queryAtt.GetValue()
- if queryAtt.GetKey() == TestQueryAttributeKey && value.GetData() == TestQueryVal2.GetData() && value.GetEncoding() == TestQueryVal2.GetEncoding() {
+ if queryAtt.GetKey() == TestDataObjectKey && value.GetData() == TestDataObjectVal2.GetData() && value.GetEncoding() == TestDataObjectVal2.GetEncoding() {
queryAttFound = true
}
h.invokeData["S2_decide_queryAttFound"] = queryAttFound
diff --git a/iwf-idl b/iwf-idl
index 80e3296a..df6cb929 160000
--- a/iwf-idl
+++ b/iwf-idl
@@ -1 +1 @@
-Subproject commit 80e3296a2fea1c5bff83eab32ec37b945562df3c
+Subproject commit df6cb929147786ac5964fb9f3939ff6e60858003
diff --git a/service/api/cadence/client.go b/service/api/cadence/client.go
index 609b20b2..66c7489b 100644
--- a/service/api/cadence/client.go
+++ b/service/api/cadence/client.go
@@ -218,8 +218,7 @@ func (t *cadenceClient) ResetWorkflow(ctx context.Context, request iwfidl.Workfl
resetType := service.ResetType(request.GetResetType())
resetBaseRunID, decisionFinishID, err := getResetIDsByType(ctx, resetType, t.domain, request.GetWorkflowId(),
- reqRunId, t.serviceClient, request.GetResetBadBinaryChecksum(),
- request.GetEarliestTime(), request.GetHistoryEventId(), request.GetDecisionOffset())
+ reqRunId, t.serviceClient, request.GetHistoryEventId(), request.GetHistoryEventTime())
if err != nil {
return "", err
diff --git a/service/api/cadence/reset.go b/service/api/cadence/reset.go
index 6e6f1edc..c22e0e86 100644
--- a/service/api/cadence/reset.go
+++ b/service/api/cadence/reset.go
@@ -7,7 +7,6 @@ import (
"github.com/indeedeng/iwf/service"
"go.uber.org/cadence/.gen/go/cadence/workflowserviceclient"
"go.uber.org/cadence/.gen/go/shared"
- "math"
"regexp"
"strconv"
"time"
@@ -18,8 +17,7 @@ func getResetIDsByType(
resetType service.ResetType,
domain, wid, rid string,
frontendClient workflowserviceclient.Interface,
- binCheckSum, earliestTimeStr string,
- historyEventId, decisionOffset int32,
+ historyEventId int32, earliestHistoryTimeStr string,
) (resetBaseRunID string, decisionFinishID int64, err error) {
// default to the same runID
resetBaseRunID = rid
@@ -28,30 +26,14 @@ func getResetIDsByType(
case service.ResetTypeHistoryEventId:
decisionFinishID = int64(historyEventId)
return
- case service.ResetTypeLastDecisionCompleted:
- decisionFinishID, err = getLastDecisionTaskByType(ctx, domain, wid, rid, frontendClient, shared.EventTypeDecisionTaskCompleted, int(decisionOffset))
- if err != nil {
- return
- }
- case service.ResetTypeLastContinuedAsNew:
- // this reset type may change the base runID
- resetBaseRunID, decisionFinishID, err = getLastContinueAsNewID(ctx, domain, wid, rid, frontendClient)
- if err != nil {
- return
- }
- case service.ResetTypeFirstDecisionCompleted:
+ case service.ResetTypeBeginning:
decisionFinishID, err = getFirstDecisionTaskByType(ctx, domain, wid, rid, frontendClient, shared.EventTypeDecisionTaskCompleted)
if err != nil {
return
}
- case service.ResetTypeBadBinary:
- decisionFinishID, err = getBadDecisionCompletedID(ctx, domain, wid, rid, binCheckSum, frontendClient)
- if err != nil {
- return
- }
- case service.ResetTypeDecisionCompletedTime:
+ case service.ResetTypeHistoryEventTime:
var earliestTime int64
- earliestTime, err = parseTime(earliestTimeStr)
+ earliestTime, err = parseTime(earliestHistoryTimeStr)
if err != nil {
return
}
@@ -59,20 +41,6 @@ func getResetIDsByType(
if err != nil {
return
}
- case service.ResetTypeFirstDecisionScheduled:
- decisionFinishID, err = getFirstDecisionTaskByType(ctx, domain, wid, rid, frontendClient, shared.EventTypeDecisionTaskScheduled)
- if err != nil {
- return
- }
- // decisionFinishID is exclusive in reset API
- decisionFinishID++
- case service.ResetTypeLastDecisionScheduled:
- decisionFinishID, err = getLastDecisionTaskByType(ctx, domain, wid, rid, frontendClient, shared.EventTypeDecisionTaskScheduled, int(decisionOffset))
- if err != nil {
- return
- }
- // decisionFinishID is exclusive in reset API
- decisionFinishID++
default:
err = fmt.Errorf("not supported resetType")
}
@@ -123,150 +91,6 @@ func getFirstDecisionTaskByType(
return
}
-func getCurrentRunID(ctx context.Context, domain, wid string, frontendClient workflowserviceclient.Interface) (string, error) {
- resp, err := frontendClient.DescribeWorkflowExecution(ctx, &shared.DescribeWorkflowExecutionRequest{
- Domain: &domain,
- Execution: &shared.WorkflowExecution{
- WorkflowId: &wid,
- },
- })
- if err != nil {
- return "", err
- }
- return resp.WorkflowExecutionInfo.Execution.GetRunId(), nil
-}
-
-func getBadDecisionCompletedID(ctx context.Context, domain, wid, rid, binChecksum string, frontendClient workflowserviceclient.Interface) (decisionFinishID int64, err error) {
- resp, err := frontendClient.DescribeWorkflowExecution(ctx, &shared.DescribeWorkflowExecutionRequest{
- Domain: &domain,
- Execution: &shared.WorkflowExecution{
- WorkflowId: &wid,
- RunId: &rid,
- },
- })
- if err != nil {
- return 0, composeErrorWithMessage("DescribeWorkflowExecution failed", err)
- }
-
- _, p := findAutoResetPoint(&shared.BadBinaries{
- Binaries: map[string]*shared.BadBinaryInfo{
- binChecksum: {},
- },
- }, resp.WorkflowExecutionInfo.AutoResetPoints)
- if p != nil {
- decisionFinishID = p.GetFirstDecisionCompletedId()
- }
-
- if decisionFinishID == 0 {
- return 0, composeErrorWithMessage("Get DecisionFinishID failed", &shared.BadRequestError{Message: "no DecisionFinishID"})
- }
- return
-}
-
-func getLastDecisionTaskByType(
- ctx context.Context,
- domain string,
- workflowID string,
- runID string,
- frontendClient workflowserviceclient.Interface,
- decisionType shared.EventType,
- decisionOffset int,
-) (int64, error) {
-
- // this fixedSizeQueue is for remembering the offset decision eventID
- fixedSizeQueue := make([]int64, 0)
- size := int(math.Abs(float64(decisionOffset))) + 1
-
- req := &shared.GetWorkflowExecutionHistoryRequest{
- Domain: &domain,
- Execution: &shared.WorkflowExecution{
- WorkflowId: &workflowID,
- RunId: &runID,
- },
- MaximumPageSize: iwfidl.PtrInt32(1000),
- NextPageToken: nil,
- }
-
- for {
- resp, err := frontendClient.GetWorkflowExecutionHistory(ctx, req)
- if err != nil {
- return 0, composeErrorWithMessage("GetWorkflowExecutionHistory failed", err)
- }
-
- for _, e := range resp.GetHistory().GetEvents() {
- if e.GetEventType() == decisionType {
- decisionEventID := e.GetEventId()
- fixedSizeQueue = append(fixedSizeQueue, decisionEventID)
- if len(fixedSizeQueue) > size {
- fixedSizeQueue = fixedSizeQueue[1:]
- }
- }
- }
-
- if len(resp.NextPageToken) != 0 {
- req.NextPageToken = resp.NextPageToken
- } else {
- break
- }
- }
- if len(fixedSizeQueue) == 0 {
- return 0, composeErrorWithMessage("Get DecisionFinishID failed", fmt.Errorf("no DecisionFinishID"))
- }
- return fixedSizeQueue[0], nil
-}
-
-func getLastContinueAsNewID(ctx context.Context, domain, wid, rid string, frontendClient workflowserviceclient.Interface) (resetBaseRunID string, decisionFinishID int64, err error) {
- // get first event
- req := &shared.GetWorkflowExecutionHistoryRequest{
- Domain: &domain,
- Execution: &shared.WorkflowExecution{
- WorkflowId: &wid,
- RunId: &rid,
- },
- MaximumPageSize: iwfidl.PtrInt32(1),
- NextPageToken: nil,
- }
- resp, err := frontendClient.GetWorkflowExecutionHistory(ctx, req)
- if err != nil {
- return "", 0, composeErrorWithMessage("GetWorkflowExecutionHistory failed", err)
- }
- firstEvent := resp.History.Events[0]
- resetBaseRunID = firstEvent.GetWorkflowExecutionStartedEventAttributes().GetContinuedExecutionRunId()
- if resetBaseRunID == "" {
- return "", 0, composeErrorWithMessage("GetWorkflowExecutionHistory failed", fmt.Errorf("cannot get resetBaseRunID"))
- }
-
- req = &shared.GetWorkflowExecutionHistoryRequest{
- Domain: &domain,
- Execution: &shared.WorkflowExecution{
- WorkflowId: &wid,
- RunId: &resetBaseRunID,
- },
- MaximumPageSize: iwfidl.PtrInt32(1000),
- NextPageToken: nil,
- }
- for {
- resp, err := frontendClient.GetWorkflowExecutionHistory(ctx, req)
- if err != nil {
- return "", 0, composeErrorWithMessage("GetWorkflowExecutionHistory failed", err)
- }
- for _, e := range resp.GetHistory().GetEvents() {
- if e.GetEventType() == shared.EventTypeDecisionTaskCompleted {
- decisionFinishID = e.GetEventId()
- }
- }
- if len(resp.NextPageToken) != 0 {
- req.NextPageToken = resp.NextPageToken
- } else {
- break
- }
- }
- if decisionFinishID == 0 {
- return "", 0, composeErrorWithMessage("Get DecisionFinishID failed", fmt.Errorf("no DecisionFinishID"))
- }
- return
-}
-
func getEarliestDecisionID(
ctx context.Context,
domain string, wid string,
@@ -444,24 +268,3 @@ func composeErrorWithMessage(msg string, err error) error {
err = fmt.Errorf("%v, %v", msg, err)
return err
}
-
-func findAutoResetPoint(
- badBinaries *shared.BadBinaries,
- autoResetPoints *shared.ResetPoints,
-) (string, *shared.ResetPointInfo) {
- if badBinaries == nil || badBinaries.Binaries == nil || autoResetPoints == nil || autoResetPoints.Points == nil {
- return "", nil
- }
- nowNano := time.Now().UnixNano()
- for _, p := range autoResetPoints.Points {
- bin, ok := badBinaries.Binaries[p.GetBinaryChecksum()]
- if ok && p.GetResettable() {
- if p.GetExpiringTimeNano() > 0 && nowNano > p.GetExpiringTimeNano() {
- // reset point has expired and we may already deleted the history
- continue
- }
- return bin.GetReason(), p
- }
- }
- return "", nil
-}
diff --git a/service/api/handler.go b/service/api/handler.go
index c5c08316..fcefe52f 100644
--- a/service/api/handler.go
+++ b/service/api/handler.go
@@ -68,15 +68,15 @@ func (h *handler) apiV1WorkflowSignal(c *gin.Context) {
return
}
-func (h *handler) apiV1WorkflowCancel(c *gin.Context) {
- var req iwfidl.WorkflowCancelRequest
+func (h *handler) apiV1WorkflowStop(c *gin.Context) {
+ var req iwfidl.WorkflowStopRequest
if err := c.ShouldBindJSON(&req); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
log.Println("received API request", req)
- errResp := h.svc.ApiV1WorkflowCancelPost(req)
+ errResp := h.svc.ApiV1WorkflowStopPost(req)
if errResp != nil {
h.processError(c, errResp)
return
@@ -102,8 +102,8 @@ func (h *handler) apiV1WorkflowSearch(c *gin.Context) {
return
}
-func (h *handler) apiV1WorkflowGetQueryAttributes(c *gin.Context) {
- var req iwfidl.WorkflowGetQueryAttributesRequest
+func (h *handler) apiV1WorkflowGetDataObjects(c *gin.Context) {
+ var req iwfidl.WorkflowGetDataObjectsRequest
if err := c.ShouldBindJSON(&req); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
diff --git a/service/api/interfaces.go b/service/api/interfaces.go
index b1aff38c..e836cdec 100644
--- a/service/api/interfaces.go
+++ b/service/api/interfaces.go
@@ -10,8 +10,8 @@ import (
type ApiService interface {
ApiV1WorkflowStartPost(request iwfidl.WorkflowStartRequest) (*iwfidl.WorkflowStartResponse, *ErrorAndStatus)
ApiV1WorkflowSignalPost(request iwfidl.WorkflowSignalRequest) *ErrorAndStatus
- ApiV1WorkflowCancelPost(request iwfidl.WorkflowCancelRequest) *ErrorAndStatus
- ApiV1WorkflowGetQueryAttributesPost(request iwfidl.WorkflowGetQueryAttributesRequest) (*iwfidl.WorkflowGetQueryAttributesResponse, *ErrorAndStatus)
+ ApiV1WorkflowStopPost(request iwfidl.WorkflowStopRequest) *ErrorAndStatus
+ ApiV1WorkflowGetQueryAttributesPost(request iwfidl.WorkflowGetDataObjectsRequest) (*iwfidl.WorkflowGetDataObjectsResponse, *ErrorAndStatus)
ApiV1WorkflowGetSearchAttributesPost(request iwfidl.WorkflowGetSearchAttributesRequest) (*iwfidl.WorkflowGetSearchAttributesResponse, *ErrorAndStatus)
ApiV1WorkflowGetPost(request iwfidl.WorkflowGetRequest) (*iwfidl.WorkflowGetResponse, *ErrorAndStatus)
ApiV1WorkflowGetWithWaitPost(request iwfidl.WorkflowGetRequest) (*iwfidl.WorkflowGetResponse, *ErrorAndStatus)
diff --git a/service/api/routers.go b/service/api/routers.go
index 12c4fb89..8608117d 100644
--- a/service/api/routers.go
+++ b/service/api/routers.go
@@ -6,13 +6,13 @@ import (
const WorkflowStartApiPath = "/api/v1/workflow/start"
const WorkflowSignalApiPath = "/api/v1/workflow/signal"
-const WorkflowGetQueryAttributesApiPath = "/api/v1/workflow/queryattributes/get"
+const WorkflowGetDataObjectsApiPath = "/api/v1/workflow/dataobjects/get"
const WorkflowGetSearchAttributesApiPath = "/api/v1/workflow/searchattributes/get"
const WorkflowGetApiPath = "/api/v1/workflow/get"
const WorkflowGetWithWaitApiPath = "/api/v1/workflow/getWithWait"
const WorkflowSearchApiPath = "/api/v1/workflow/search"
const WorkflowResetApiPath = "/api/v1/workflow/reset"
-const WorkflowCancelApiPath = "/api/v1/workflow/cancel"
+const WorkflowStopApiPath = "/api/v1/workflow/stop"
// NewService returns a new router.
func NewService(client UnifiedClient) *gin.Engine {
@@ -23,13 +23,13 @@ func NewService(client UnifiedClient) *gin.Engine {
router.GET("/", handler.index)
router.POST(WorkflowStartApiPath, handler.apiV1WorkflowStart)
router.POST(WorkflowSignalApiPath, handler.apiV1WorkflowSignal)
- router.POST(WorkflowGetQueryAttributesApiPath, handler.apiV1WorkflowGetQueryAttributes)
+ router.POST(WorkflowGetDataObjectsApiPath, handler.apiV1WorkflowGetDataObjects)
router.POST(WorkflowGetSearchAttributesApiPath, handler.apiV1WorkflowGetSearchAttributes)
router.POST(WorkflowGetApiPath, handler.apiV1WorkflowGet)
router.POST(WorkflowGetWithWaitApiPath, handler.apiV1WorkflowGetWithWait)
router.POST(WorkflowSearchApiPath, handler.apiV1WorkflowSearch)
router.POST(WorkflowResetApiPath, handler.apiV1WorkflowReset)
- router.POST(WorkflowCancelApiPath, handler.apiV1WorkflowCancel)
+ router.POST(WorkflowStopApiPath, handler.apiV1WorkflowStop)
return router
}
diff --git a/service/api/service.go b/service/api/service.go
index 68a3816d..e019fe76 100644
--- a/service/api/service.go
+++ b/service/api/service.go
@@ -70,7 +70,7 @@ func (s *serviceImpl) ApiV1WorkflowSignalPost(req iwfidl.WorkflowSignalRequest)
return nil
}
-func (s *serviceImpl) ApiV1WorkflowCancelPost(req iwfidl.WorkflowCancelRequest) *ErrorAndStatus {
+func (s *serviceImpl) ApiV1WorkflowStopPost(req iwfidl.WorkflowStopRequest) *ErrorAndStatus {
err := s.client.CancelWorkflow(context.Background(), req.GetWorkflowId(), req.GetWorkflowRunId())
if err != nil {
return s.handleError(err)
@@ -78,20 +78,20 @@ func (s *serviceImpl) ApiV1WorkflowCancelPost(req iwfidl.WorkflowCancelRequest)
return nil
}
-func (s *serviceImpl) ApiV1WorkflowGetQueryAttributesPost(req iwfidl.WorkflowGetQueryAttributesRequest) (*iwfidl.WorkflowGetQueryAttributesResponse, *ErrorAndStatus) {
- var queryResult1 service.QueryAttributeResponse
+func (s *serviceImpl) ApiV1WorkflowGetQueryAttributesPost(req iwfidl.WorkflowGetDataObjectsRequest) (*iwfidl.WorkflowGetDataObjectsResponse, *ErrorAndStatus) {
+ var queryResult1 service.GetDataObjectsQueryResponse
err := s.client.QueryWorkflow(context.Background(), &queryResult1,
- req.GetWorkflowId(), req.GetWorkflowRunId(), service.AttributeQueryType,
- service.QueryAttributeRequest{
- Keys: req.AttributeKeys,
+ req.GetWorkflowId(), req.GetWorkflowRunId(), service.GetDataObjectsWorkflowQueryType,
+ service.GetDataObjectsQueryRequest{
+ Keys: req.Keys,
})
if err != nil {
return nil, s.handleError(err)
}
- return &iwfidl.WorkflowGetQueryAttributesResponse{
- QueryAttributes: queryResult1.AttributeValues,
+ return &iwfidl.WorkflowGetDataObjectsResponse{
+ Objects: queryResult1.DataObjects,
}, nil
}
@@ -102,7 +102,7 @@ func (s *serviceImpl) ApiV1WorkflowGetSearchAttributesPost(req iwfidl.WorkflowGe
}
searchAttributes := []iwfidl.SearchAttribute{}
- for _, v := range req.AttributeKeys {
+ for _, v := range req.Keys {
searchAttribute, exist := response.SearchAttributes[*v.Key]
if exist {
searchAttributes = append(searchAttributes, searchAttribute)
diff --git a/service/const.go b/service/const.go
index 312ffa19..b0587510 100644
--- a/service/const.go
+++ b/service/const.go
@@ -24,7 +24,7 @@ const (
SearchAttributeValueTypeKeyword = "KEYWORD"
SearchAttributeValueTypeInt = "INT"
- AttributeQueryType = "GetQueryAttributes"
+ GetDataObjectsWorkflowQueryType = "GetDataObjects"
WorkflowErrorTypeUserWorkflowDecision = "UserWorkflowDecision"
WorkflowErrorTypeUserWorkflowError = "UserWorkflowError"
@@ -56,10 +56,5 @@ const BackendTypeTemporal BackendType = "temporal"
type ResetType string
const ResetTypeHistoryEventId ResetType = "HISTORY_EVENT_ID"
-const ResetTypeFirstDecisionCompleted ResetType = "FIRST_DECISION_COMPLETED"
-const ResetTypeLastDecisionCompleted ResetType = "LAST_DECISION_COMPLETED"
-const ResetTypeLastContinuedAsNew ResetType = "LAST_CONTINUED_AS_NEW"
-const ResetTypeBadBinary ResetType = "BAD_BINARY"
-const ResetTypeDecisionCompletedTime ResetType = "DECISION_COMPLETED_TIME"
-const ResetTypeFirstDecisionScheduled ResetType = "FIRST_DECISION_SCHEDULED"
-const ResetTypeLastDecisionScheduled ResetType = "LAST_DECISION_SCHEDULED"
+const ResetTypeBeginning ResetType = "BEGINNING"
+const ResetTypeHistoryEventTime ResetType = "HISTORY_EVENT_TIME"
diff --git a/service/interfaces.go b/service/interfaces.go
index ab666dd2..34601099 100644
--- a/service/interfaces.go
+++ b/service/interfaces.go
@@ -39,11 +39,11 @@ type (
StartedTimestamp int64
}
- QueryAttributeRequest struct {
+ GetDataObjectsQueryRequest struct {
Keys []string
}
- QueryAttributeResponse struct {
- AttributeValues []iwfidl.KeyValue
+ GetDataObjectsQueryResponse struct {
+ DataObjects []iwfidl.KeyValue
}
)
diff --git a/service/interpreter/attributes.go b/service/interpreter/persistence.go
similarity index 59%
rename from service/interpreter/attributes.go
rename to service/interpreter/persistence.go
index 840f449f..c487a049 100644
--- a/service/interpreter/attributes.go
+++ b/service/interpreter/persistence.go
@@ -6,21 +6,21 @@ import (
"github.com/indeedeng/iwf/service"
)
-type AttributeManager struct {
- queryAttributes map[string]iwfidl.KeyValue
+type PersistenceManager struct {
+ dataObjects map[string]iwfidl.KeyValue
searchAttributes map[string]iwfidl.SearchAttribute
searchAttributeUpserter func(attributes map[string]interface{}) error
}
-func NewAttributeManager(searchAttributeUpserter func(attributes map[string]interface{}) error) *AttributeManager {
- return &AttributeManager{
- queryAttributes: make(map[string]iwfidl.KeyValue),
+func NewPersistenceManager(searchAttributeUpserter func(attributes map[string]interface{}) error) *PersistenceManager {
+ return &PersistenceManager{
+ dataObjects: make(map[string]iwfidl.KeyValue),
searchAttributes: make(map[string]iwfidl.SearchAttribute),
searchAttributeUpserter: searchAttributeUpserter,
}
}
-func (am *AttributeManager) GetQueryAttributesByKey(request service.QueryAttributeRequest) service.QueryAttributeResponse {
+func (am *PersistenceManager) GetDataObjectsByKey(request service.GetDataObjectsQueryRequest) service.GetDataObjectsQueryResponse {
all := false
if len(request.Keys) == 0 {
all = true
@@ -30,17 +30,17 @@ func (am *AttributeManager) GetQueryAttributesByKey(request service.QueryAttribu
for _, k := range request.Keys {
keyMap[k] = true
}
- for key, value := range am.queryAttributes {
+ for key, value := range am.dataObjects {
if keyMap[key] || all {
res = append(res, value)
}
}
- return service.QueryAttributeResponse{
- AttributeValues: res,
+ return service.GetDataObjectsQueryResponse{
+ DataObjects: res,
}
}
-func (am *AttributeManager) GetAllSearchAttributes() []iwfidl.SearchAttribute {
+func (am *PersistenceManager) GetAllSearchAttributes() []iwfidl.SearchAttribute {
var res []iwfidl.SearchAttribute
for _, value := range am.searchAttributes {
res = append(res, value)
@@ -48,15 +48,15 @@ func (am *AttributeManager) GetAllSearchAttributes() []iwfidl.SearchAttribute {
return res
}
-func (am *AttributeManager) GetAllQueryAttributes() []iwfidl.KeyValue {
+func (am *PersistenceManager) GetAllDataObjects() []iwfidl.KeyValue {
var res []iwfidl.KeyValue
- for _, value := range am.queryAttributes {
+ for _, value := range am.dataObjects {
res = append(res, value)
}
return res
}
-func (am *AttributeManager) ProcessUpsertSearchAttribute(attributes []iwfidl.SearchAttribute) error {
+func (am *PersistenceManager) ProcessUpsertSearchAttribute(attributes []iwfidl.SearchAttribute) error {
if len(attributes) == 0 {
return nil
}
@@ -76,9 +76,9 @@ func (am *AttributeManager) ProcessUpsertSearchAttribute(attributes []iwfidl.Sea
return am.searchAttributeUpserter(attrsToUpsert)
}
-func (am *AttributeManager) ProcessUpsertQueryAttribute(attributes []iwfidl.KeyValue) error {
+func (am *PersistenceManager) ProcessUpsertDataObject(attributes []iwfidl.KeyValue) error {
for _, attr := range attributes {
- am.queryAttributes[attr.GetKey()] = attr
+ am.dataObjects[attr.GetKey()] = attr
}
return nil
}
diff --git a/service/interpreter/workflowImpl.go b/service/interpreter/workflowImpl.go
index 67cce28e..faad3278 100644
--- a/service/interpreter/workflowImpl.go
+++ b/service/interpreter/workflowImpl.go
@@ -39,12 +39,12 @@ func InterpreterImpl(ctx UnifiedContext, provider WorkflowProvider, input servic
NextStateInput: &input.StateInput,
},
}
- attrMgr := NewAttributeManager(func(attributes map[string]interface{}) error {
+ persistenceManager := NewPersistenceManager(func(attributes map[string]interface{}) error {
return provider.UpsertSearchAttributes(ctx, attributes)
})
- err = provider.SetQueryHandler(ctx, service.AttributeQueryType, func(req service.QueryAttributeRequest) (service.QueryAttributeResponse, error) {
- return attrMgr.GetQueryAttributesByKey(req), nil
+ err = provider.SetQueryHandler(ctx, service.GetDataObjectsWorkflowQueryType, func(req service.GetDataObjectsQueryRequest) (service.GetDataObjectsQueryResponse, error) {
+ return persistenceManager.GetDataObjectsByKey(req), nil
})
if err != nil {
return nil, err
@@ -87,7 +87,7 @@ func InterpreterImpl(ctx UnifiedContext, provider WorkflowProvider, input servic
}()
stateExeId := stateExeIdMgr.IncAndGetNextExecutionId(state.GetStateId())
- decision, err := executeState(ctx, provider, state, execution, stateExeId, attrMgr, interStateChannel)
+ decision, err := executeState(ctx, provider, state, execution, stateExeId, persistenceManager, interStateChannel)
if err != nil {
errToFailWf = err
}
@@ -181,7 +181,7 @@ func executeState(
state iwfidl.StateMovement,
execution service.IwfWorkflowExecution,
stateExeId string,
- attrMgr *AttributeManager,
+ attrMgr *PersistenceManager,
interStateChannel *InterStateChannel,
) (*iwfidl.StateDecision, error) {
ao := ActivityOptions{
@@ -204,8 +204,8 @@ func executeState(
WorkflowType: execution.WorkflowType,
WorkflowStateId: state.StateId,
StateInput: state.NextStateInput,
- SearchAttributes: attrMgr.GetAllSearchAttributes(),
- QueryAttributes: attrMgr.GetAllQueryAttributes(),
+ SearchAttributes: attrMgr.GetAllSearchAttributes(), // TODO support more loading policy
+ DataObjects: attrMgr.GetAllDataObjects(), // TODO support more loading policy
},
}).Get(ctx, &startResponse)
if err != nil {
@@ -216,7 +216,7 @@ func executeState(
if err != nil {
return nil, err
}
- err = attrMgr.ProcessUpsertQueryAttribute(startResponse.GetUpsertQueryAttributes())
+ err = attrMgr.ProcessUpsertDataObject(startResponse.GetUpsertDataObjects())
if err != nil {
return nil, err
}
@@ -393,14 +393,14 @@ func executeState(
err = provider.ExecuteActivity(ctx, StateDecide, provider.GetBackendType(), service.StateDecideActivityInput{
IwfWorkerUrl: execution.IwfWorkerUrl,
Request: iwfidl.WorkflowStateDecideRequest{
- Context: exeCtx,
- WorkflowType: execution.WorkflowType,
- WorkflowStateId: state.StateId,
- CommandResults: commandRes,
- StateLocalAttributes: startResponse.GetUpsertStateLocalAttributes(),
- SearchAttributes: attrMgr.GetAllSearchAttributes(),
- QueryAttributes: attrMgr.GetAllQueryAttributes(),
- StateInput: state.NextStateInput,
+ Context: exeCtx,
+ WorkflowType: execution.WorkflowType,
+ WorkflowStateId: state.StateId,
+ CommandResults: commandRes,
+ StateLocals: startResponse.GetUpsertStateLocals(),
+ SearchAttributes: attrMgr.GetAllSearchAttributes(), // TODO support more loading policy
+ DataObjects: attrMgr.GetAllDataObjects(), // TODO support more loading policy
+ StateInput: state.NextStateInput,
},
}).Get(ctx, &decideResponse)
if err != nil {
@@ -412,7 +412,7 @@ func executeState(
if err != nil {
return nil, err
}
- err = attrMgr.ProcessUpsertQueryAttribute(decideResponse.GetUpsertQueryAttributes())
+ err = attrMgr.ProcessUpsertDataObject(decideResponse.GetUpsertDataObjects())
if err != nil {
return nil, err
}