Commit 4d064916 authored by Brian Long's avatar Brian Long
Browse files

fixed multiple condition translation in process model JSON

parent c441a61d
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -196,11 +196,16 @@ public class ApsProcessJsonTranslator extends ApsOrganizationHandler implements

		this.logger.trace("Found a conditional sequence flow in the APS Process descriptor");

		ObjectNode expression = (ObjectNode)jsonConditionalSequenceFlow.get("expression");

        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;
	}