Package org.mule.mvel2.integration.impl

Examples of org.mule.mvel2.integration.impl.SimpleValueResolver


    @Override
    public VariableResolver createIndexedVariable(int index, String name, Object value) {
      VariableResolver vr = variableResolvers.getByIndex(index);

      if (vr == null) {
        vr = new SimpleValueResolver(value);
        variableResolvers.putAtIndex(index, vr);
      }
      else {
        vr.setValue(value);
      }
View Full Code Here


    @Override
    public VariableResolver createIndexedVariable(int index, String name, Object value) {
      VariableResolver vr = variableResolvers.getByIndex(index);

      if (vr == null) {
        vr = new SimpleValueResolver(value);
        variableResolvers.putAtIndex(index, vr);
      }
      else {
        vr.setValue(value);
      }
View Full Code Here

    public Object evaluate(final WorkingMemory workingMemory,
                           ProcessContext context) throws Exception {
        DroolsMVELFactory factory = (DroolsMVELFactory) this.prototype.clone();
       
        factory.addResolver("context", new SimpleValueResolver(context));
        factory.addResolver("kcontext", new SimpleValueResolver(context));
        if (variableNames != null) {
          for (String variableName: variableNames) {
            factory.addResolver(
            variableName, new SimpleValueResolver(context.getVariable(variableName)));
          }
        }
       
        factory.setContext( null,
                            null,
View Full Code Here

   
    public void execute(final KnowledgeHelper knowledgeHelper, final WorkingMemory workingMemory, ProcessContext context) throws Exception {
        // must clone to avoid concurrency problems
        DroolsMVELFactory factory = (DroolsMVELFactory) this.prototype.clone();
       
        factory.addResolver("context", new SimpleValueResolver(context));
        factory.addResolver("kcontext", new SimpleValueResolver(context));
        if (variableNames != null) {
          for (String variableName: variableNames) {
            factory.addResolver(
            variableName, new SimpleValueResolver(context.getVariable(variableName)));
          }
        }
       
        factory.setContext( null,
                            knowledgeHelper,
View Full Code Here

   
    public void execute(final KnowledgeHelper knowledgeHelper, final WorkingMemory workingMemory, ProcessContext context) throws Exception {
        // must clone to avoid concurrency problems
        DroolsMVELFactory factory = (DroolsMVELFactory) this.prototype.clone();
       
        factory.addResolver("context", new SimpleValueResolver(context));
        if (variableNames != null) {
          for (String variableName: variableNames) {
            factory.addResolver(
            variableName, new SimpleValueResolver(context.getVariable(variableName)));
          }
        }
       
        factory.setContext( null,
                            knowledgeHelper,
View Full Code Here

TOP

Related Classes of org.mule.mvel2.integration.impl.SimpleValueResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.