Task taskA = subProcessTasks.get(0);
Task taskB = subProcessTasks.get(1);
assertEquals("Task A", taskA.getName());
assertEquals("Task B", taskB.getName());
Job job = managementService
.createJobQuery()
.processInstanceId(processInstance.getId())
.singleResult();
managementService.executeJob(job.getId());
// The inner subprocess should be destoyed, and the tsk after the timer should be active
Task taskAfterTimer = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
assertEquals("Task after timer", taskAfterTimer.getName());