Skip to content

Commit

Permalink
add cron schedule and workflow id reuse policy (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
duoertai authored Nov 15, 2022
1 parent c7f1b47 commit 9a5c25e
Show file tree
Hide file tree
Showing 13 changed files with 389 additions and 10 deletions.
2 changes: 2 additions & 0 deletions gen/iwfidl/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ docs/WorkflowSearchRequest.md
docs/WorkflowSearchResponse.md
docs/WorkflowSearchResponseEntry.md
docs/WorkflowSignalRequest.md
docs/WorkflowStartOptions.md
docs/WorkflowStartRequest.md
docs/WorkflowStartResponse.md
docs/WorkflowStateDecideRequest.md
Expand Down Expand Up @@ -83,6 +84,7 @@ model_workflow_search_request.go
model_workflow_search_response.go
model_workflow_search_response_entry.go
model_workflow_signal_request.go
model_workflow_start_options.go
model_workflow_start_request.go
model_workflow_start_response.go
model_workflow_state_decide_request.go
Expand Down
1 change: 1 addition & 0 deletions gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Class | Method | HTTP request | Description
- [WorkflowSearchResponse](docs/WorkflowSearchResponse.md)
- [WorkflowSearchResponseEntry](docs/WorkflowSearchResponseEntry.md)
- [WorkflowSignalRequest](docs/WorkflowSignalRequest.md)
- [WorkflowStartOptions](docs/WorkflowStartOptions.md)
- [WorkflowStartRequest](docs/WorkflowStartRequest.md)
- [WorkflowStartResponse](docs/WorkflowStartResponse.md)
- [WorkflowStateDecideRequest](docs/WorkflowStateDecideRequest.md)
Expand Down
20 changes: 20 additions & 0 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,21 @@ components:
commandCarryOverPolicy:
$ref: '#/components/schemas/CommandCarryOverPolicy'
type: object
WorkflowStartOptions:
example:
workflowIDReusePolicy: ALLOW_DUPLICATE_FAILED_ONLY
cronSchedule: cronSchedule
properties:
workflowIDReusePolicy:
enum:
- ALLOW_DUPLICATE_FAILED_ONLY
- ALLOW_DUPLICATE
- REJECT_DUPLICATE
- TERMINATE_IF_RUNNING
type: string
cronSchedule:
type: string
type: object
AttributesLoadingPolicy:
example:
attributeLoadingType: LOAD_ALL_WITHOUT_LOCKING
Expand Down Expand Up @@ -364,6 +379,9 @@ components:
- attributeKeys
- attributeKeys
iwfWorkflowType: iwfWorkflowType
workflowStartOptions:
workflowIDReusePolicy: ALLOW_DUPLICATE_FAILED_ONLY
cronSchedule: cronSchedule
iwfWorkerUrl: iwfWorkerUrl
workflowId: workflowId
stateInput:
Expand All @@ -384,6 +402,8 @@ components:
$ref: '#/components/schemas/EncodedObject'
stateOptions:
$ref: '#/components/schemas/WorkflowStateOptions'
workflowStartOptions:
$ref: '#/components/schemas/WorkflowStartOptions'
required:
- iwfWorkerUrl
- iwfWorkflowType
Expand Down
82 changes: 82 additions & 0 deletions gen/iwfidl/docs/WorkflowStartOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# WorkflowStartOptions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**WorkflowIDReusePolicy** | Pointer to **string** | | [optional]
**CronSchedule** | Pointer to **string** | | [optional]

## Methods

### NewWorkflowStartOptions

`func NewWorkflowStartOptions() *WorkflowStartOptions`

NewWorkflowStartOptions instantiates a new WorkflowStartOptions 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

### NewWorkflowStartOptionsWithDefaults

`func NewWorkflowStartOptionsWithDefaults() *WorkflowStartOptions`

NewWorkflowStartOptionsWithDefaults instantiates a new WorkflowStartOptions 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

### GetWorkflowIDReusePolicy

`func (o *WorkflowStartOptions) GetWorkflowIDReusePolicy() string`

GetWorkflowIDReusePolicy returns the WorkflowIDReusePolicy field if non-nil, zero value otherwise.

### GetWorkflowIDReusePolicyOk

`func (o *WorkflowStartOptions) GetWorkflowIDReusePolicyOk() (*string, bool)`

GetWorkflowIDReusePolicyOk returns a tuple with the WorkflowIDReusePolicy field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetWorkflowIDReusePolicy

`func (o *WorkflowStartOptions) SetWorkflowIDReusePolicy(v string)`

SetWorkflowIDReusePolicy sets WorkflowIDReusePolicy field to given value.

### HasWorkflowIDReusePolicy

`func (o *WorkflowStartOptions) HasWorkflowIDReusePolicy() bool`

HasWorkflowIDReusePolicy returns a boolean if a field has been set.

### GetCronSchedule

`func (o *WorkflowStartOptions) GetCronSchedule() string`

GetCronSchedule returns the CronSchedule field if non-nil, zero value otherwise.

### GetCronScheduleOk

`func (o *WorkflowStartOptions) GetCronScheduleOk() (*string, bool)`

GetCronScheduleOk returns a tuple with the CronSchedule field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCronSchedule

`func (o *WorkflowStartOptions) SetCronSchedule(v string)`

SetCronSchedule sets CronSchedule field to given value.

### HasCronSchedule

`func (o *WorkflowStartOptions) HasCronSchedule() bool`

HasCronSchedule 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)


26 changes: 26 additions & 0 deletions gen/iwfidl/docs/WorkflowStartRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**StartStateId** | **string** | |
**StateInput** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
**StateOptions** | Pointer to [**WorkflowStateOptions**](WorkflowStateOptions.md) | | [optional]
**WorkflowStartOptions** | Pointer to [**WorkflowStartOptions**](WorkflowStartOptions.md) | | [optional]

## Methods

Expand Down Expand Up @@ -181,6 +182,31 @@ SetStateOptions sets StateOptions field to given value.

HasStateOptions returns a boolean if a field has been set.

### GetWorkflowStartOptions

`func (o *WorkflowStartRequest) GetWorkflowStartOptions() WorkflowStartOptions`

GetWorkflowStartOptions returns the WorkflowStartOptions field if non-nil, zero value otherwise.

### GetWorkflowStartOptionsOk

`func (o *WorkflowStartRequest) GetWorkflowStartOptionsOk() (*WorkflowStartOptions, bool)`

GetWorkflowStartOptionsOk returns a tuple with the WorkflowStartOptions field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetWorkflowStartOptions

`func (o *WorkflowStartRequest) SetWorkflowStartOptions(v WorkflowStartOptions)`

SetWorkflowStartOptions sets WorkflowStartOptions field to given value.

### HasWorkflowStartOptions

`func (o *WorkflowStartRequest) HasWorkflowStartOptions() bool`

HasWorkflowStartOptions 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)

Expand Down
151 changes: 151 additions & 0 deletions gen/iwfidl/model_workflow_start_options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions gen/iwfidl/model_workflow_start_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion iwf-idl
Submodule iwf-idl updated 2 files
+76 −0 CODE_OF_CONDUCT.md
+14 −0 iwf.yaml
Loading

0 comments on commit 9a5c25e

Please sign in to comment.