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

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


    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + 2];
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = find(actions, ac.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName  = ac.boundName;
            ActionInsertFact ins = new ActionInsertFact(ac.factType);
View Full Code Here


    con4.factType = "Driver";
    con4.header = "Driver 2 pimp";
    dt.conditionCols.add(con4);


    ActionInsertFactCol ins = new ActionInsertFactCol();
    ins.boundName = "ins";
    ins.factType = "Cheese";
    ins.factField = "price";
    ins.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    dt.actionCols.add(ins);
View Full Code Here

    ActionRetractFactCol ret = new ActionRetractFactCol();
    ret.boundName = "ret";
    cols.add(ret);

    ActionInsertFactCol ins1 = new ActionInsertFactCol();
    ins1.boundName = "ins";
    ins1.factType = "Cheese";
    ins1.factField = "price";
    ins1.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    cols.add(ins1);

    ActionInsertFactCol ins2 = new ActionInsertFactCol();
    ins2.boundName = "ins";
    ins2.factType = "Cheese";
    ins2.factField = "type";
    ins2.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    cols.add(ins2);
View Full Code Here

            if (!validCell(cell)) {
                cell = c.defaultValue;
            }
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = find(actions, ac.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName  = ac.boundName;
            ActionInsertFact ins = new ActionInsertFact(ac.factType);
View Full Code Here

            if (!validCell(cell)) {
                cell = c.defaultValue;
            }
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = findByLabelledAction(actions, ac.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName  = ac.boundName;
            ActionInsertFact ins = new ActionInsertFact(ac.factType);
View Full Code Here

    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + GuidedDecisionTable.INTERNAL_ELEMENTS];
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = find(actions, ac.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName  = ac.boundName;
            ActionInsertFact ins = new ActionInsertFact(ac.factType);
View Full Code Here

    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_);
View Full Code Here

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

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

    ActionInsertFactCol ins_ = new ActionInsertFactCol();
    ins_.boundName = "x";
    ins_.factType = "Driver";
    ins_.factField = "age";
    dt.actionCols.add(ins_);
View Full Code Here

    con4.factType = "Driver";
    con4.header = "Driver 2 pimp";
    dt.conditionCols.add(con4);


    ActionInsertFactCol ins = new ActionInsertFactCol();
    ins.boundName = "ins";
    ins.factType = "Cheese";
    ins.factField = "price";
    ins.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    dt.actionCols.add(ins);
View Full Code Here

    ActionRetractFactCol ret = new ActionRetractFactCol();
    ret.boundName = "ret";
    cols.add(ret);

    ActionInsertFactCol ins1 = new ActionInsertFactCol();
    ins1.boundName = "ins";
    ins1.factType = "Cheese";
    ins1.factField = "price";
    ins1.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    cols.add(ins1);

    ActionInsertFactCol ins2 = new ActionInsertFactCol();
    ins2.boundName = "ins";
    ins2.factType = "Cheese";
    ins2.factField = "type";
    ins2.type = SuggestionCompletionEngine.TYPE_NUMERIC;
    cols.add(ins2);
View Full Code Here

TOP

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

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.