(十一)Activitivi5之流程控制网关:连线
LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
Activitivi5之流程控制网关:连线
所谓排他网关 顾名思义 执行到该网关,根据条件只能走一条执行线。
@Test
public void test_completeTask2() {
Map<String, Object> variables=new HashMap<String,Object>();
variables.put("days", 15);
processEngine.getTaskService().complete("125004",variables);
}
结果如下图可知流程走到“校长审批”任务节点
select * from act_run_task:
校长审批”任务节点完成之后,查看历史节点活动表:
小结
参考资料和推荐阅读
1.链接: 参考资料.
本文介绍了Activiti5中的排他网关,通过代码示例展示了如何根据条件执行唯一路径。在测试用例中,当days变量为15时,流程进入'校长审批'任务节点。完成任务后,检查历史活动表明流程按预期执行。文章总结了流程控制的关键点,并提供了参考资料供进一步阅读。
3851

被折叠的 条评论
为什么被折叠?



