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

相关推荐
高山上有一只小老虎5 分钟前
mybatisplus实现分页查询
java·spring boot·mybatis
nbsaas-boot7 分钟前
基于 Java 21 ScopedValue 的多租户动态数据源完整实践
java·开发语言
2301_780669868 分钟前
线程安全、线程同步(三种加锁方式)、线程池(两种创建线程池方式、线程池处理Runnable任务、线程池处理Callable任务)、并发/并行
java
liuc031712 分钟前
Java项目关于不同key的读取
java·开发语言
yaoxin52112315 分钟前
296. Java Stream API - 二元操作符与“单位元“
java·服务器·windows
罗伯特_十三33 分钟前
Spring AI ChatModel 使用记录
java·人工智能·spring
毕设源码-朱学姐34 分钟前
【开题答辩全过程】以 基于SpringBoot的律师事务所管理系统的设计与实现为例,包含答辩的问题和答案
java·spring boot·后端
菜宾41 分钟前
java-seata基础教学
java·开发语言·adb
Irene19911 小时前
Vue 3 中移除了 $on、$off 和 $once 方法(附:Composables 组合式函数 使用详解)
vue3
毕设源码-朱学姐1 小时前
【开题答辩全过程】以 基于springboot的日用药品仓库管理系统的设计与实现为例,包含答辩的问题和答案
java·spring boot·后端