Package org.drools.guvnor.client.modeldriven.brl

Examples of org.drools.guvnor.client.modeldriven.brl.ActionSetField


    RuleModel rm = new RuleModel();
    p.doActions(2, cols, row, rm);
    assertEquals(3, rm.rhs.length);

    //examine the set field action that is produced
    ActionSetField a1 = (ActionSetField) rm.rhs[0];
    assertEquals("a", a1.variable);
    assertEquals(2, a1.fieldValues.length);

    assertEquals("field1", a1.fieldValues[0].field);
    assertEquals("actionsetfield1", a1.fieldValues[0].value);
View Full Code Here


          ActionSetFieldCol sf = (ActionSetFieldCol)c;
          LabelledAction a = find(actions, sf.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName = sf.boundName;
            a.action = new ActionSetField(sf.boundName);
            actions.add(a);
          }
          ActionSetField asf = (ActionSetField) a.action;
          ActionFieldValue val = new ActionFieldValue(sf.factField, cell, sf.type);
          asf.addFieldValue(val);
        }
      }
    }

    rm.rhs = new IAction[actions.size()];
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.modeldriven.brl.ActionSetField

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.