public interface DslValidationBlock<Level> extends DslMainBlock<Level>
WorkflowDefinition| Modifier and Type | Method and Description |
|---|---|
DslValidationBlock<Level> |
validateInputVariable(int id,
String variable,
Class<?> type)
Checks a required input value.
|
DslValidationBlock<Level> |
validateInputVariable(int id,
String variable,
Class<?> type,
boolean isRequired)
Like
validateInputVariable(int, String, Class, boolean, Object) with a default value of null |
DslValidationBlock<Level> |
validateInputVariable(int id,
String variable,
Class<?> type,
boolean isRequired,
Object defaultValue)
Checks a required or optional input value.
|
endcreateInstance, doWhile, if_, split, variable, variables, waitTimer, waitUntilDate, whileDocall, callAsync, humanTask, waitSignalDslValidationBlock<Level> validateInputVariable(int id, String variable, Class<?> type)
null)
and that this value is assignable to the defined type.
NB! Calls to one of the overloaded validateInputVariable methods are only possible at the beginning of the workflow definition.id - node idvariable - variable nametype - type that the variable's value must be assignable to.DslValidationBlock<Level> validateInputVariable(int id, String variable, Class<?> type, boolean isRequired)
validateInputVariable(int, String, Class, boolean, Object) with a default value of nullDslValidationBlock<Level> validateInputVariable(int id, String variable, Class<?> type, boolean isRequired, Object defaultValue)
null)
and that this value is assignable to the defined type.
For an optional input variable, it initialises the value to a default, if it is not yet set in the environment and ensures that
its value is assignable to the defined type.
NB! Calls to one of the overloaded validateInputVariable methods are only possible at the beginning of the workflow definition.id - node idvariable - variable nametype - type that the variable's value must be assignable toisRequired - whether the variable is a required or an optional inputdefaultValue - a default value if the optional input value is not givenCopyright © 2017. All rights reserved.