public interface DslBlock<Level> extends DslExpression<Level>
WorkflowDefinition| Modifier and Type | Method and Description |
|---|---|
DslAttribute<Level> |
createInstance(int id,
String workflowName,
Integer workflowVersion,
String label1,
String label2)
Creates a new workflow instance based.
|
DslDoWhileBlock<Level> |
doWhile()
Start tag for a do-while block.
|
DslIfBlock<Level> |
if_(int id,
String condition)
Start tag for if-elseIf-else-endIf block.
|
DslSplit<Level> |
split(int id)
Start tag for splitting the execution into multiple parallel branches.
|
DslVariable<Level> |
variable(String name)
Set an environment variable with the given name.
|
DslVariable<Level> |
variables(String... nameMappings)
Set environment variable with the given names.
|
Level |
waitTimer(int id,
String due)
Wait until a defined time period has passed.
|
Level |
waitUntilDate(int id,
String due)
Wait until a defined date has been reached
|
DslWhileDoBlock<Level> |
whileDo(int id,
String condition)
While the given condition is true, execute the block content and then check again.
|
call, callAsync, humanTask, waitSignalDslVariable<Level> variable(String name)
name - name of the environment variable which is going to be setDslVariable<Level> variables(String... nameMappings)
Map result and we want to store one or more key-value pairs from this Map directly
into the environment (instead of storing the whole Map under a new variable name and then accessing the key-value pairs as subfields
inside this Map value).
If the returned Map contains 3 keys: x, y and z, then the call .variables( "a=x", "b=y" ) should be read as: take
x from method call result map and store it into environment as a, and take y from method call result map and
store it into environment as b, and ignore z.
nameMappings - desired mappings of the environment variable: new_environment_variable_name=returned_map_key_nameDslAttribute<Level> createInstance(int id, String workflowName, Integer workflowVersion, String label1, String label2)
id - node idworkflowName - the workflow's name to be created ("STRING_WORKFLOW_NAME" or "${EL_EXPRESSION}")workflowVersion - the workflow's version to be created or null for the latestlabel1 - first label ("STRING_LABEL" or "${EL_EXPRESSION}")label2 - second label ("STRING_LABEL" or "${EL_EXPRESSION}")Level waitTimer(int id, String due)
### WAIT STATE ###
id - node iddue - either a constant Long value of milliseconds or an EL expression which returns the milliseconds ("LONG_VALUE" or "${EL_EXPRESSION}")Level waitUntilDate(int id, String due)
### WAIT STATE ###
id - node iddue - an EL expression which returns the date ("${EL_EXPRESSION}")DslWhileDoBlock<Level> whileDo(int id, String condition)
Block start tag.
id - node idcondition - expression language condition ("EL_EXPRESSION")DslDoWhileBlock<Level> doWhile()
DslIfBlock<Level> if_(int id, String condition)
The if-elseIf-else-endIf block executes only one of it's branches.
id - node idcondition - expression language condition ("EL_EXPRESSION")Copyright © 2017. All rights reserved.