【功能评审】Bpm:审批签名

This commit is contained in:
YunaiV 2025-01-16 13:12:23 +08:00
parent 56f3177a81
commit 31c2e81dd2
6 changed files with 9 additions and 4 deletions

View File

@ -119,7 +119,7 @@ public class BpmSimpleModelNodeVO {
@Schema(description = "路由分支组", example = "[]")
private List<RouterCondition> routerGroups;
@Schema(description = "默认分支 ID", example = "Flow_xxx")
@Schema(description = "默认分支 ID", example = "Flow_xxx", hidden = true) // 由后端生成所以 hidden = true
private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTER_BRANCH_NODE
@Schema(description = "任务监听器")

View File

@ -101,7 +101,8 @@ public class BpmApprovalDetailRespVO {
@Schema(description = "审批意见", example = "同意")
private String reason;
@Schema(description = "签名", example = "http://xxx")
// TODO @lesan改成 signPicUrl 会好点
@Schema(description = "签名", example = "https://www.iocoder.cn/sign.png")
private String sign;
}

View File

@ -18,7 +18,8 @@ public class BpmTaskApproveReqVO {
@NotEmpty(message = "审批意见不能为空")
private String reason;
@Schema(description = "签名", example = "http://xxx")
// TODO @lesan改成 signPicUrl 会好点
@Schema(description = "签名", example = "https://www.iocoder.cn/sign.png")
private String sign;
@Schema(description = "变量实例(动态表单)", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -59,6 +59,7 @@ public class BpmnVariableConstants {
*/
public static final String TASK_VARIABLE_REASON = "TASK_REASON";
// TODO @lesanTASK_SIGN_PIC_URL 虽然长一点嘿嘿
public static final String TASK_VARIABLE_SIGN = "TASK_SIGN";
}

View File

@ -349,7 +349,8 @@ public class BpmnModelUtils {
}
public static void addSignEnable(Boolean signEnable, FlowElement userTask) {
addExtensionElement(userTask, SIGN_ENABLE, ObjUtil.isNotNull(signEnable) ? signEnable.toString() : "false");
addExtensionElement(userTask, SIGN_ENABLE,
ObjUtil.isNotNull(signEnable) ? signEnable.toString() : Boolean.FALSE.toString());
}
public static Boolean parseSignEnable(BpmnModel bpmnModel, String flowElementId) {

View File

@ -213,6 +213,7 @@ public class FlowableUtils {
return (String) task.getTaskLocalVariables().get(BpmnVariableConstants.TASK_VARIABLE_REASON);
}
// TODO @lesan这个方法名也改咧
public static String getTaskSign(TaskInfo task) {
return (String) task.getTaskLocalVariables().get(BpmnVariableConstants.TASK_VARIABLE_SIGN);
}