/**
* 启动流程实例
*/
@Test
public void testRunProcess() {
ProcessEngine processEngine = configuration.buildProcessEngine();
// 需要通过RuntimeService来启动流程
RuntimeService runtimeService = processEngine.getRuntimeService();
// 构建流程变量
Map<String, Object> variable = new HashMap<>();
variable.put("skip", false);
variable.put("_FLOWABLE_SKIP_EXPRESSION_ENABLED", true);
// 启动流程实例
ProcessInstance holidayRequest = runtimeService.startProcessInstanceByKey("LeaveProcess888", variable);
System.out.println("holidayRequest.getId() = " + holidayRequest.getId());
System.out.println("holidayRequest.getProcessDefinitionId() = " + holidayRequest.getProcessDefinitionId());
System.out.println("holidayRequest.getActivityId() = " + holidayRequest.getActivityId());
System.out.println("holidayRequest.getId() = " + holidayRequest.getId());
}
Flowable启动流程实例
最新推荐文章于 2024-07-19 17:25:44 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)