ecinc-cloud-wappaio 9.6.407 → 9.6.408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144199,7 +144199,10 @@ var wfengine_install = function install(Vue) {
144199
144199
  }
144200
144200
  if ($scope.wfJsonData && $scope.wfJsonData.routes) {
144201
144201
  if ($scope.wfJsonData && $scope.wfInstance.passenger.isUdmNodes === 1) {
144202
- $scope.wfJsonData.routes = [];
144202
+ if ($scope.curTN.tnToDoMode !== 2 && $scope.curTN.tnToDoMode !== 3) {
144203
+ //自由协同,非串行、会签节点,忽略后端wfJsonData数据
144204
+ $scope.wfJsonData.routes = [];
144205
+ }
144203
144206
  }
144204
144207
 
144205
144208
  // 是否有需要复制引用其它环节处理人
@@ -144412,6 +144415,11 @@ var wfengine_install = function install(Vue) {
144412
144415
  var customRoutes = [];
144413
144416
  if ($scope.curTN.passenger.needClaim) {
144414
144417
  return customRoutes;
144418
+ } else if ($scope.curTN.tnToDoMode === 2 || $scope.curTN.tnToDoMode === 3) {
144419
+ //会签、串行节点路径,由后端自动计算生成
144420
+ if ($scope.wfJsonData && $scope.wfJsonData.routes && $scope.wfJsonData.routes.length > 0) {
144421
+ return $scope.wfJsonData.routes;
144422
+ }
144415
144423
  }
144416
144424
  $scope.wfInstance.udmNodes.forEach(function (taskNode, index) {
144417
144425
  if (taskNode.name === $scope.curTN.tnNodeName) {
@@ -144709,6 +144717,12 @@ var wfengine_install = function install(Vue) {
144709
144717
  if (res.code === 'success') {
144710
144718
  console.log('wfEngineService getWfJsonData success');
144711
144719
  $scope.wfJsonData = res.body.wfJsonData;
144720
+ if ($scope.wfJsonData && $scope.wfInstance.passenger.isUdmNodes === 1) {
144721
+ if ($scope.curTN.tnToDoMode !== 2 && $scope.curTN.tnToDoMode !== 3) {
144722
+ //自由协同,非串行、会签节点,忽略后端wfJsonData数据
144723
+ $scope.wfJsonData.routes = [];
144724
+ }
144725
+ }
144712
144726
  if (res.body.udmjysp) {
144713
144727
  $scope.wfInstance.passenger.udmjysp = res.body.udmjysp;
144714
144728
  $scope.wfInstance.passenger.isUdmNodes = res.body.isUdmNodes;
@@ -144209,7 +144209,10 @@ var wfengine_install = function install(Vue) {
144209
144209
  }
144210
144210
  if ($scope.wfJsonData && $scope.wfJsonData.routes) {
144211
144211
  if ($scope.wfJsonData && $scope.wfInstance.passenger.isUdmNodes === 1) {
144212
- $scope.wfJsonData.routes = [];
144212
+ if ($scope.curTN.tnToDoMode !== 2 && $scope.curTN.tnToDoMode !== 3) {
144213
+ //自由协同,非串行、会签节点,忽略后端wfJsonData数据
144214
+ $scope.wfJsonData.routes = [];
144215
+ }
144213
144216
  }
144214
144217
 
144215
144218
  // 是否有需要复制引用其它环节处理人
@@ -144422,6 +144425,11 @@ var wfengine_install = function install(Vue) {
144422
144425
  var customRoutes = [];
144423
144426
  if ($scope.curTN.passenger.needClaim) {
144424
144427
  return customRoutes;
144428
+ } else if ($scope.curTN.tnToDoMode === 2 || $scope.curTN.tnToDoMode === 3) {
144429
+ //会签、串行节点路径,由后端自动计算生成
144430
+ if ($scope.wfJsonData && $scope.wfJsonData.routes && $scope.wfJsonData.routes.length > 0) {
144431
+ return $scope.wfJsonData.routes;
144432
+ }
144425
144433
  }
144426
144434
  $scope.wfInstance.udmNodes.forEach(function (taskNode, index) {
144427
144435
  if (taskNode.name === $scope.curTN.tnNodeName) {
@@ -144719,6 +144727,12 @@ var wfengine_install = function install(Vue) {
144719
144727
  if (res.code === 'success') {
144720
144728
  console.log('wfEngineService getWfJsonData success');
144721
144729
  $scope.wfJsonData = res.body.wfJsonData;
144730
+ if ($scope.wfJsonData && $scope.wfInstance.passenger.isUdmNodes === 1) {
144731
+ if ($scope.curTN.tnToDoMode !== 2 && $scope.curTN.tnToDoMode !== 3) {
144732
+ //自由协同,非串行、会签节点,忽略后端wfJsonData数据
144733
+ $scope.wfJsonData.routes = [];
144734
+ }
144735
+ }
144722
144736
  if (res.body.udmjysp) {
144723
144737
  $scope.wfInstance.passenger.udmjysp = res.body.udmjysp;
144724
144738
  $scope.wfInstance.passenger.isUdmNodes = res.body.isUdmNodes;