Map<String, Object> variables = new HashMap<String, Object>();
variables.put("content", "We will never see this content on Twitter");
variables.put("email", "bernd.ruecker@camunda.com");
System.out.println("### RuntimeService");
ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("TwitterDemoProcess", variables);
System.out.println("### RuntimeService fertig");
String id = processInstance.getId();
System.out.println("Started process instance id " + id);
Assert.assertThat(activitiRule.getRuntimeService().getActiveActivityIds(id), JUnitMatchers.hasItem("Review_Tweet_3"));
// PFad durch den Prozess anschauen
List<HistoricActivityInstance> historyActivities = activitiRule.getProcessEngine().getHistoryService().createHistoricActivityInstanceQuery()
.processInstanceId(processInstance.getId())
.finished()
.orderByActivityId().asc()
.list();
assertEquals(2, historyActivities.size());