fixed multiple condition translation in process model JSON

This commit is contained in:
Brian Long 2022-11-18 14:01:46 -05:00
parent c441a61d37
commit 4d064916e9

View File

@ -195,13 +195,18 @@ public class ApsProcessJsonTranslator extends ApsOrganizationHandler implements
return false;
this.logger.trace("Found a conditional sequence flow in the APS Process descriptor");
ObjectNode expression = (ObjectNode)jsonConditionalSequenceFlow.get("expression");
boolean changed = false;
changed = this.translateNamedId(expression, this.apsFormIndex, "outcomeForm") || changed;
changed = this.translateNamedId(expression, this.apsFormIndex, "rightOutcomeForm") || changed;
return changed;
boolean changed = false;
ObjectNode expression = (ObjectNode)jsonConditionalSequenceFlow.get("expression");
while (expression != null) {
changed = this.translateNamedId(expression, this.apsFormIndex, "outcomeForm") || changed;
changed = this.translateNamedId(expression, this.apsFormIndex, "rightOutcomeForm") || changed;
expression = (ObjectNode)expression.get("nextCondition");
}
return changed;
}