+
+ 草稿节点只能改名不能删除,且审批人必须为发起人,否则会导致流程审批异常。
+
{
export const initStartProperties = () => {
const bpmnStore = useBpmnStore();
initProperties(getStartNodeId, BpmnNodeKey.START, t('开始节点'), bpmnStore.processInfo.processId);
+ initProperties('Activity_draft', BpmnNodeKey.USER, '发起审批', bpmnStore.processInfo.processId);
};
// 修改流程属性
export const changeProcessProperties = async (processConfig: ProcessConfig) => {
@@ -74,7 +75,27 @@ export const initProperties = (id: InfoId, type: InfoType, name: string, parentI
properties.noHandler = processInfo.noHandler;
properties.isPrevChooseNext = processInfo.isPrevChooseNext;
}
-
+ if (id === 'Activity_draft') {
+ // 将草稿节点的审批人设置为流程发起者
+ properties.approverConfigs = [{
+ checked:false,
+ id: 'Event_start_node',
+ memberType: 3,
+ name: '开始节点'
+ }];
+ properties.countersignConfig = {
+ addOrRemove: 1,
+ finishType: 0,
+ multipleInstancesType: 0,
+ percentage: 0,
+ countersignList: [{
+ checked: false,
+ id: 'Event_start_node',
+ memberType: 3,
+ name: '开始节点'
+ }]
+ }
+ }
setProperties(id, properties);
};
// 移除节点信息缓存
@@ -142,13 +163,30 @@ export const getInitializeXml = (resourceId: string) => {
-
+
+ Flow_line_draft
+
+
+ Flow_line_draft
+
+
+
+
+
+
+
+
+
+
+
+
+