Class WorkflowDef
java.lang.Object
com.netflix.conductor.common.metadata.Auditable
com.netflix.conductor.common.metadata.workflow.WorkflowDef
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsType(String taskType) booleanstatic StringgetName()getNextTask(String taskReferenceName) intgetTaskByRefName(String taskReferenceName) getTasks()longintinthashCode()booleanbooleanThis method determines if the workflow is restartable or notbooleankey()voidsetDescription(String description) voidsetEnforceSchema(boolean enforceSchema) voidsetFailureWorkflow(String failureWorkflow) voidsetInputParameters(List<String> inputParameters) voidsetInputSchema(SchemaDef inputSchema) voidsetInputTemplate(Map<String, Object> inputTemplate) voidvoidsetOutputParameters(Map<String, Object> outputParameters) voidsetOutputSchema(SchemaDef outputSchema) voidsetOwnerEmail(String ownerEmail) voidsetRateLimitConfig(RateLimitConfig rateLimitConfig) voidsetRestartable(boolean restartable) This method is called only when the workflow definition is createdvoidsetSchemaVersion(int schemaVersion) voidsetTasks(List<WorkflowTask> tasks) voidsetTimeoutPolicy(WorkflowDef.TimeoutPolicy timeoutPolicy) voidsetTimeoutSeconds(long timeoutSeconds) voidsetVariables(Map<String, Object> variables) voidsetVersion(int version) voidsetWorkflowStatusListenerEnabled(boolean workflowStatusListenerEnabled) Specify if workflow listener is enabled to invoke a callback for completed or terminated workflowsvoidsetWorkflowStatusListenerSink(String workflowStatusListenerSink) toString()Methods inherited from class com.netflix.conductor.common.metadata.Auditable
getCreatedBy, getCreateTime, getOwnerApp, getUpdatedBy, getUpdateTime, setCreatedBy, setCreateTime, setOwnerApp, setUpdatedBy, setUpdateTime
-
Constructor Details
-
WorkflowDef
public WorkflowDef()
-
-
Method Details
-
isEnforceSchema
public boolean isEnforceSchema() -
setEnforceSchema
public void setEnforceSchema(boolean enforceSchema) -
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getTasks
- Returns:
- the tasks
-
setTasks
- Parameters:
tasks- the tasks to set
-
getInputParameters
- Returns:
- the inputParameters
-
setInputParameters
- Parameters:
inputParameters- the inputParameters to set
-
getOutputParameters
- Returns:
- the outputParameters
-
setOutputParameters
- Parameters:
outputParameters- the outputParameters to set
-
getVersion
public int getVersion()- Returns:
- the version
-
getFailureWorkflow
- Returns:
- the failureWorkflow
-
setFailureWorkflow
- Parameters:
failureWorkflow- the failureWorkflow to set
-
setVersion
public void setVersion(int version) - Parameters:
version- the version to set
-
isRestartable
public boolean isRestartable()This method determines if the workflow is restartable or not- Returns:
- true: if the workflow is restartable false: if the workflow is non restartable
-
setRestartable
public void setRestartable(boolean restartable) This method is called only when the workflow definition is created- Parameters:
restartable- true: if the workflow is restartable false: if the workflow is non restartable
-
getSchemaVersion
public int getSchemaVersion()- Returns:
- the schemaVersion
-
setSchemaVersion
public void setSchemaVersion(int schemaVersion) - Parameters:
schemaVersion- the schemaVersion to set
-
isWorkflowStatusListenerEnabled
public boolean isWorkflowStatusListenerEnabled()- Returns:
- true is workflow listener will be invoked when workflow gets into a terminal state
-
setWorkflowStatusListenerEnabled
public void setWorkflowStatusListenerEnabled(boolean workflowStatusListenerEnabled) Specify if workflow listener is enabled to invoke a callback for completed or terminated workflows- Parameters:
workflowStatusListenerEnabled-
-
getOwnerEmail
- Returns:
- the email of the owner of this workflow definition
-
setOwnerEmail
- Parameters:
ownerEmail- the owner email to set
-
getTimeoutPolicy
- Returns:
- the timeoutPolicy
-
setTimeoutPolicy
- Parameters:
timeoutPolicy- the timeoutPolicy to set
-
getTimeoutSeconds
public long getTimeoutSeconds()- Returns:
- the time after which a workflow is deemed to have timed out
-
setTimeoutSeconds
public void setTimeoutSeconds(long timeoutSeconds) - Parameters:
timeoutSeconds- the timeout in seconds to set
-
getVariables
- Returns:
- the global workflow variables
-
setVariables
- Parameters:
variables- the set of global workflow variables to set
-
getInputTemplate
-
setInputTemplate
-
key
-
getKey
-
getWorkflowStatusListenerSink
-
setWorkflowStatusListenerSink
-
getRateLimitConfig
-
setRateLimitConfig
-
getInputSchema
-
setInputSchema
-
getOutputSchema
-
setOutputSchema
-
containsType
-
getNextTask
-
getTaskByRefName
-
collectTasks
-
equals
-
hashCode
public int hashCode() -
toString
-