Class WorkflowTask
java.lang.Object
com.netflix.conductor.common.metadata.workflow.WorkflowTask
This is the task definition definied as part of the
WorkflowDef. The tasks definied in
the Workflow definition are saved as part of WorkflowDef.getTasks()-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.UsegetEvaluatorType()andgetExpression()combination.Deprecated.getName()getSink()intgetType()booleaninthashCode()booleanbooleannext(String taskReferenceName, WorkflowTask parent) voidsetAsyncComplete(Boolean asyncComplete) voidsetCacheConfig(WorkflowTask.CacheConfig cacheConfig) voidsetCaseExpression(String caseExpression) Deprecated.UsegetEvaluatorType()andgetExpression()combination.voidsetCaseValueParam(String caseValueParam) Deprecated.UsegetEvaluatorType()andgetExpression()combination.voidsetDecisionCases(Map<String, List<WorkflowTask>> decisionCases) voidsetDefaultCase(List<WorkflowTask> defaultCase) voidsetDefaultExclusiveJoinTask(List<String> defaultExclusiveJoinTask) voidsetDescription(String description) voidsetDynamicForkJoinTasksParam(String dynamicForkJoinTasksParam) Deprecated.voidsetDynamicForkTasksInputParamName(String dynamicForkTasksInputParamName) voidsetDynamicForkTasksParam(String dynamicForkTasksParam) voidsetDynamicTaskNameParam(String dynamicTaskNameParam) voidsetEvaluatorType(String evaluatorType) voidsetExpression(String expression) voidsetForkTasks(List<List<WorkflowTask>> forkTasks) voidsetInputParameters(Map<String, Object> inputParameters) voidvoidsetJoinStatus(String joinStatus) voidsetLoopCondition(String loopCondition) voidsetLoopOver(List<WorkflowTask> loopOver) voidvoidsetOnStateChange(Map<String, List<StateChangeEvent>> onStateChange) voidsetOptional(boolean optional) voidsetPermissive(boolean permissive) voidsetRateLimited(Boolean rateLimited) voidsetRetryCount(Integer retryCount) voidsetScriptExpression(String expression) voidvoidsetStartDelay(int startDelay) voidsetSubWorkflowParam(SubWorkflowParams subWorkflow) voidsetTaskDefinition(TaskDef taskDefinition) voidsetTaskReferenceName(String taskReferenceName) voidvoidsetWorkflowTaskType(TaskType type) toString()
-
Constructor Details
-
WorkflowTask
public WorkflowTask()
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getTaskReferenceName
- Returns:
- the taskReferenceName
-
setTaskReferenceName
- Parameters:
taskReferenceName- the taskReferenceName to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getInputParameters
- Returns:
- the inputParameters
-
setInputParameters
- Parameters:
inputParameters- the inputParameters to set
-
getType
- Returns:
- the type
-
setWorkflowTaskType
-
setType
- Parameters:
type- the type to set
-
getDecisionCases
- Returns:
- the decisionCases
-
setDecisionCases
- Parameters:
decisionCases- the decisionCases to set
-
getDefaultCase
- Returns:
- the defaultCase
-
setDefaultCase
- Parameters:
defaultCase- the defaultCase to set
-
getForkTasks
- Returns:
- the forkTasks
-
setForkTasks
- Parameters:
forkTasks- the forkTasks to set
-
getStartDelay
public int getStartDelay()- Returns:
- the startDelay in seconds
-
setStartDelay
public void setStartDelay(int startDelay) - Parameters:
startDelay- the startDelay to set
-
getRetryCount
- Returns:
- the retryCount
-
setRetryCount
- Parameters:
retryCount- the retryCount to set
-
getDynamicTaskNameParam
- Returns:
- the dynamicTaskNameParam
-
setDynamicTaskNameParam
- Parameters:
dynamicTaskNameParam- the dynamicTaskNameParam to set to be used by DYNAMIC tasks
-
getCaseValueParam
Deprecated.UsegetEvaluatorType()andgetExpression()combination.- Returns:
- the caseValueParam
-
getDynamicForkJoinTasksParam
Deprecated. -
setDynamicForkJoinTasksParam
Deprecated. -
getDynamicForkTasksParam
-
setDynamicForkTasksParam
-
getDynamicForkTasksInputParamName
-
setDynamicForkTasksInputParamName
-
setCaseValueParam
Deprecated.UsegetEvaluatorType()andgetExpression()combination.- Parameters:
caseValueParam- the caseValueParam to set
-
getCaseExpression
Deprecated.UsegetEvaluatorType()andgetExpression()combination.- Returns:
- A javascript expression for decision cases. The result should be a scalar value that is used to decide the case branches.
- See Also:
-
setCaseExpression
Deprecated.UsegetEvaluatorType()andgetExpression()combination.- Parameters:
caseExpression- A javascript expression for decision cases. The result should be a scalar value that is used to decide the case branches.
-
getScriptExpression
-
setScriptExpression
-
getCacheConfig
-
setCacheConfig
-
getSubWorkflowParam
- Returns:
- the subWorkflow
-
setSubWorkflowParam
- Parameters:
subWorkflow- the subWorkflowParam to set
-
getJoinOn
- Returns:
- the joinOn
-
setJoinOn
- Parameters:
joinOn- the joinOn to set
-
getLoopCondition
- Returns:
- the loopCondition
-
setLoopCondition
- Parameters:
loopCondition- the expression to set
-
getLoopOver
- Returns:
- the loopOver
-
setLoopOver
- Parameters:
loopOver- the loopOver to set
-
getSink
- Returns:
- Sink value for the EVENT type of task
-
setSink
- Parameters:
sink- Name of the sink
-
isAsyncComplete
- Returns:
- whether wait for an external event to complete the task, for EVENT and HTTP tasks
-
setAsyncComplete
-
isOptional
public boolean isOptional()- Returns:
- If the task is optional. When set to true, the workflow execution continues even when the task is in failed status.
-
getTaskDefinition
- Returns:
- Task definition associated to the Workflow Task
-
setTaskDefinition
- Parameters:
taskDefinition- Task definition
-
setOptional
public void setOptional(boolean optional) - Parameters:
optional- when set to true, the task is marked as optional
-
getRateLimited
-
setRateLimited
-
isRateLimited
-
getDefaultExclusiveJoinTask
-
setDefaultExclusiveJoinTask
-
getEvaluatorType
- Returns:
- the evaluatorType
-
setEvaluatorType
- Parameters:
evaluatorType- the evaluatorType to set
-
getExpression
- Returns:
- An evaluation expression for switch cases evaluated by corresponding evaluator. The result should be a scalar value that is used to decide the case branches.
- See Also:
-
setExpression
- Parameters:
expression- the expression to set
-
getJoinStatus
-
setJoinStatus
-
isPermissive
public boolean isPermissive() -
setPermissive
public void setPermissive(boolean permissive) -
collectTasks
-
next
-
has
-
get
-
getOnStateChange
-
setOnStateChange
-
toString
-
equals
-
hashCode
public int hashCode()
-
getEvaluatorType()andgetExpression()combination.