UelExpressionTestOrder order = new UelExpressionTestOrder(150);
RuntimeService runtimeService = activitiRule.getRuntimeService();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("uelExpressions",
CollectionUtil.singletonMap("order", order));
TaskService taskService = activitiRule.getTaskService();
Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
assertEquals("Standard service", task.getName());
// While an order of 300, gives us a premium service (goes through an UEL method expression)
order = new UelExpressionTestOrder(300);
processInstance = runtimeService.startProcessInstanceByKey("uelExpressions",
CollectionUtil.singletonMap("order", order));
task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
assertEquals("Premium service", task.getName());
}