一:bpmn
二:java
repositoryService.createDeployment().name("消息事件流程").addClasspathResource("bpmn/msg_event_process.bpmn").deploy();
identityService.setAuthenticatedUserId("huihui");
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("StartMessageEventProcess", "key1");// 主流程:提交订单
Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
taskService.complete(task.getId());
System.out.println("主流程 " + task.getProcessInstanceId());// 根据不同的值启动不同的消息流程
String payType = "alipay";
runtimeService.startProcessInstanceByMessage(payType);
三:db