Camunda实战教程
Last updated
Last updated
spring:
datasource:
#配置mysql数据看
url: jdbc:mysql://localhost:3306/camunda?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例
username: root
password: 123456
camunda:
bpm:
#配置admin用户
admin-user:
id: demo
password: demo
first-name: demo
filter:
create: All tasks @GetMapping("/start/{processKey}")
public void start(@PathVariable(value = "processKey") String processKey,String name) {
identityService.setAuthenticatedUserId("user");
HashMap<String, Object> map = new HashMap<>();
map.put("user",name);
runtimeService.startProcessInstanceByKey(processKey,map);
}