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、看下面的内容

java 复制代码
 
...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的演示平台支持网关的跳转了,但有些复杂嵌套的还有问题,以后有时间解决。

相关推荐
努力也学不会java5 分钟前
【设计模式】 原型模式
java·设计模式·原型模式
方渐鸿28 分钟前
【2024】k8s集群 图文详细 部署安装使用(两万字)
java·运维·容器·kubernetes·k8s·运维开发·持续部署
学亮编程手记32 分钟前
K8S v1.33 版本主要新特性介绍
java·容器·kubernetes
Haven-2 小时前
Java-面试八股文-JVM篇
java·jvm·面试
我真的是大笨蛋2 小时前
JVM调优总结
java·jvm·数据库·redis·缓存·性能优化·系统架构
wjs0402 小时前
Git常用的命令
java·git·gitlab
superlls2 小时前
(算法 哈希表)【LeetCode 349】两个数组的交集 思路笔记自留
java·数据结构·算法
田里的水稻3 小时前
C++_队列编码实例,从末端添加对象,同时把头部的对象剔除掉,中的队列长度为设置长度NUM_OBJ
java·c++·算法
ponnylv3 小时前
深入剖析Spring Boot启动流程
java·开发语言·spring boot·spring
前行的小黑炭3 小时前
Android 协程的使用:结合一个环境噪音检查功能的例子来玩玩
android·java·kotlin