Class Variables
java.lang.Object
org.finos.fluxnova.bpm.engine.variable.Variables
- Direct Known Subclasses:
ClientValues
This class is the entry point to the process engine's typed variables API. Users can import the methods provided by this class using a static import:
import static org.finos.fluxnova.bpm.engine.variable.Variables.*;
- Author:
- Daniel Meyer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA set of builtin serialization dataformat constants. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanValuebooleanValue(Boolean booleanValue) Creates a newBooleanValuethat encapsulates the givenbooleanValuestatic BooleanValuebooleanValue(Boolean booleanValue, boolean isTransient) Creates a newBooleanValuethat encapsulates the givenbooleanValuestatic BooleanValuebooleanValue(Boolean booleanValue, VariableOptions options) static BytesValuebyteArrayValue(byte[] bytes) Creates a newBytesValuethat encapsulates the givenbytesstatic BytesValuebyteArrayValue(byte[] bytes, boolean isTransient) Creates a newBytesValuethat encapsulates the givenbytesstatic BytesValuebyteArrayValue(byte[] bytes, VariableOptions options) static VariableMapReturns a newVariableMapinstance.static DateValueCreates a newDateValuethat encapsulates the givendatestatic DateValueCreates a newDateValuethat encapsulates the givendatestatic DateValuedateValue(Date date, VariableOptions options) static DoubleValuedoubleValue(Double doubleValue) Creates a newDoubleValuethat encapsulates the givendoubleValuestatic DoubleValuedoubleValue(Double doubleValue, boolean isTransient) Creates a newDoubleValuethat encapsulates the givendoubleValuestatic DoubleValuedoubleValue(Double doubleValue, VariableOptions options) static VariableContextstatic FileValueShortcut for callingVariables.fileValue(name).file(file).mimeType(type).create().static FileValueShortcut for callingVariables.fileValue(name).file(file).mimeType(type).setTransient(isTransient).create().static FileValueBuilderReturns a builder to create a newFileValuewith the givenfilename.static FileValueBuilderReturns a builder to create a newFileValuewith the givenfilename.static VariableMapIf the given map is not a variable map, adds all its entries as untyped values to a newVariableMap.static IntegerValueintegerValue(Integer integer) Creates a newIntegerValuethat encapsulates the givenintegerstatic IntegerValueintegerValue(Integer integer, boolean isTransient) Creates a newIntegerValuethat encapsulates the givenintegerstatic IntegerValueintegerValue(Integer integer, VariableOptions options) static LongValueCreates a newLongValuethat encapsulates the givenlongValuestatic LongValueCreates a newLongValuethat encapsulates the givenlongValuestatic LongValuelongValue(Long longValue, VariableOptions options) static NullValueImplnullValue(boolean isTransient, boolean restricted) static NumberValuenumberValue(Number numberValue) Creates an abstract Number value.static NumberValuenumberValue(Number numberValue, boolean isTransient) Creates an abstract Number value.static NumberValuenumberValue(Number numberValue, VariableOptions options) static ObjectValueBuilderobjectValue(Object value) Returns a builder to create a newObjectValuethat encapsulates the givenvalue.static ObjectValueBuilderobjectValue(Object value, boolean isTransient) Returns a builder to create a newObjectValuethat encapsulates the givenvalue.static VariableMapShortcut forVariables.createVariables().putValue(name, value)static VariableMapputValueTyped(String name, TypedValue value) Shortcut forVariables.createVariables().putValueTyped(name, value)static SerializedObjectValueBuilderReturns a builder to create a newObjectValuefrom a serialized object representation.static SerializedObjectValueBuilderserializedObjectValue(String value) Shortcut forVariables.serializedObjectValue().serializedValue(value)static SerializedObjectValueBuilderserializedObjectValue(String value, boolean isTransient) Shortcut forVariables.serializedObjectValue().serializedValue(value).setTransient(isTransient)static ShortValueshortValue(Short shortValue) Creates a newShortValuethat encapsulates the givenshortValuestatic ShortValueshortValue(Short shortValue, boolean isTransient) Creates a newShortValuethat encapsulates the givenshortValuestatic ShortValueshortValue(Short shortValue, VariableOptions options) static StringValuestringValue(String stringValue) Creates a newStringValuethat encapsulates the givenstringValuestatic StringValuestringValue(String stringValue, boolean isTransient) Creates a newStringValuethat encapsulates the givenstringValuestatic StringValuestringValue(String stringValue, VariableOptions options) static TypedValuestatic TypedValueuntypedNullValue(boolean isTransient) static TypedValueuntypedNullValue(boolean isTransient, boolean restricted) static TypedValueuntypedNullValue(VariableOptions options) static TypedValueuntypedNullValueWithTag(boolean isTransient, boolean restricted) static TypedValueuntypedValue(Object value) Creates an untyped value, i.e.static TypedValueuntypedValue(Object value, boolean isTransient) Creates an untyped value, i.e.static TypedValueuntypedValue(Object value, boolean isTransient, boolean restricted) static TypedValueuntypedValue(Object value, VariableOptions options)
-
Constructor Details
-
Variables
public Variables()
-
-
Method Details
-
createVariables
Returns a newVariableMapinstance. -
fromMap
If the given map is not a variable map, adds all its entries as untyped values to a newVariableMap. If the given map is aVariableMap, it is returned as is. -
putValue
Shortcut forVariables.createVariables().putValue(name, value) -
putValueTyped
Shortcut forVariables.createVariables().putValueTyped(name, value) -
objectValue
Returns a builder to create a newObjectValuethat encapsulates the givenvalue. -
objectValue
Returns a builder to create a newObjectValuethat encapsulates the givenvalue. -
serializedObjectValue
Returns a builder to create a newObjectValuefrom a serialized object representation. -
serializedObjectValue
Shortcut forVariables.serializedObjectValue().serializedValue(value) -
serializedObjectValue
Shortcut forVariables.serializedObjectValue().serializedValue(value).setTransient(isTransient) -
integerValue
Creates a newIntegerValuethat encapsulates the giveninteger -
integerValue
Creates a newIntegerValuethat encapsulates the giveninteger -
integerValue
-
stringValue
Creates a newStringValuethat encapsulates the givenstringValue -
stringValue
Creates a newStringValuethat encapsulates the givenstringValue -
stringValue
-
booleanValue
Creates a newBooleanValuethat encapsulates the givenbooleanValue -
booleanValue
Creates a newBooleanValuethat encapsulates the givenbooleanValue -
booleanValue
-
byteArrayValue
Creates a newBytesValuethat encapsulates the givenbytes -
byteArrayValue
Creates a newBytesValuethat encapsulates the givenbytes -
byteArrayValue
-
dateValue
Creates a newDateValuethat encapsulates the givendate -
dateValue
Creates a newDateValuethat encapsulates the givendate -
dateValue
-
longValue
Creates a newLongValuethat encapsulates the givenlongValue -
longValue
Creates a newLongValuethat encapsulates the givenlongValue -
longValue
-
shortValue
Creates a newShortValuethat encapsulates the givenshortValue -
shortValue
Creates a newShortValuethat encapsulates the givenshortValue -
shortValue
-
doubleValue
Creates a newDoubleValuethat encapsulates the givendoubleValue -
doubleValue
Creates a newDoubleValuethat encapsulates the givendoubleValue -
doubleValue
-
numberValue
Creates an abstract Number value. Note that this value cannot be used to set variables. Use the specific methodsintegerValue(Integer),shortValue(Short),longValue(Long)anddoubleValue(Double)instead. -
numberValue
Creates an abstract Number value. Note that this value cannot be used to set variables. Use the specific methodsintegerValue(Integer),shortValue(Short),longValue(Long)anddoubleValue(Double)instead. -
numberValue
-
untypedNullValue
-
untypedNullValue
-
untypedNullValue
-
untypedNullValue
-
nullValue
-
untypedNullValueWithTag
-
untypedValue
Creates an untyped value, i.e.TypedValue.getType()returnsnullfor the returned instance. -
untypedValue
Creates an untyped value, i.e.TypedValue.getType()returnsnullfor the returned instance. -
untypedValue
-
untypedValue
-
fileValue
Returns a builder to create a newFileValuewith the givenfilename. -
fileValue
Returns a builder to create a newFileValuewith the givenfilename. -
fileValue
Shortcut for callingVariables.fileValue(name).file(file).mimeType(type).create(). The name is set to the file name and the mime type is detected viaMimetypesFileTypeMap. -
fileValue
Shortcut for callingVariables.fileValue(name).file(file).mimeType(type).setTransient(isTransient).create(). The name is set to the file name and the mime type is detected viaMimetypesFileTypeMap. -
emptyVariableContext
- Returns:
- an empty
VariableContext(from which no variables can be resolved).
-