runtimeService.signal(processInstance.getId());
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("approved", false);
Task task = taskService.createTaskQuery().singleResult();
taskService.complete(task.getId(), variables);
assertEquals(0, runtimeService.createProcessInstanceQuery().list().size());
List<HistoricActivityInstance> activityInstances = historyService.createHistoricActivityInstanceQuery().orderByHistoricActivityInstanceStartTime().asc().list();