/** * Constructor that extracts the {@link ExecutorContext} internals and turns them into variables. * This method extracts the trasient variables, runtime arguments, environment it's running in and * the context in which it is running as identifiers that can be used within JEXL expression. * * @param context to be examined to be extracted into JEXL expression variables. */ public ELContext(ExecutorContext context) { if (context == null) { return; } // Adds the transient store variables. for (String variable : context.getTransientStore().getVariables()) { values.put(variable, context.getTransientStore().get(variable)); } values.put("runtime", context.getProperties()); values.put("environment", context.getEnvironment().name()); values.put("context", context.getContextName()); }