jbpm4.3 用户组问题
我是jbpm的初学者;现在遇到这样一个问题,很纠结,请高手赐教!
一个简单的请假流程;我现在想用用户组的方式来实现,比如user(普通),jl(经理),boss(老板)这三个组;
配置:
<process name="leave" xmlns="http://jbpm.org/4.3/jpdl"> <start g="196,25,48,48" name="启动"> <transition to="申请"/> </start> <task candidate-groups="#{type}" form="Jbpm4_TaskView" g="172,118,92,52" name="申请"> <transition to="经理审批"/> </task> <task candidate-groups="#{type}" form="Jbpm4_Manager" g="175,217,92,52" name="经理审批"> <transition g="-32,-8" name="批准" to="exclusive1"/> <transition g="128,221;124,165:-42,-18" name="驳回" to="申请"/> </task> <decision expr="#{day > 3 ? '老板审批' : '结束'}" g="200,308,48,48" name="exclusive1"> <transition g="-39,-10" name="结束" to="结束"/> <transition g="339,342:-71,-17" name="老板审批" to="老板审批"/> </decision> <task candidate-groups="#{type}" form="Jbpm4_Boss" g="294,375,92,52" name="老板审批"> <transition g="339,457:" to="结束"/> </task> <end g="199,445,48,48" name="结束"/></process>
List<Task> taskLists = taskService.findGroupTasks(username);