|
@@ -30,7 +30,7 @@ function getSecondStr(str) {
|
|
|
// return res;
|
|
|
// }
|
|
|
|
|
|
-export function getNodeMsg(xmlObj) {
|
|
|
+export function getNodeMsg(xmlObj, processType) {
|
|
|
// let moddle = getModeler.getModdle();
|
|
|
// console.log(moddle);
|
|
|
// return;
|
|
@@ -60,7 +60,7 @@ export function getNodeMsg(xmlObj) {
|
|
|
}
|
|
|
nodeObj.nodeType = node.localName;
|
|
|
if (nodeObj.nodeType == "sequenceFlow") return;
|
|
|
- let nodeExceptionList = getNodeException(node, nodeObj)
|
|
|
+ let nodeExceptionList = getNodeException(node, nodeObj, processType)
|
|
|
let bpmNodeHandleUser = getBpmNodeHandleUser(node, nodeObj)
|
|
|
let tableNameList = getTableNameList(node, nodeObj)
|
|
|
bpmTableNameList = [...bpmTableNameList, ...tableNameList]
|
|
@@ -73,7 +73,7 @@ export function getNodeMsg(xmlObj) {
|
|
|
nodeObj.nodeKey = node.id;
|
|
|
nodeObj.nodeName = node.getAttribute('name');
|
|
|
// if (nodeObj.nodeName.includes('-')) {
|
|
|
- nodeObj.nodeFormType = 'designForm';
|
|
|
+ nodeObj.nodeFormType = processType == 0 ? 'designForm' : 'dragForm';
|
|
|
nodeObj.nodeFormKey = node.getAttribute(`${prefix}:nodeFormKey`)
|
|
|
// }
|
|
|
// bpmNodeHandleUser.length && (nodeObj.nodeRolePermission = node.getAttribute(`${prefix}:virtuallyRole`));
|
|
@@ -96,11 +96,11 @@ export function getNodeMsg(xmlObj) {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
-function getNodeException(node, nodeObj) {
|
|
|
+function getNodeException(node, nodeObj, processType) {
|
|
|
let prefix = getProcessEngine();
|
|
|
let res = []
|
|
|
let { children } = node;
|
|
|
- let nodeName = node.getAttribute('name'), nodeFormType = 'designForm', formKey = node.getAttribute(`${prefix}:nodeFormKey`);
|
|
|
+ let nodeName = node.getAttribute('name'), nodeFormType = processType == 0 ? 'designForm' : 'dragForm', formKey = node.getAttribute(`${prefix}:nodeFormKey`);
|
|
|
|
|
|
// if (nodeName.includes('-')) {
|
|
|
// nodeFormType = 'designForm';
|
|
@@ -145,7 +145,7 @@ function getNodeException(node, nodeObj) {
|
|
|
// scriptTriggerType: item.attributes?.scriptTriggerType?.nodeValue || 0,
|
|
|
scriptTriggerType: 0,
|
|
|
// scriptNodeFormType: item.getAttribute('formType'),
|
|
|
- scriptNodeFormType: 'designForm',
|
|
|
+ scriptNodeFormType: processType == 0 ? 'designForm' : 'dragForm',
|
|
|
scriptNodeName: formName,
|
|
|
// formKey: item.getAttribute('formId')
|
|
|
formKey: item.getAttribute('compName')
|
|
@@ -286,8 +286,11 @@ const blackArr = [
|
|
|
* 校验节点数据
|
|
|
* @param {xml对象} xmlObj
|
|
|
*/
|
|
|
-export function validateNode(xmlObj) {
|
|
|
+export function validateNode(xmlObj, processType) {
|
|
|
let preFix = getProcessEngine()
|
|
|
+ if (processType == '1') {
|
|
|
+ return { flag: true }
|
|
|
+ }
|
|
|
let res = { flag: true }, nodeList = xmlObj.all;
|
|
|
for (let index = 0; index < nodeList.length; index++) {
|
|
|
const element = nodeList[index];
|