Package org.camunda.bpm.engine.variable
Class Variables
java.lang.Object
org.camunda.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.camunda.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 BytesValuebyteArrayValue(byte[] bytes) Creates a newBytesValuethat encapsulates the givenbytesstatic BytesValuebyteArrayValue(byte[] bytes, boolean isTransient) Creates a newBytesValuethat encapsulates the givenbytesstatic VariableMapReturns a newVariableMapinstance.static DateValueCreates a newDateValuethat encapsulates the givendatestatic DateValueCreates a newDateValuethat encapsulates the givendatestatic DoubleValuedoubleValue(Double doubleValue) Creates a newDoubleValuethat encapsulates the givendoubleValuestatic DoubleValuedoubleValue(Double doubleValue, boolean isTransient) Creates a newDoubleValuethat encapsulates the givendoubleValuestatic 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 LongValueCreates a newLongValuethat encapsulates the givenlongValuestatic LongValueCreates a newLongValuethat encapsulates the givenlongValuestatic NumberValuenumberValue(Number numberValue) Creates an abstract Number value.static NumberValuenumberValue(Number numberValue, boolean isTransient) Creates an abstract Number value.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 StringValuestringValue(String stringValue) Creates a newStringValuethat encapsulates the givenstringValuestatic StringValuestringValue(String stringValue, boolean isTransient) Creates a newStringValuethat encapsulates the givenstringValuestatic TypedValuestatic TypedValueuntypedNullValue(boolean isTransient) static TypedValueuntypedValue(Object value) Creates an untyped value, i.e.static TypedValueuntypedValue(Object value, boolean isTransient) Creates an untyped value, i.e.
-
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 -
stringValue
Creates a newStringValuethat encapsulates the givenstringValue -
stringValue
Creates a newStringValuethat encapsulates the givenstringValue -
booleanValue
Creates a newBooleanValuethat encapsulates the givenbooleanValue -
booleanValue
Creates a newBooleanValuethat encapsulates the givenbooleanValue -
byteArrayValue
Creates a newBytesValuethat encapsulates the givenbytes -
byteArrayValue
Creates a newBytesValuethat encapsulates the givenbytes -
dateValue
Creates a newDateValuethat encapsulates the givendate -
dateValue
Creates a newDateValuethat encapsulates the givendate -
longValue
Creates a newLongValuethat encapsulates the givenlongValue -
longValue
Creates a newLongValuethat encapsulates the givenlongValue -
shortValue
Creates a newShortValuethat encapsulates the givenshortValue -
shortValue
Creates a newShortValuethat encapsulates the givenshortValue -
doubleValue
Creates a newDoubleValuethat encapsulates the givendoubleValue -
doubleValue
Creates a newDoubleValuethat encapsulates the givendoubleValue -
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. -
untypedNullValue
-
untypedNullValue
-
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. -
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).
-