Skip to content

Commit

Permalink
Update Workflow ID reuse policy java doc
Browse files Browse the repository at this point in the history
Similar to temporalio/sdk-typescript#1193.

Fixing the inline comments where `AllowDuplicate` should be noted as the default policy.
  • Loading branch information
taonic committed Nov 8, 2023
1 parent 4745afb commit e637e2f
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,13 @@ public Builder setWorkflowId(String workflowId) {
* Specifies server behavior if a completed workflow with the same id exists. Note that under no
* conditions Temporal allows two workflows with the same namespace and workflow id run
* simultaneously.
* <li>
*
* <ul>
* AllowDuplicateFailedOnly is a default value. It means that workflow can start if
* previous run failed or was canceled or terminated.
* </ul>
*
* <ul>
* AllowDuplicate allows new run independently of the previous run closure status.
* </ul>
*
* <ul>
* RejectDuplicate doesn't allow new run independently of the previous run closure status.
* <li>AllowDuplicate is the default value. It allows new run independently of the previous
* run closure status.
* <li>AllowDuplicateFailedOnly means that workflow can start if previous run failed or was
* canceled or terminated.
* <li>RejectDuplicate doesn't allow new run independently of the previous run closure status.
* </ul>
*/
public Builder setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy) {
Expand Down

0 comments on commit e637e2f

Please sign in to comment.