--添加测试模块

This commit is contained in:
2025-10-13 11:53:54 +08:00
parent c3c93fe308
commit e1326c7ce8
146 changed files with 11171 additions and 807 deletions

View File

@ -25,7 +25,9 @@ import {
ExecutionType,
MemberType,
ApproveType,
NodeEventExType, SubProcessType,
NodeEventExType,
SubProcessType,
RejectApprover,
} from '/@/enums/workflowEnum';
import { BpmnNodeKey } from '/@/enums/workflowEnum';
@ -98,8 +100,12 @@ export interface ProcessConfig {
nameRule?: string; //命名规则
nameRuleConfigs?: NameRule; // 命名规则列表
autoAgreeRule?: Array<AutoAgreeRule>; //自动同意规则
autoAgreeMsg?: string; //自动审批意见
isPrevChooseNext: DesignatedApprover; //是否上一节点审批人指定下一节点审批人
noHandler: NoHandler; //无对应处理人
isChooseMulti: Boolean;
isChooseAll: Boolean;
isReadOnly: Boolean;
defaultFormList: Array<FormSettingItem>; //默认表单
appShow: boolean; //移动端是否显示
content?: string; //bpmn 设计 xml
@ -119,6 +125,7 @@ export interface ProcessConfig {
globalSuspendedBeforeEventConfigs: NodeEventConfig[];//全局 挂起/暂停事件
globalRestoreAfterEventConfigs: NodeEventConfig[];//全局 恢复事件
globalSetSignAfterEventConfigs: NodeEventConfig[];//全局 会签事件
globalWorkflowDataUpdate: string; //回写流程状态脚本
xmlContent: String; //xml
}
@ -174,6 +181,7 @@ export interface UserTaskConfig extends BasicNodeConfig {
parentId: string; //父节点流程id
currentProgress: undefined | number; //进度
autoAgreeRule: Array<AutoAgreeRule>; //自动同意规则
autoAgreeMsg: string; //自动审批意见
isPrevChooseNext: DesignatedApprover; //是否上一节点审批人指定下一节点审批人
noHandler: NoHandler; //无对应处理人
provisionalApprover: Boolean; //临时审批人
@ -188,6 +196,20 @@ export interface UserTaskConfig extends BasicNodeConfig {
assignmentConfig: AssignmentConfig; //参数操作
timeOutHandle: TimeOutConfig; //超时处理
isChooseParallel: Boolean; //是否选择并行节点
isChooseMulti: Boolean;
isChooseAll: Boolean;
isReadOnly: Boolean;
rejectToPerson: RejectApprover, //退回到候选人/审批人
rejectIsChooseAll: Boolean, //退回是否全选
rejectIsChooseMulti: Boolean, //退回是否多选
rejectIsReadOnly: Boolean, //退回是否只读
forbidRejectToNodes: string[], //禁止退回到节点
rejectToLastNodeOnly: Boolean,//只能退回到上个节点
forbidRejectByOtherNodes: Boolean, //不能被其他节点退回到
commitToRejectNode:Boolean, //允许直接提交到退回前节点
// rejectToMainProcess:true, //退回到主流程
rejectNotToStorey: string[], //禁止退回到子流程
rejectAllSubProcess:Boolean, //退回所有子流程
}
/**
* 脚本节点配置
@ -227,12 +249,12 @@ export interface EndEventConfig extends BasicNodeConfig {
*/
export interface SubProcessConfig extends BasicNodeConfig {
parentId: string; //父节点流程id
subProcessType: SubProcessType.MULTIPLE, // 调用类型
finishType: FinishType.ALL, //完成条件
subProcessType: SubProcessType, // 调用类型
finishType: FinishType, //完成条件
percentOf: undefined, //百分比数值
executionType: ExecutionType.PARALLEL, //执行类型
executionType: ExecutionType, //执行类型
originatorNode: '', //如果调用类型为单实例 子流程发起人
originatorType: MemberType.FORM_FIELD, //发起人类型
originatorType: MemberType, //发起人类型
originatorConfig: '', //表单数据
approverConfigs: MemberConfig[], //审批人
inParams: [], //输入参数