flowable流程跳转或退回到网关上的用户节点后流程走不下去了

简介: flowable流程跳转或退回到网关上的用户节点后流程走不下去了

更多ruoyi-nbcio功能请看演示系统

gitee源代码地址

前后端代码: https://gitee.com/nbacheng/ruoyi-nbcio

演示地址:RuoYi-Nbcio后台管理系统 http://218.75.87.38:9666/

更多nbcio-boot功能请看演示系统

gitee源代码地址

后端代码: https://gitee.com/nbacheng/nbcio-boot

前端代码:https://gitee.com/nbacheng/nbcio-vue.git

在线演示(包括H5) : http://218.75.87.38:9888

1、流程流转到发起人2后,我跳转到前面网关的张三里面,

2、张三审批完后就出现下面的情况,流转不下去了

这个应该是flowable的bug

3、看下面的内容

...src/main/java/org/flowable/engine/impl/bpmn/behavior/ParallelGatewayActivityBehavior.java
@@ -90,7 +90,7 @@ public void execute(DelegateExecution execution) {
        // Is needed to set the endTime for all historic activity joins
        CommandContextUtil.getActivityInstanceEntityManager().recordActivityEnd((ExecutionEntity) execution, null);
        if (nbrOfExecutionsCurrentlyJoined == nbrOfExecutionsToJoin) {
        if (nbrOfExecutionsCurrentlyJoined == nbrOfExecutionsToJoin || isLatestTaskOfParallelGateway(execution.getProcessInstanceId())) {
            // Fork
            if (LOGGER.isDebugEnabled()) {
@@ -122,6 +122,22 @@ public void execute(DelegateExecution execution) {
    }
    /**
     * Determine if it is the last active task of the parallel gateway
     *
     * @param processInstanceId The process instance ID
     * @return The result is true for the last parallel activity task, otherwise it is not the last parallel activity task.
     */
    private boolean isLatestTaskOfParallelGateway(String processInstanceId) {
        long unfinishedTaskCount = CommandContextUtil.getProcessEngineConfiguration()
                .getRuntimeService()
                .createActivityInstanceQuery()
                .processInstanceId(processInstanceId)
                .unfinished()
                .count();
        return unfinishedTaskCount == 1;
    }
    protected Collection<ExecutionEntity> cleanJoinedExecutions(Collection<ExecutionEntity> joinedExecutions, DelegateExecution multiInstanceExecution) {
        List<ExecutionEntity> cleanedExecutions = new ArrayList<>();
        for (ExecutionEntity executionEntity : joinedExecutions) {

从上面看,应该下个版本会修复了,但到现在都没有合并,也有可能没有解决。

4、所以临时使用其它方法先解决吧

目前我的ruoyi-nbcio的演示平台支持网关的跳转了,但有些复杂嵌套的还有问题,以后有时间解决。

相关文章
|
20天前
|
移动开发 前端开发
基于flowable没有规则的并发网关流程跳转记录分析
基于flowable没有规则的并发网关流程跳转记录分析
21 0
|
20天前
|
移动开发 前端开发
flowable多对并发网关跳转的分析
flowable多对并发网关跳转的分析
12 0
|
20天前
|
移动开发 前端开发
flowable一对并发网关跳转的分析
flowable一对并发网关跳转的分析
22 0
|
20天前
|
移动开发 前端开发 数据库
ruoyi-nbcio 基于flowable规则的多重并发网关的任意跳转
ruoyi-nbcio 基于flowable规则的多重并发网关的任意跳转
29 0
|
20天前
|
运维 网络协议 安全
长连接网关技术专题(十):百度基于Go的千万级统一长连接服务架构实践
本文将介绍百度基于golang实现的统一长连接服务,从统一长连接功能实现和性能优化等角度,描述了其在设计、开发和维护过程中面临的问题和挑战,并重点介绍了解决相关问题和挑战的方案和实践经验。
130 1
|
7月前
|
负载均衡 应用服务中间件 API
微服务技术系列教程(25) - SpringCloud- 接口网关服务Zuul
微服务技术系列教程(25) - SpringCloud- 接口网关服务Zuul
69 0
|
6月前
|
负载均衡 Cloud Native Java
【云原生】Spring Cloud Alibaba 之 Gateway 服务网关实战开发
【云原生】Spring Cloud Alibaba 之 Gateway 服务网关实战开发
606 0
|
20天前
|
缓存 安全 API
【亿级数据专题】「高并发架构」盘点本年度探索对外服务的百万请求量的API网关设计实现
公司对外开放的OpenAPI-Server服务,作为核心内部系统与外部系统之间的重要通讯枢纽,每天处理数百万次的API调用、亿级别的消息推送以及TB/PB级别的数据同步。经过多年流量的持续增长,该服务体系依然稳固可靠,展现出强大的负载能力。
82 9
【亿级数据专题】「高并发架构」盘点本年度探索对外服务的百万请求量的API网关设计实现
|
20天前
|
SpringCloudAlibaba Java 网络架构
【Springcloud Alibaba微服务分布式架构 | Spring Cloud】之学习笔记(七)Spring Cloud Gateway服务网关
【Springcloud Alibaba微服务分布式架构 | Spring Cloud】之学习笔记(七)Spring Cloud Gateway服务网关
144 0
|
12天前
|
运维 负载均衡 API
API服务网关的作用
【5月更文挑战第23天】API服务网关是微服务架构中的统一入口,负责请求路由、组合及协议转换,隐藏内部架构细节。