use of org.camunda.spin.plugin.variable.value.XmlValue in project camunda-bpm-platform by camunda.
the class XmlValueTest method testTransientXmlValue.
@Deployment(resources = ONE_TASK_PROCESS)
public void testTransientXmlValue() {
// given
XmlValue xmlValue = xmlValue(xmlString).setTransient(true).create();
VariableMap variables = Variables.createVariables().putValueTyped(variableName, xmlValue);
// when
runtimeService.startProcessInstanceByKey(ONE_TASK_PROCESS_KEY, variables).getId();
// then
List<VariableInstance> variableInstances = runtimeService.createVariableInstanceQuery().list();
assertEquals(0, variableInstances.size());
}
Aggregations