Examples of ActionSetFieldCol


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

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

    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

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

  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

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

    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

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

    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

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;
            if (!sf.update) {
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.ActionSetFieldCol

        ActionRetractFactCol ret = new ActionRetractFactCol();
        ret.boundName = "ret1";
        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.defaultValue = "whee";
        set2.type = SuggestionCompletionEngine.TYPE_STRING;
        dt.actionCols.add( set2 );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.ActionSetFieldCol

        ActionRetractFactCol ret = new ActionRetractFactCol();
        ret.boundName = "ret1";
        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.defaultValue = "whee";
        set2.type = SuggestionCompletionEngine.TYPE_STRING;
        dt.actionCols.add( set2 );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.ActionSetFieldCol

        col.factField = "hair";
        col.factType = "Person";
        col.operator = "==";
        dt.conditionCols.add( col );

        ActionSetFieldCol ac = new ActionSetFieldCol();
        ac.boundName = "p";
        ac.factField = "likes";
        ac.type = SuggestionCompletionEngine.TYPE_STRING;
        dt.actionCols.add( ac );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt.ActionSetFieldCol

        col.setFactField( "hair" );
        col.setFactType( "Person" );
        col.setOperator( "==" );
        dt.getConditionCols().add( col );

        ActionSetFieldCol ac = new ActionSetFieldCol();
        ac.setBoundName( "p" );
        ac.setFactField( "likes" );
        ac.setType( SuggestionCompletionEngine.TYPE_STRING );
        dt.getActionCols().add( ac );

        dt.setData( RepositoryUpgradeHelper.makeDataLists( new String[][]{new String[]{"1", "descrip", "pink", "cheese"}} ) );

        String uid = impl.createNewRule( "decTable",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.