flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
7.87k stars 2.6k forks source link

completionCondition---Even if the conditions are not met, it can still proceed to the next node #3979

Open lichengliang1 opened 2 hours ago

lichengliang1 commented 2 hours ago
  <multiInstanceLoopCharacteristics isSequential="false" flowable:collection="multi_inst_userList" flowable:elementVariable="assignee">
    <extensionElements></extensionElements>
    <completionCondition>${passCount/totalCount>=0.5}</completionCondition>
  </multiInstanceLoopCharacteristics>

passCount = 0;totalCount=3;

complete task code : param.put("passCount", passCount); param.put("totalCount", totalCount); processEngine.getTaskService().complete(taskId,param);

All user submissions are disagreeing, The passCount parameter is always equal to 0 ;

  1. If the conditions are not met, it should not be executed to the next node
lichengliang1 commented 2 hours ago

flowable version:6.8.1