Package org.drools.guvnor.client.modeldriven.dt

Examples of org.drools.guvnor.client.modeldriven.dt.ActionSetFieldCol


            a.action = new ActionRetractFact(rf.boundName);
            a.boundName = rf.boundName;
            actions.add(a);
          }
        } else if (c instanceof ActionSetFieldCol) {
          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);
View Full Code Here


    ActionRetractFactCol ret = new ActionRetractFactCol();
    ret.boundName = "f2";
    dt.actionCols.add(ret);

    ActionSetFieldCol set = new ActionSetFieldCol();
    set.boundName = "f1";
    set.factField = "goo1";
    set.type = SuggestionCompletionEngine.TYPE_STRING;
    dt.actionCols.add(set);

    ActionSetFieldCol set2 = new ActionSetFieldCol();
    set2.boundName = "f1";
    set2.factField = "goo2";
    set2.type = SuggestionCompletionEngine.TYPE_STRING;
    dt.actionCols.add(set2);
View Full Code Here

  public void testRHS() {
    GuidedDTDRLPersistence p = new GuidedDTDRLPersistence();
    String[] row = new String[] {"1", "desc", "a", "a condition", "actionsetfield1", "actionsetfield2", "retract", "actioninsertfact1", "actioninsertfact2"};

    List<ActionCol> cols = new ArrayList<ActionCol>();
    ActionSetFieldCol asf1 = new ActionSetFieldCol();
    asf1.boundName = "a";
    asf1.factField = "field1";

    asf1.type = SuggestionCompletionEngine.TYPE_STRING;
    cols.add(asf1);

    ActionSetFieldCol asf2 = new ActionSetFieldCol();
    asf2.boundName = "a";
    asf2.factField = "field2";
    asf2.update = true;
    asf2.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    cols.add(asf2);
View Full Code Here

    ConditionCol c = new ConditionCol();
    c.boundName = "x";
    c.factType = "Context";
    c.constraintValueType = ISingleFieldConstraint.TYPE_LITERAL;
    dt.conditionCols.add(c);
    ActionSetFieldCol asf = new ActionSetFieldCol();
    asf.boundName = "x";
    asf.factField = "age";
    asf.type = "String";

    dt.actionCols.add(asf);
View Full Code Here

    ConditionCol c = new ConditionCol();
    c.boundName = "x";
    c.factType = "Context";
    c.constraintValueType = ISingleFieldConstraint.TYPE_LITERAL;
    dt.conditionCols.add(c);
    ActionSetFieldCol asf = new ActionSetFieldCol();
    asf.boundName = "x";
    asf.factField = "age";
    asf.type = "String";
    asf.update = true;
View Full Code Here

            a.action = new ActionRetractFact(rf.boundName);
            a.boundName = rf.boundName;
            actions.add(a);
          }
        } else if (c instanceof ActionSetFieldCol) {
          ActionSetFieldCol sf = (ActionSetFieldCol)c;
          LabelledAction a = find(actions, sf.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName = sf.boundName;
            if (!sf.update) {
View Full Code Here

            a.action = new ActionRetractFact(rf.boundName);
            a.boundName = rf.boundName;
            actions.add(a);
          }
        } else if (c instanceof ActionSetFieldCol) {
          ActionSetFieldCol sf = (ActionSetFieldCol)c;
          LabelledAction a = findByLabelledAction(actions, sf.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName = sf.boundName;
            if (!sf.update) {
View Full Code Here

            a.action = new ActionRetractFact(rf.boundName);
            a.boundName = rf.boundName;
            actions.add(a);
          }
        } else if (c instanceof ActionSetFieldCol) {
          ActionSetFieldCol sf = (ActionSetFieldCol)c;
          LabelledAction a = find(actions, sf.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName = sf.boundName;
            if (!sf.update) {
View Full Code Here

    c2.factField = "nothing";
    c2.constraintValueType = ISingleFieldConstraint.TYPE_LITERAL;
    dt.conditionCols.add(c2);


    ActionSetFieldCol asf = new ActionSetFieldCol();
    asf.boundName = "c1";
    asf.factField = "name";
    dt.actionCols.add(asf);

    ActionInsertFactCol ins = new ActionInsertFactCol();
    ins.boundName = "x";
    ins.factField = "rating";
    ins.factType = "Person";
    dt.actionCols.add(ins);

    ActionInsertFactCol ins_ = new ActionInsertFactCol();
    ins_.boundName = "x";
    ins_.factField = "rating";
    ins_.factType = "Person";
    ins_.valueList = "one,two,three";
    dt.actionCols.add(ins_);

    ActionSetFieldCol asf_ = new ActionSetFieldCol();
    asf_.boundName = "c1";
    asf_.factField = "goo";
    dt.actionCols.add(asf_);

    ActionSetFieldCol asf__ = new ActionSetFieldCol();
    asf__.boundName = "c1";
    asf__.factField = "goo";
    asf__.valueList = "one,two,three";
    dt.actionCols.add(asf__);
View Full Code Here

    c2.factType = "Driver";
    c2.factField = "age";
    c2.constraintValueType = ISingleFieldConstraint.TYPE_LITERAL;
    dt.conditionCols.add(c2);

    ActionSetFieldCol a = new ActionSetFieldCol();
    a.boundName = "c1";
    a.factField = "name";
    dt.actionCols.add(a);

    ActionSetFieldCol a2 = new ActionSetFieldCol();
    a2.boundName = "c1";
    a2.factField = "age";
    dt.actionCols.add(a2);

    ActionInsertFactCol ins = new ActionInsertFactCol();
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.modeldriven.dt.ActionSetFieldCol

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.