use of org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl in project camunda-bpm-platform by camunda.
the class AbstractObjectValueSerializer method updateTypedValue.
protected void updateTypedValue(ObjectValue value, String serializedStringValue) {
String objectTypeName = getObjectTypeName(value, null);
ObjectValueImpl objectValue = (ObjectValueImpl) value;
objectValue.setObjectTypeName(objectTypeName);
objectValue.setSerializedValue(serializedStringValue);
objectValue.setSerializationDataFormat(serializationDataFormat);
}
use of org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl in project camunda-bpm-platform by camunda.
the class MockProvider method createMockSerializedVariables.
public static VariableMap createMockSerializedVariables() {
VariableMap variables = Variables.createVariables();
ObjectValue serializedVar = Variables.serializedObjectValue(EXAMPLE_VARIABLE_INSTANCE_SERIALIZED_VALUE).serializationDataFormat(FORMAT_APPLICATION_JSON).objectTypeName(ArrayList.class.getName()).create();
ObjectValue deserializedVar = new ObjectValueImpl(EXAMPLE_VARIABLE_INSTANCE_DESERIALIZED_VALUE, EXAMPLE_VARIABLE_INSTANCE_SERIALIZED_VALUE, FORMAT_APPLICATION_JSON, Object.class.getName(), true);
variables.putValueTyped(EXAMPLE_VARIABLE_INSTANCE_NAME, serializedVar);
variables.putValueTyped(EXAMPLE_DESERIALIZED_VARIABLE_INSTANCE_NAME, deserializedVar);
return variables;
}
Aggregations