Annotation Type StateVar
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface StateVar
Used for state handler method parameters. Annotated parameters are automatically populated from the workflow instance variables and persisted after processing the state handler method.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleaninstantiateIfNotExistsInitializes the variable using default constructor (or zero value for primitive types) if the variable does not exist.booleanreadOnlyMakes the variable readonly in the state handler method.
-
-
-
Element Detail
-
value
String value
The name of the workflow instance variable.- Returns:
- The name of the variable.
-
-
-
instantiateIfNotExists
boolean instantiateIfNotExists
Initializes the variable using default constructor (or zero value for primitive types) if the variable does not exist. Used to ensure that the variable value is never null.- Returns:
- True if non-existing variables should be initialized, false otherwise.
- Default:
- false
-
-