Class StepRun.Builder

    • Method Detail

      • object

        public StepRun.IdStage object​(@NotNull
                                      java.lang.String object)

        The type of response. In this case, it will always be "workflow_step_run".

        The type of response. In this case, it will always be "workflow_step_run".

        Specified by:
        object in interface StepRun.ObjectStage
        Returns:
        Reference to this so that method calls can be chained together.
      • id

        public StepRun.StatusStage id​(@NotNull
                                      java.lang.String id)

        The ID of the workflow step run.

        Example: "workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"

        The ID of the workflow step run.

        Example: "workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"

        Specified by:
        id in interface StepRun.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • status

        public StepRun.StepStage status​(@NotNull
                                        StepRunStatus status)

        The status of the workflow step run:

        • "PENDING" - The step run is waiting to be executed
        • "PROCESSING" - The step run is currently executing
        • "PROCESSED" - The step run completed successfully
        • "FAILED" - The step run encountered an error

        The status of the workflow step run:

        • "PENDING" - The step run is waiting to be executed
        • "PROCESSING" - The step run is currently executing
        • "PROCESSED" - The step run completed successfully
        • "FAILED" - The step run encountered an error
        Specified by:
        status in interface StepRun.StatusStage
        Returns:
        Reference to this so that method calls can be chained together.
      • output

        public StepRun._FinalStage output​(StepRunOutput output)

        The output of the WorkflowStepRun. The shape of the output depends on the type of the WorkflowStep in the step field:

        • For "EXTERNAL_DATA_VALIDATION" steps - The output will be the same object that was returned by the external endpoint configured for this step
        • For "RULE_VALIDATION" steps - See the below shape:
        Specified by:
        output in interface StepRun._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • output

        public StepRun._FinalStage output​(java.util.Optional<StepRunOutput> output)

        The output of the WorkflowStepRun. The shape of the output depends on the type of the WorkflowStep in the step field:

        • For "EXTERNAL_DATA_VALIDATION" steps - The output will be the same object that was returned by the external endpoint configured for this step
        • For "RULE_VALIDATION" steps - See the below shape:
        Specified by:
        output in interface StepRun._FinalStage