Skip to content

Commit 084c103

Browse files
committed
addess comments
1 parent 6cff06d commit 084c103

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

openapi/openapiv2.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6555,7 +6555,7 @@
65556555
},
65566556
"onConflictOptions": {
65576557
"$ref": "#/definitions/v1OnConflictOptions",
6558-
"description": "It defines behaviors to be executed when the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING\nconflict policy is used. If set to non-nil object, it will attach the RequestID to the\nexisting running workflow (for deduping), and perform actions specified in the object.\nIf not set (ie., nil value), it won't do anything to the existing running workflow."
6558+
"description": "It defines actions to be done to the existing running workflow when the conflict policy\nWORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a\nempty object (ie., all options with default value), it won't do anything to the existing\nrunning workflow. If set, it will add a history event to the running workflow."
65596559
}
65606560
}
65616561
},
@@ -9982,14 +9982,20 @@
99829982
"v1OnConflictOptions": {
99839983
"type": "object",
99849984
"properties": {
9985+
"attachRequestId": {
9986+
"type": "boolean",
9987+
"description": "Attaches the request ID to the running workflow."
9988+
},
99859989
"attachCompletionCallbacks": {
9986-
"type": "boolean"
9990+
"type": "boolean",
9991+
"description": "Attaches the completion callbacks to the running workflow."
99879992
},
99889993
"attachLinks": {
9989-
"type": "boolean"
9994+
"type": "boolean",
9995+
"description": "Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event."
99909996
}
99919997
},
9992-
"description": "When StartWorkflowExecution uses the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING conflict policy and\nthere is already an existing running workflow, OnConflictOptions defines actions to be taken on\nthe existing running workflow."
9998+
"description": "When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and\nthere is already an existing running workflow, OnConflictOptions defines actions to be taken on\nthe existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent\nhistory event in the running workflow with the changes requested in this object."
99939999
},
999410000
"v1Outcome": {
999510001
"type": "object",
@@ -12027,7 +12033,7 @@
1202712033
},
1202812034
"onConflictOptions": {
1202912035
"$ref": "#/definitions/v1OnConflictOptions",
12030-
"description": "It defines behaviors to be executed when the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING\nconflict policy is used. If set to non-nil object, it will attach the RequestID to the\nexisting running workflow (for deduping), and perform actions specified in the object.\nIf not set (ie., nil value), it won't do anything to the existing running workflow."
12036+
"description": "It defines actions to be done to the existing running workflow when the conflict policy\nWORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a\nempty object (ie., all options with default value), it won't do anything to the existing\nrunning workflow. If set, it will add a history event to the running workflow."
1203112037
}
1203212038
}
1203312039
},

openapi/openapiv3.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7446,14 +7446,20 @@ components:
74467446
OnConflictOptions:
74477447
type: object
74487448
properties:
7449+
attachRequestId:
7450+
type: boolean
7451+
description: Attaches the request ID to the running workflow.
74497452
attachCompletionCallbacks:
74507453
type: boolean
7454+
description: Attaches the completion callbacks to the running workflow.
74517455
attachLinks:
74527456
type: boolean
7457+
description: Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
74537458
description: |-
7454-
When StartWorkflowExecution uses the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING conflict policy and
7459+
When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
74557460
there is already an existing running workflow, OnConflictOptions defines actions to be taken on
7456-
the existing running workflow.
7461+
the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
7462+
history event in the running workflow with the changes requested in this object.
74577463
Outcome:
74587464
type: object
74597465
properties:
@@ -9397,10 +9403,10 @@ components:
93979403
allOf:
93989404
- $ref: '#/components/schemas/OnConflictOptions'
93999405
description: |-
9400-
It defines behaviors to be executed when the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING
9401-
conflict policy is used. If set to non-nil object, it will attach the RequestID to the
9402-
existing running workflow (for deduping), and perform actions specified in the object.
9403-
If not set (ie., nil value), it won't do anything to the existing running workflow.
9406+
It defines actions to be done to the existing running workflow when the conflict policy
9407+
WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a
9408+
empty object (ie., all options with default value), it won't do anything to the existing
9409+
running workflow. If set, it will add a history event to the running workflow.
94049410
StartWorkflowExecutionResponse:
94059411
type: object
94069412
properties:

temporal/api/workflow/v1/message.proto

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,15 @@ message VersioningOverride {
441441
temporal.api.deployment.v1.Deployment deployment = 2;
442442
}
443443

444-
// When StartWorkflowExecution uses the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING conflict policy and
444+
// When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and
445445
// there is already an existing running workflow, OnConflictOptions defines actions to be taken on
446-
// the existing running workflow.
446+
// the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent
447+
// history event in the running workflow with the changes requested in this object.
447448
message OnConflictOptions {
448-
bool attach_completion_callbacks = 1;
449-
bool attach_links = 2;
449+
// Attaches the request ID to the running workflow.
450+
bool attach_request_id = 1;
451+
// Attaches the completion callbacks to the running workflow.
452+
bool attach_completion_callbacks = 2;
453+
// Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.
454+
bool attach_links = 3;
450455
}

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ message StartWorkflowExecutionRequest {
206206
// If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
207207
// To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
208208
temporal.api.workflow.v1.VersioningOverride versioning_override = 25;
209-
// It defines behaviors to be executed when the WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING
210-
// conflict policy is used. If set to non-nil object, it will attach the RequestID to the
211-
// existing running workflow (for deduping), and perform actions specified in the object.
212-
// If not set (ie., nil value), it won't do anything to the existing running workflow.
209+
// It defines actions to be done to the existing running workflow when the conflict policy
210+
// WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a
211+
// empty object (ie., all options with default value), it won't do anything to the existing
212+
// running workflow. If set, it will add a history event to the running workflow.
213213
temporal.api.workflow.v1.OnConflictOptions on_conflict_options = 26;
214214
}
215215

0 commit comments

Comments
 (0)