|
@@ -37,7 +37,7 @@ export function getNodeMsg(xmlObj) {
|
|
|
let prefix = getProcessEngine();
|
|
|
let { attributes, childNodes } = xmlObj
|
|
|
.getElementsByTagName("bpmn:process")[0];
|
|
|
- let bpmProcessConfigurationList = [], bpmNodeHandleUserList = [], bpmNodeScriptRelevanceList = [], bpmTableNameList = [], attributeArray = ['nodeKey', 'nodeFormKey', 'nodeProcessKey', 'nodeRolePremission', 'spare1', 'spare2', 'spare3', 'createBy', 'updateBy', 'remark', 'nodeExecuteType'];
|
|
|
+ let bpmProcessConfigurationList = [], bpmNodeHandleUserList = [], bpmNodeScriptRelevanceList = [], bpmTableNameList = [], attributeArray = ['nodeKey', 'nodeFormKey', 'nodeProcessKey', 'spare1', 'spare2', 'spare3', 'createBy', 'updateBy', 'remark', 'nodeExecuteType'];
|
|
|
childNodes.forEach((node) => {
|
|
|
// let uuid = uuidv4();
|
|
|
|
|
@@ -77,7 +77,7 @@ export function getNodeMsg(xmlObj) {
|
|
|
nodeObj.nodeFormType = 'designForm';
|
|
|
nodeObj.nodeFormKey = node.getAttribute(`${prefix}:nodeFormKey`)
|
|
|
// }
|
|
|
- bpmNodeHandleUser.length && (nodeObj.nodeRolePermission = node.getAttribute(`${prefix}:virtuallyRole`));
|
|
|
+ // bpmNodeHandleUser.length && (nodeObj.nodeRolePermission = node.getAttribute(`${prefix}:virtuallyRole`));
|
|
|
let asyncBefore = node.getAttribute(`${prefix}:asyncBefore`)
|
|
|
if (asyncBefore == 'true') {
|
|
|
nodeObj.nodeBefore = 'true';
|
|
@@ -174,8 +174,17 @@ function getBpmNodeHandleUser(node, nodeObj) {
|
|
|
if (!node.attributes.length || !node.getAttribute('camunda:executeUser')) return []
|
|
|
let res = {}, prefix = getProcessEngine();
|
|
|
let uuid = node.getAttribute(`${prefix}:virtuallyRole`)
|
|
|
- res.virtuallyRole = uuid;
|
|
|
- // nodeObj.nodeRolePremission = uuid
|
|
|
+ console.log(uuid);
|
|
|
+ if (uuid) {
|
|
|
+ res.virtuallyRole = uuid;
|
|
|
+ nodeObj.nodeRolePremission = uuid
|
|
|
+ } else {
|
|
|
+ let newUUID = uuidv4()
|
|
|
+ res.virtuallyRole = newUUID;
|
|
|
+ nodeObj.nodeRolePremission = newUUID;
|
|
|
+ }
|
|
|
+ console.log(nodeObj);
|
|
|
+
|
|
|
let type = node.getAttribute('camunda:executeUserType');
|
|
|
switch (type) {
|
|
|
case '1':
|