Package ai.extend.types
Class StepRun
- java.lang.Object
-
- ai.extend.types.StepRun
-
public final class StepRun extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStepRun._FinalStagestatic classStepRun.Builderstatic interfaceStepRun.IdStagestatic interfaceStepRun.ObjectStagestatic interfaceStepRun.StatusStagestatic interfaceStepRun.StepStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepRun.ObjectStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.lang.StringgetId()java.lang.StringgetObject()java.util.Optional<StepRunOutput>getOutput()StepRunStatusgetStatus()StepRunStepgetStep()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getObject
public java.lang.String getObject()
- Returns:
- The type of response. In this case, it will always be
"workflow_step_run".
-
getId
public java.lang.String getId()
- Returns:
- The ID of the workflow step run.
Example:
"workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"
-
getStatus
public StepRunStatus getStatus()
- Returns:
- 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"CANCELLED"- The step run was cancelled
-
getStep
public StepRunStep getStep()
-
getOutput
public java.util.Optional<StepRunOutput> getOutput()
- Returns:
- The output of the WorkflowStepRun. The shape of the output depends on the type of the WorkflowStep in the
stepfield:- 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:
- For
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static StepRun.ObjectStage builder()
-
-