一、该问题的重现步骤是什么?
1. 在流程处理,我这里有个候选组,候选组任何一人通过就可以过审批。
2. 我在请假流程这里做的调整,把候选组存入,但是发起申请后候选组的人都没有看到该任务。代码如下:
@Override @Transactional(rollbackFor = Exception.class) public boolean startProcess(ProcessLeave leave, List<User> userList) { List<String> tempList = new ArrayList<>(); List<Long> tempList2 = new ArrayList<>(); userList.forEach(user -> { tempList.add(user.getName()); tempList2.add(user.getId()); }); String userGroup = TaskUtil.getTaskUser(tempList2); for (int i = 0; i < 10; i++) { System.out.println("tempList2===" + tempList2); System.out.println("userGroup==" + userGroup); } String businessTable = FlowUtil.getBusinessTable(ProcessConstant.LEAVE_KEY); if (Func.isEmpty(leave.getId())) { // 保存leave leave.setApplyTime(DateUtil.now()); save(leave); // 启动流程 Kv variables = Kv.create() .set(ProcessConstant.TASK_VARIABLE_CREATE_USER, SecureUtil.getUserName()) .set("taskUser", TaskUtil.getTaskUser(tempList2)) .set("days", DateUtil.between(leave.getStartTime(), leave.getEndTime()).toDays())//; .set("userGroup", tempList);// 这个是新增字段 BladeFlow flow = flowService.startProcessInstanceById(leave.getProcessDefinitionId(), FlowUtil.getBusinessKey(businessTable, String.valueOf(leave.getId())), variables); if (Func.isNotEmpty(flow)) { log.debug("流程已启动,流程ID:" + flow.getProcessInstanceId()); // 返回流程id写入leave leave.setProcessInstanceId(flow.getProcessInstanceId()); updateById(leave); } else { throw new ServiceException("开启流程失败"); } } else { updateById(leave); } return true; }
二、你期待的结果是什么?实际看到的又是什么?
每个候选人都能收到这个事务,任何人审批过了直接入库。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex-springboot2.12,win10
四、请提供详细的错误堆栈信息,这很重要。
流程无法转给所有审批人
五、若有更多详细信息,请在下面提供。
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef"> <process id="Leave" name="工单审批" isExecutable="true"> <documentation>工单审批</documentation> <startEvent id="start" name="发起人" flowable:initiator="applyUser"></startEvent> <userTask id="managerTask" name="经理审核" flowable:candidateGroups="${userGroup}"></userTask> <userTask id="userTask" name="调整申请" flowable:assignee="${taskUser}"> <extensionElements> <modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler"><![CDATA[true]]></modeler:initiator-can-complete> </extensionElements> </userTask> <endEvent id="end" name="结束"></endEvent> <sequenceFlow id="userPassFlow" name="审核通过" sourceRef="managerTask" targetRef="end"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="userNotPassFlow" name="关闭申请" sourceRef="userTask" targetRef="end"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="managerNotPassFlow" name="驳回(审核不通过)" sourceRef="managerTask" targetRef="userTask"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="flowStart" sourceRef="start" targetRef="managerTask"></sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_Leave"> <bpmndi:BPMNPlane bpmnElement="Leave" id="BPMNPlane_Leave"> <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start"> <omgdc:Bounds height="30.0" width="30.0" x="208.5" y="265.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="managerTask" id="BPMNShape_managerTask"> <omgdc:Bounds height="80.0" width="100.0" x="358.5" y="240.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="userTask" id="BPMNShape_userTask"> <omgdc:Bounds height="80.0" width="100.0" x="358.5" y="415.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end"> <omgdc:Bounds height="28.0" width="28.0" x="643.5" y="266.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="userPassFlow" id="BPMNEdge_userPassFlow"> <omgdi:waypoint x="458.44999999998765" y="280.0"></omgdi:waypoint> <omgdi:waypoint x="643.5" y="280.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="userNotPassFlow" id="BPMNEdge_userNotPassFlow"> <omgdi:waypoint x="458.44999999998765" y="455.0"></omgdi:waypoint> <omgdi:waypoint x="657.5" y="455.0"></omgdi:waypoint> <omgdi:waypoint x="657.5" y="293.9499256774902"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flowStart" id="BPMNEdge_flowStart"> <omgdi:waypoint x="238.44999946593478" y="280.0"></omgdi:waypoint> <omgdi:waypoint x="358.4999999999298" y="280.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="managerNotPassFlow" id="BPMNEdge_managerNotPassFlow"> <omgdi:waypoint x="408.5" y="319.95000000000005"></omgdi:waypoint> <omgdi:waypoint x="408.5" y="415.0"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>
官方新品
- 热议问题
-
强制有些sql查主库
1
-
报文加密后端加密后传给前端,前端解密发现long类型的数据精度丢失
1
-
iot后台通过feign调用不到服务
1
-
variables.scss的@use引入冲突
1
-
cloud版本远程调用提示file文件名不存在
1
-
BladeX-biz 新建module后,启动报错:Failed to determine suitable jdbc url
1
-
powerjob执行任务状态是等待Worker接收,如何解决通讯问题
1
-
框架4.4.0版本的,现有的功能有支持直接获取远程调用抛出的异常提示吗?
1
-
bladex自定义认证模块
2
-
fegin 远程调用如何传递 BladeUser 到远程?
1
扫一扫访问 Blade技术社区 移动端