Package org.beangle.ems.rule

Examples of org.beangle.ems.rule.Context


    rule2.setServiceName("org.beangle.rule.impl.RuleExecutor2");

    // rules.add(rule1);
    rules.add(rule2);

    Context context = new SimpleContext();
    RuleExecutor exceutor = builder.build(rules, false);
    exceutor.execute(context);
  }
View Full Code Here


import org.beangle.test.spring.SpringTestCase;

public class SimpleEngineTest extends SpringTestCase {

  public void testEngine() {
    Context context = new SimpleContext();
    Engine engine = new SimpleEngine();
    RuleBase ruleBase = new TestRuleBase();
    // Rule rule1 = new BusinessRule();
    // rule1.setFactory(DefaultRuleExecutorBuilder.SPRING);
    // rule1.setServiceName("ruleExecutor1");
View Full Code Here

TOP

Related Classes of org.beangle.ems.rule.Context

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.