Examples of ActionInsertFactCol


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

        ActionSetFieldCol asfc = new ActionSetFieldCol();
        asfc.setBoundName( "d1" );
        asfc.setFactField( "age" );

        ActionInsertFactCol aifc = new ActionInsertFactCol();
        aifc.setBoundName( "d2" );
        aifc.setFactType( "Driver" );
        aifc.setFactField( "age" );

        ConditionCol c1 = new ConditionCol();
        c1.setBoundName( "c1" );
        c1.setFactType( "Driver" );
        c1.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL );
View Full Code Here

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

            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

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

            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

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

    @Test
    public void testRoundTrip() {

    GuidedDecisionTable dt = new GuidedDecisionTable();

    dt.getActionCols().add(new ActionInsertFactCol());
    ActionSetFieldCol set = new ActionSetFieldCol();
    set.setFactField( "foo" );
    dt.getActionCols().add(set);

    dt.getMetadataCols().add(new MetadataCol());
View Full Code Here

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

        con4.setFactType( "Driver" );
        con4.setHeader( "Driver 2 pimp" );
        con4.setFactField( "(not needed)" );
        dt.getConditionCols().add( con4 );

        ActionInsertFactCol ins = new ActionInsertFactCol();
        ins.setBoundName( "ins" );
        ins.setFactType( "Cheese" );
        ins.setFactField( "price" );
        ins.setType( SuggestionCompletionEngine.TYPE_NUMERIC );
        dt.getActionCols().add( ins );

        ActionRetractFactCol ret = new ActionRetractFactCol();
        ret.setBoundName( "f2" );
        dt.getActionCols().add( ret );
View Full Code Here

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

        con4.setFactType( "Driver" );
        con4.setHeader( "Driver 2 pimp" );
        con4.setFactField( "this.hasSomething($param)" );
        dt.getConditionCols().add( con4 );

        ActionInsertFactCol ins = new ActionInsertFactCol();
        ins.setBoundName( "ins" );
        ins.setFactType( "Cheese" );
        ins.setFactField( "price" );
        ins.setType( SuggestionCompletionEngine.TYPE_NUMERIC );
        dt.getActionCols().add( ins );

        ActionRetractFactCol ret = new ActionRetractFactCol();
        ret.setBoundName( "f2" );
        dt.getActionCols().add( ret );
View Full Code Here

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

        con4.setFactType( "Driver" );
        con4.setHeader( "Driver 2 pimp" );
        con4.setFactField( "(not needed)" );
        dt.getConditionCols().add( con4 );

        ActionInsertFactCol ins = new ActionInsertFactCol();
        ins.setBoundName( "ins" );
        ins.setFactType( "Cheese" );
        ins.setFactField( "price" );
        ins.setType( SuggestionCompletionEngine.TYPE_NUMERIC );
        dt.getActionCols().add( ins );

        ActionRetractFactCol ret = new ActionRetractFactCol();
        ret.setBoundName( "f2" );
        dt.getActionCols().add( ret );
View Full Code Here

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

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

        ActionInsertFactCol ins1 = new ActionInsertFactCol();
        ins1.setBoundName( "ins" );
        ins1.setFactType( "Cheese" );
        ins1.setFactField( "price" );
        ins1.setType( SuggestionCompletionEngine.TYPE_NUMERIC );
        cols.add( ins1 );

        ActionInsertFactCol ins2 = new ActionInsertFactCol();
        ins2.setBoundName( "ins" );
        ins2.setFactType( "Cheese" );
        ins2.setFactField( "type" );
        ins2.setType( SuggestionCompletionEngine.TYPE_NUMERIC );
        cols.add( ins2 );

        RuleModel rm = new RuleModel();
        p.doActions( 2,
                     cols,
View Full Code Here

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

    con4.header = "Driver 2 pimp";
        con4.factField = "(not needed)";
    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

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

        con4.header = "Driver 2 pimp";
        con4.factField = "this.hasSomething($param)";
        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
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.