|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Variables.SerializationDataFormats>
org.camunda.bpm.engine.variable.Variables.SerializationDataFormats
public static enum Variables.SerializationDataFormats
A set of builtin serialization dataformat constants. These constants can be used to specify how java object variables should be serialized by the process engine:
CustomerData customerData = new CustomerData();
// ...
ObjectValue customerDataValue = Variables.objectValue(customerData)
.serializationDataFormat(Variables.SerializationDataFormats.JSON)
.create();
execution.setVariable("someVariable", customerDataValue);
Note that not all of the formats provided here are supported out of the box.
| Enum Constant Summary | |
|---|---|
JAVA
The Java Serialization Data format. |
|
JSON
The Json Serialization Data format. |
|
XML
The Xml Serialization Data format. |
|
| Method Summary | |
|---|---|
String |
getName()
The name of the dataformat. |
static Variables.SerializationDataFormats |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Variables.SerializationDataFormats[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Variables.SerializationDataFormats JAVA
The Java Serialization Data format. If this data format is used for serializing an object,
the object is serialized using default Java Serializable.
The process engine provides a serializer for this dataformat out of the box.
public static final Variables.SerializationDataFormats JSON
The Json Serialization Data format. If this data format is used for serializing an object, the object is serialized as Json text.
NOTE: the process does NOT provide a serializer for this dataformat out of the box. If you want to serialize objects using the Json dataformat, you need to provide a serializer. The optinal camunda Spin process engine plugin provides such a serializer.
public static final Variables.SerializationDataFormats XML
The Xml Serialization Data format. If this data format is used for serializing an object, the object is serialized as Xml text.
NOTE: the process does NOT provide a serializer for this dataformat out of the box. If you want to serialize objects using the Xml dataformat, you need to provide a serializer. The optinal camunda Spin process engine plugin provides such a serializer.
| Method Detail |
|---|
public static Variables.SerializationDataFormats[] values()
for (Variables.SerializationDataFormats c : Variables.SerializationDataFormats.values()) System.out.println(c);
public static Variables.SerializationDataFormats valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getName()
SerializationDataFormat
getName in interface SerializationDataFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||