Class WorkflowRunCancelResponseWorkflowRun
- java.lang.Object
-
- ai.extend.resources.workflowrun.types.WorkflowRunCancelResponseWorkflowRun
-
public final class WorkflowRunCancelResponseWorkflowRun extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorkflowRunCancelResponseWorkflowRun._FinalStagestatic classWorkflowRunCancelResponseWorkflowRun.Builderstatic interfaceWorkflowRunCancelResponseWorkflowRun.IdStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.InitialRunAtStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.NameStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.ObjectStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.ReviewedStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.UrlStagestatic interfaceWorkflowRunCancelResponseWorkflowRun.WorkflowStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowRunCancelResponseWorkflowRun.ObjectStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getBatchId()java.util.Optional<java.time.OffsetDateTime>getEndTime()java.util.Optional<java.lang.String>getFailureMessage()java.util.Optional<java.lang.String>getFailureReason()java.util.List<File>getFiles()java.lang.StringgetId()java.time.OffsetDateTimegetInitialRunAt()java.util.Map<java.lang.String,java.lang.Object>getMetadata()java.lang.StringgetName()java.lang.StringgetObject()java.util.List<ProcessorRun>getOutputs()java.util.Optional<java.lang.String>getRejectionNote()booleangetReviewed()java.util.Optional<java.time.OffsetDateTime>getReviewedAt()java.util.Optional<java.lang.String>getReviewedBy()java.util.Optional<java.time.OffsetDateTime>getStartTime()java.util.Optional<java.lang.String>getStatus()java.util.List<StepRun>getStepRuns()java.lang.StringgetUrl()WorkflowgetWorkflow()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getStatus
public java.util.Optional<java.lang.String> getStatus()
-
getObject
public java.lang.String getObject()
- Returns:
- The type of response. In this case, it will always be
"workflow_run".
-
getId
public java.lang.String getId()
- Returns:
- The ID of the workflow run.
Example:
"workflow_run_xKm9pNv3qWsY_jL2tR5Dh"
-
getName
public java.lang.String getName()
- Returns:
- The name of the workflow run.
Example:
"myFirstFile.pdf"
-
getUrl
public java.lang.String getUrl()
- Returns:
- A URL to view this workflow run in the Extend UI.
Example:
"https://dashboard.extend.ai/workflows/workflow_Bk9mNp2qWs5_xL8vR4tYh?workflowRunId=workflow_run_Zj3nMx7ZPd9f4c2WQ_kAg"
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
- Returns:
- The metadata that was passed in when running the Workflow.
-
getBatchId
public java.util.Optional<java.lang.String> getBatchId()
- Returns:
- The batch ID of the WorkflowRun. If this WorkflowRun was created as part of a batch of files, all runs in that batch will have the same batch ID.
Example:
"batch_7Ws31-F5"
-
getFiles
public java.util.List<File> getFiles()
-
getFailureReason
public java.util.Optional<java.lang.String> getFailureReason()
- Returns:
- The reason why the workflow run failed. Will only be included if the workflow run status is "FAILED".
-
getFailureMessage
public java.util.Optional<java.lang.String> getFailureMessage()
- Returns:
- A more detailed message about the failure. Will only be included if the workflow run status is "FAILED".
-
getInitialRunAt
public java.time.OffsetDateTime getInitialRunAt()
- Returns:
- The time (in UTC) at which the workflow run was created. Will follow the RFC 3339 format.
Example:
"2025-04-28T17:01:39.285Z"
-
getReviewedBy
public java.util.Optional<java.lang.String> getReviewedBy()
- Returns:
- The email address of the person who reviewed the workflow run. Will not be included if the workflow run has not been reviewed.
Example:
"jane.doe@example.com"
-
getReviewed
public boolean getReviewed()
- Returns:
- Whether the workflow run has been reviewed.
-
getRejectionNote
public java.util.Optional<java.lang.String> getRejectionNote()
- Returns:
- A note that is added if a workflow run is rejected.
Example:
"Invalid invoice format"
-
getReviewedAt
public java.util.Optional<java.time.OffsetDateTime> getReviewedAt()
- Returns:
- The time (in UTC) at which the workflow run was reviewed. Will follow the RFC 3339 format. Will not be included if the workflow run has not been reviewed.
Example:
"2024-03-21T16:45:00Z"
-
getStartTime
public java.util.Optional<java.time.OffsetDateTime> getStartTime()
- Returns:
- The time (in UTC) at which the workflow run started executing. This will always be after the
initialRunAttime. Will follow the RFC 3339 format. Will not be included if the workflow run has not started executing.Example:
"2024-03-21T15:30:00Z"
-
getEndTime
public java.util.Optional<java.time.OffsetDateTime> getEndTime()
- Returns:
- The time (in UTC) that the workflow finished executing. Will follow the RFC 3339 format. Will not be included if the workflow run has not finished executing.
Example:
"2024-03-21T15:35:00Z"
-
getOutputs
public java.util.List<ProcessorRun> getOutputs()
-
getStepRuns
public java.util.List<StepRun> getStepRuns()
- Returns:
- An array of WorkflowStepRun objects. Each WorkflowStepRun represents a single run of a WorkflowStep and contains details about the step and the run's output.
Note: This field currently supports External Data Validation and Rule Validation step types. Document processor run outputs are included in the outputs field.
-
getWorkflow
public Workflow getWorkflow()
-
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 WorkflowRunCancelResponseWorkflowRun.ObjectStage builder()
-
-