(十一)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("msg", "重要情况");
processEngine.getTaskService().complete("80002",variables);
}
查看历史活动节点如下图,可知流程并没有经过王五(班主任)。
当流程走到“班长审批”任务节点的时候,如果是重要情况,则如下:
/**
* 完成任务
*/
@Test
public void test_completeTask2() {
Map<String, Object> variables=new HashMap<String,Object>();
variables.put("msg", "重要情况");
processEngine.getTaskService().complete("87502",variables);
}
此时需要班主任(王五)审批,班主任审批之后,查看历史活动节点表
小结
参考资料和推荐阅读
1.链接: 参考资料.
本文详细介绍了Activiti5中流程控制网关的使用,通过实例展示了如何设置条件使得在不同情况下,审批流程选择班长或班主任进行审批。在测试用例中,当msg为'重要情况'时,流程会流转到班主任(王五)审批,否则由班长审批。文章最后进行了小结,并提供了参考资料。
1757

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



