| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BATCH_SIZE |
static boolean |
DEFAULT_STOP_ONERROR |
static int |
DEFAULT_THREAD_COUNT |
| Constructor and Description |
|---|
FlowImpl() |
| Modifier and Type | Method and Description |
|---|---|
Flow |
deserialize(com.fasterxml.jackson.databind.JsonNode json)
Deserialize a json response and applies it to this flow
|
int |
getBatchSize()
Returns flow batch size
|
java.lang.String |
getDescription()
Returns flow description
|
java.lang.String |
getName()
Returns the name of the flow
|
com.fasterxml.jackson.databind.JsonNode |
getOptions()
Returns flow options as JsonNode
|
java.util.Map<java.lang.String,java.lang.Object> |
getOverrideOptions()
Gets the overridden options that were set at java runtime
|
java.util.Map<java.lang.String,java.lang.Object> |
getOverrideStepConfig()
Gets the overridden options that were set at java runtime
|
Step |
getStep(java.lang.String stepKey)
Gets the step specified by string key
|
Step |
getStepById(java.lang.String stepKey)
Deprecated.
|
java.util.Map<java.lang.String,Step> |
getSteps()
Returns a map of Steps
|
int |
getThreadCount()
Returns flow thread count
|
int |
getVersion()
Gets version
|
boolean |
isStopOnError()
Returns the value for stop on error flag
|
void |
setBatchSize(int batchSize)
Set flow batch size
|
void |
setDescription(java.lang.String description)
Sets flow description
|
void |
setName(java.lang.String flowName)
Sets the name of the flow
|
void |
setOptions(com.fasterxml.jackson.databind.JsonNode options)
Sets flow options
|
void |
setOverrideOptions(java.util.Map<java.lang.String,java.lang.Object> overrideOptions)
Sets the overridden options for the flow to use at java runtime
|
void |
setOverrideStepConfig(java.util.Map<java.lang.String,java.lang.Object> overrideStepConfig)
Sets the overridden step configs to use at java runtime
|
void |
setSteps(java.util.Map<java.lang.String,Step> steps)
Sets the steps to the flow model
|
void |
setStopOnError(boolean stopOnError)
If set stops the flow on error
|
void |
setThreadCount(int threadCount)
Sets flow thread count
|
void |
setVersion(int version)
Sets version
|
public static final int DEFAULT_BATCH_SIZE
public static final int DEFAULT_THREAD_COUNT
public static final boolean DEFAULT_STOP_ONERROR
public java.util.Map<java.lang.String,java.lang.Object> getOverrideStepConfig()
FlowgetOverrideStepConfig in interface Flowpublic void setOverrideStepConfig(java.util.Map<java.lang.String,java.lang.Object> overrideStepConfig)
FlowsetOverrideStepConfig in interface FlowoverrideStepConfig - a map object that represents the json step runner config that are to be used at runtimepublic void setOverrideOptions(java.util.Map<java.lang.String,java.lang.Object> overrideOptions)
FlowsetOverrideOptions in interface FlowoverrideOptions - a map object that represents the json flow options that are to be used at runtimepublic java.util.Map<java.lang.String,java.lang.Object> getOverrideOptions()
FlowgetOverrideOptions in interface Flowpublic java.lang.String getName()
Flowpublic void setName(java.lang.String flowName)
Flowpublic java.lang.String getDescription()
FlowgetDescription in interface Flowpublic void setDescription(java.lang.String description)
FlowsetDescription in interface Flowdescription - a flow descriptionpublic int getBatchSize()
FlowgetBatchSize in interface Flowpublic void setBatchSize(int batchSize)
FlowsetBatchSize in interface FlowbatchSize - flow batch sizepublic int getThreadCount()
FlowgetThreadCount in interface Flowpublic void setThreadCount(int threadCount)
FlowsetThreadCount in interface FlowthreadCount - thread count for flowpublic com.fasterxml.jackson.databind.JsonNode getOptions()
FlowgetOptions in interface Flowpublic void setOptions(com.fasterxml.jackson.databind.JsonNode options)
FlowsetOptions in interface Flowoptions - - a options nodepublic java.util.Map<java.lang.String,Step> getSteps()
Flowpublic void setSteps(java.util.Map<java.lang.String,Step> steps)
Flowpublic Step getStep(java.lang.String stepKey)
Flowpublic void setStopOnError(boolean stopOnError)
FlowsetStopOnError in interface FlowstopOnError - boolean flag to stop on errorpublic boolean isStopOnError()
FlowisStopOnError in interface Flowpublic int getVersion()
FlowgetVersion in interface Flowpublic void setVersion(int version)
FlowsetVersion in interface Flowversion - version for the flowpublic Flow deserialize(com.fasterxml.jackson.databind.JsonNode json)
Flowdeserialize in interface Flowjson - - the JsonNode you want deserialize@Deprecated public Step getStepById(java.lang.String stepKey)
FlowgetStepById in interface FlowstepKey - id for the step