Search in sources :

Example 1 with ObjectValueImpl

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);
}
Also used : ObjectValueImpl(org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl)

Example 2 with ObjectValueImpl

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;
}
Also used : ObjectValue(org.camunda.bpm.engine.variable.value.ObjectValue) VariableMap(org.camunda.bpm.engine.variable.VariableMap) ObjectValueImpl(org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl)

Aggregations

ObjectValueImpl (org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl)2 VariableMap (org.camunda.bpm.engine.variable.VariableMap)1 ObjectValue (org.camunda.bpm.engine.variable.value.ObjectValue)1