Search in sources :

Example 6 with XmlValue

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());
}
Also used : VariableMap(org.camunda.bpm.engine.variable.VariableMap) XmlValue(org.camunda.spin.plugin.variable.value.XmlValue) VariableInstance(org.camunda.bpm.engine.runtime.VariableInstance) Deployment(org.camunda.bpm.engine.test.Deployment)

Aggregations

Deployment (org.camunda.bpm.engine.test.Deployment)6 XmlValue (org.camunda.spin.plugin.variable.value.XmlValue)6 VariableMap (org.camunda.bpm.engine.variable.VariableMap)4 ProcessEngineException (org.camunda.bpm.engine.ProcessEngineException)2 SpinRuntimeException (org.camunda.spin.SpinRuntimeException)2 SpinXmlElement (org.camunda.spin.xml.SpinXmlElement)2 VariableInstance (org.camunda.bpm.engine.runtime.VariableInstance)1 Task (org.camunda.bpm.engine.task.Task)1