use of org.camunda.spin.plugin.variable.value.JsonValue in project camunda-bpm-platform by camunda.
the class JsonValueTest method testJsonValueInCondition.
@Deployment(resources = "org/camunda/spin/plugin/jsonConditionProcess.bpmn20.xml")
public void testJsonValueInCondition() {
// given
String jsonString = "{\"age\": 22 }";
JsonValue value = jsonValue(jsonString).create();
VariableMap variables = Variables.createVariables().putValueTyped("customer", value);
// when
runtimeService.startProcessInstanceByKey("process", variables);
// then
Task task = taskService.createTaskQuery().singleResult();
assertEquals("task1", task.getTaskDefinitionKey());
}
Aggregations