i deployed a proces definition to activiti engine , when i start process in explorer i can see the diagram in my instance tag, but when i start process through invoking java api , i can not find the process instance in explorer ( i can fined my task in explorer ), the explorer app shows no error. anyone know why?private String filename = "E:/opensource/activiti-5.9/activiti-5.9/workspace/activiti-engine-examples/src/main/process/wsl/TestPro.bpmn";
@Rule
public ActivitiRule activitiRule = new ActivitiRule();
@Test
public void startProcess() throws Exception {
RepositoryService repositoryService = activitiRule.getRepositoryService();
repositoryService.createDeployment().addInputStream("process1.bpmn20.xml",
new FileInputStream(filename)).deploy();
RuntimeService runtimeService = activitiRule.getRuntimeService();
Map<String, Object> variableMap = new HashMap<String, Object>();
variableMap.put("name", "Activiti");
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("process1", variableMap);
assertNotNull(processInstance.getId());
System.out.println("id " + processInstance.getId() + " "
+ processInstance.getProcessDefinitionId());
}i may find the reason ,in table ACT_HI_PROCINST , there is start_user_id, when start process instance by invoking java api, this field is not set.am i right?but which method can set this field?