Annotation 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.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanInitializes the variable using default constructor (or zero value for primitive types) if the variable does not exist.booleanMakes the variable readonly in the state handler method.
-
Element Details
-
value
String valueThe name of the workflow instance variable.- Returns:
- The name of the variable.
-
readOnly
boolean readOnlyMakes the variable readonly in the state handler method.- Returns:
- True when variable should not be modified, false otherwise.
- Default:
false
-
instantiateIfNotExists
boolean instantiateIfNotExistsInitializes 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
-