|
|
@@ -437,7 +437,11 @@ public class FlowService extends BaseTransaction {
|
|
|
String alignProcessNameWithReleasedVersion(GeneralDBAccess baseGdba, Long mkid, BpmLc bigBpmLc, BpmLc bpmLc, BpmLctfbjl currentRelease, String jpdlXmlContent) throws Exception {
|
|
|
Long beforeBbh = currentRelease != null ? currentRelease.getBbh() : null;
|
|
|
String targetProcessKey = extractProcessKey(jpdlXmlContent);
|
|
|
- String targetProcessName = getReleasedProcessName(baseGdba, mkid, bpmLc.getLcid(), beforeBbh, targetProcessKey);
|
|
|
+ boolean isChildFlow = StringUtil.notNull(bigBpmLc.getLcid()) && StringUtil.notNull(bpmLc.getLcid())
|
|
|
+ && !bigBpmLc.getLcid().equals(bpmLc.getLcid());
|
|
|
+ // 子流程必须使用自身名称。历史子流程曾错误引用了父流程 JPDL,不能复用其中的 process name。
|
|
|
+ String targetProcessName = isChildFlow ? null
|
|
|
+ : getReleasedProcessName(baseGdba, mkid, bpmLc.getLcid(), beforeBbh, targetProcessKey);
|
|
|
if (StringUtil.isNull(targetProcessName)) {
|
|
|
Long lclbid = StringUtil.notNull(bigBpmLc.getLclbid()) ? bigBpmLc.getLclbid() : bpmLc.getLclbid();
|
|
|
targetProcessName = mkid + "-" + lclbid + "-" + bpmLc.getMc();
|