feat(approval): 会签进度("已会签 N/M") — approval-context 多实例计数
- ApprovalContextDto(flowable + gateway)加 cosign/cosignTotal/cosignCompleted - FlowController.approvalContext: fillCosign 沿执行树向上找带 nrOfInstances 的 多实例根执行,读 nrOfInstances/nrOfCompletedInstances 回填 - gateway ApprovalController.approvalMeta 透传 cosign 字段 - 单测 FlowControllerTest 会签进度回填(22 绿);live(8089)实证 cosign:true 0/2 注:gateway 端 cosign 展示当前被 platform-report 引入的上古 xerces-eip3.jar(2004) 击穿 WfTemplate XML 解析所阻(AbstractMethodError on DocumentBuilderFactory.setFeature, 影响全部 approve/reject 按钮解析,非本改动引入,需在 report 模块侧隔离/排除该 xerces)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,4 +19,10 @@ public class ApprovalContextDto {
|
||||
public String businessKey;
|
||||
public boolean ended;
|
||||
public boolean suspended;
|
||||
/** 是否会签(BPMN 多实例)任务。 */
|
||||
public boolean cosign;
|
||||
/** 会签总人数。 */
|
||||
public int cosignTotal;
|
||||
/** 会签已完成人数。 */
|
||||
public int cosignCompleted;
|
||||
}
|
||||
|
||||
@@ -117,6 +117,10 @@ public class ApprovalController {
|
||||
resp.put("processInstanceId", ctx == null ? null : ctx.processInstanceId);
|
||||
resp.put("ended", ctx != null && ctx.ended);
|
||||
resp.put("suspended", ctx != null && ctx.suspended);
|
||||
// 会签(多实例)进度:前端显「已会签 N/M」
|
||||
resp.put("cosign", ctx != null && ctx.cosign);
|
||||
resp.put("cosignTotal", ctx == null ? 0 : ctx.cosignTotal);
|
||||
resp.put("cosignCompleted", ctx == null ? 0 : ctx.cosignCompleted);
|
||||
|
||||
// 业务表单页面:生效表单模板(任务/开始节点)的 pageid 命中 sys_page_schema 优先——即老审批页用的同一张页面;
|
||||
// 都没有再退该业务表标准 editform。前端据此渲染只读业务单据。
|
||||
|
||||
Reference in New Issue
Block a user