Camunda Spin-LMLPHP

repositoryService.createDeployment().name("消息事件流程")
                .addClasspathResource("bpmn/spin_process.bpmn").deploy();
identityService.setAuthenticatedUserId("huihui");

String userJson = new JSONObject().put("username", "huihui").put("age", 18).toString();
Map<String, Object> variables = new HashMap<>();
variables.put("userJson", userJson);
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("SpinProcess", variables);
// UserTask1
Task task = taskService.createTaskQuery()
       .processInstanceId(processInstance.getId())
       .singleResult();
01-12 07:46