(in ExampleApp7.java) ... // To reduce overheads, disable "automatic-activation" feature. Map optionMap = new HashMap(); optionMap.put("AUTOMATIC_ACTIVATION_ENABLED", false); ... // Activate the engine manually. engine.activate(); ... // Execute the expression (or script) repetitively with changing the value of "x". for (int i=0; i