@Test
public void startProcess() throws Exception {
IdentityService identityService = activitiRule.getIdentityService();
identityService.setAuthenticatedUserId("henryyan");
RepositoryService repositoryService = activitiRule.getRepositoryService();
TaskService taskService = activitiRule.getTaskService();
repositoryService.createDeployment().addInputStream("process1.bpmn20.xml", new FileInputStream(filename)).deploy();
RuntimeService runtimeService = activitiRule.getRuntimeService();
Map<String, Object> variableMap = new HashMap<String, Object>();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("process1", variableMap);
assertNotNull(processInstance.getId());
System.out.println("id " + processInstance.getId() + " " + processInstance.getProcessDefinitionId());