Package com.netflix.conductor.common.run
Class Workflow
java.lang.Object
com.netflix.conductor.common.metadata.Auditable
com.netflix.conductor.common.run.Workflow
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanlonggetEvent()getInput()longCaptures the last time the workflow was retriedintlonggetTaskByRefName(String refName) getTasks()Convenience method for accessing the workflow definition name.intConvenience method for accessing the workflow definition version.inthashCode()booleanbooleanvoidsetCorrelationId(String correlationId) voidsetEndTime(long endTime) voidvoidsetExternalInputPayloadStoragePath(String externalInputPayloadStoragePath) voidsetExternalOutputPayloadStoragePath(String externalOutputPayloadStoragePath) voidsetFailedReferenceTaskNames(Set<String> failedReferenceTaskNames) voidsetFailedTaskNames(Set<String> failedTaskNames) voidsetHistory(List<Workflow> history) voidsetIdempotencyKey(String idempotencyKey) voidvoidsetLastRetriedTime(long lastRetriedTime) voidvoidsetParentWorkflowId(String parentWorkflowId) voidsetParentWorkflowTaskId(String parentWorkflowTaskId) voidsetPriority(int priority) voidsetRateLimited(boolean rateLimited) voidsetRateLimitKey(String rateLimitKey) voidsetReasonForIncompletion(String reasonForIncompletion) voidsetReRunFromWorkflowId(String reRunFromWorkflowId) voidsetStartTime(long startTime) voidsetStatus(Workflow.WorkflowStatus status) voidvoidsetTaskToDomain(Map<String, String> taskToDomain) voidsetVariables(Map<String, Object> variables) voidsetWorkflowDefinition(WorkflowDef workflowDefinition) voidsetWorkflowId(String workflowId) A string representation of all relevant fields that identify this workflow.toString()Methods inherited from class com.netflix.conductor.common.metadata.Auditable
getCreatedBy, getCreateTime, getOwnerApp, getUpdatedBy, getUpdateTime, setCreatedBy, setCreateTime, setOwnerApp, setUpdatedBy, setUpdateTime
-
Constructor Details
-
Workflow
public Workflow()
-
-
Method Details
-
getIdempotencyKey
-
setIdempotencyKey
-
getRateLimitKey
-
setRateLimitKey
-
isRateLimited
public boolean isRateLimited() -
setRateLimited
public void setRateLimited(boolean rateLimited) -
getHistory
-
setHistory
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status- the status to set
-
getStartTime
public long getStartTime()- Returns:
- the startTime
-
setStartTime
public void setStartTime(long startTime) - Parameters:
startTime- the startTime to set
-
getEndTime
public long getEndTime()- Returns:
- the endTime
-
setEndTime
public void setEndTime(long endTime) - Parameters:
endTime- the endTime to set
-
getWorkflowId
- Returns:
- the workflowId
-
setWorkflowId
- Parameters:
workflowId- the workflowId to set
-
getTasks
- Returns:
- the tasks which are scheduled, in progress or completed.
-
setTasks
- Parameters:
tasks- the tasks to set
-
getInput
- Returns:
- the input
-
setInput
- Parameters:
input- the input to set
-
getTaskToDomain
- Returns:
- the task to domain map
-
setTaskToDomain
- Parameters:
taskToDomain- the task to domain map
-
getOutput
- Returns:
- the output
-
setOutput
- Parameters:
output- the output to set
-
getCorrelationId
- Returns:
- The correlation id used when starting the workflow
-
setCorrelationId
- Parameters:
correlationId- the correlation id
-
getReRunFromWorkflowId
-
setReRunFromWorkflowId
-
getReasonForIncompletion
-
setReasonForIncompletion
-
getParentWorkflowId
- Returns:
- the parentWorkflowId
-
setParentWorkflowId
- Parameters:
parentWorkflowId- the parentWorkflowId to set
-
getParentWorkflowTaskId
- Returns:
- the parentWorkflowTaskId
-
setParentWorkflowTaskId
- Parameters:
parentWorkflowTaskId- the parentWorkflowTaskId to set
-
getEvent
- Returns:
- Name of the event that started the workflow
-
setEvent
- Parameters:
event- Name of the event that started the workflow
-
getFailedReferenceTaskNames
-
setFailedReferenceTaskNames
-
getWorkflowDefinition
-
setWorkflowDefinition
-
getExternalInputPayloadStoragePath
- Returns:
- the external storage path of the workflow input payload
-
setExternalInputPayloadStoragePath
- Parameters:
externalInputPayloadStoragePath- the external storage path where the workflow input payload is stored
-
getExternalOutputPayloadStoragePath
- Returns:
- the external storage path of the workflow output payload
-
getPriority
public int getPriority()- Returns:
- the priority to define on tasks
-
setPriority
public void setPriority(int priority) - Parameters:
priority- priority of tasks (between 0 and 99)
-
getWorkflowName
Convenience method for accessing the workflow definition name.- Returns:
- the workflow definition name.
-
getWorkflowVersion
public int getWorkflowVersion()Convenience method for accessing the workflow definition version.- Returns:
- the workflow definition version.
-
setExternalOutputPayloadStoragePath
- Parameters:
externalOutputPayloadStoragePath- the external storage path where the workflow output payload is stored
-
getVariables
- Returns:
- the global workflow variables
-
setVariables
- Parameters:
variables- the set of global workflow variables to set
-
getLastRetriedTime
public long getLastRetriedTime()Captures the last time the workflow was retried- Returns:
- the last retried time of the workflow
-
setLastRetriedTime
public void setLastRetriedTime(long lastRetriedTime) - Parameters:
lastRetriedTime- time in milliseconds when the workflow is retried
-
hasParent
public boolean hasParent() -
getFailedTaskNames
-
setFailedTaskNames
-
getTaskByRefName
-
copy
- Returns:
- a deep copy of the workflow instance
-
toString
-
toShortString
A string representation of all relevant fields that identify this workflow. Intended for use in log and other system generated messages. -
equals
-
hashCode
public int hashCode()
-