Commit 59d7a28a authored by Nico Mack's avatar Nico Mack

Added support for asynchronous attribute of equation tags

parent 21eaad39
......@@ -710,6 +710,14 @@ public class EquationSystemBuilder {
isolated = EquationSystemBundle.ISOLATED_VALUE.equals(mode);
}
String asnychronous = equation.getAttributeValue(EquationSystemBundle.ASYNCHRONOUS_ATTRIBUTE);
boolean defered = false;
if (!Strings.isNullOrEmpty(asnychronous)) {
Matcher regex = booleanPattern.matcher(asnychronous);
defered = regex.matches();
}
String priorityAttribute = equation.getAttributeValue(EquationSystemBundle.PRIORITY_ATTRIBUTE);
int priority = System.DEFAULT_PRIORITY;
......@@ -784,6 +792,7 @@ public class EquationSystemBuilder {
Equation newEquation = new Equation(equationName, variableMapping, script);
newEquation.setExecutor(equationExecutor);
newEquation.setIsolated(isolated);
newEquation.setAsynchronous(defered);
equationSystem.addEquation(newEquation);
equationSystem.setPriority(priority);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment