Class ChildWorkflowOptions.Builder

  • Enclosing class:
    ChildWorkflowOptions

    public static final class ChildWorkflowOptions.Builder
    extends java.lang.Object
    • Method Detail

      • setNamespace

        public ChildWorkflowOptions.Builder setNamespace​(java.lang.String namespace)
        Specify namespace in which workflow should be started.

        TODO: Resolve conflict with WorkflowClient namespace.

      • setWorkflowId

        public ChildWorkflowOptions.Builder setWorkflowId​(java.lang.String workflowId)
        Workflow id to use when starting. If not specified a UUID is generated. Note that it is dangerous as in case of client side retries no deduplication will happen based on the generated id. So prefer assigning business meaningful ids if possible.
      • setWorkflowIdReusePolicy

        public ChildWorkflowOptions.Builder setWorkflowIdReusePolicy​(io.temporal.api.enums.v1.WorkflowIdReusePolicy workflowIdReusePolicy)
        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.
        • AllowDuplicateFailedOnly is a default value. It means that workflow can start if previous run failed or was canceled or terminated.
          AllowDuplicate allows new run independently of the previous run closure status.
          RejectDuplicate doesn't allow new run independently of the previous run closure status.