Package org.drools.ide.common.client.modeldriven.dt

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


                   List<ActionCol> actionCols,
                   String[] row,
                   RuleModel rm) {
        List<LabelledAction> actions = new ArrayList<LabelledAction>();
        for ( int i = 0; i < actionCols.size(); i++ ) {
            ActionCol c = actionCols.get( i );
            String cell = row[condAndAttrs
                              + i
                              + GuidedDecisionTable.INTERNAL_ELEMENTS];
            if ( !validCell( cell ) ) {
                cell = c.getDefaultValue();
            }
            if ( validCell( cell ) ) {
                if ( c instanceof ActionInsertFactCol ) {
                    ActionInsertFactCol ac = (ActionInsertFactCol) c;
                    LabelledAction a = findByLabelledAction( actions,
View Full Code Here


        newDTModel.setData( makeDataLists( legacyDTModel.data ) );

        //Copy the boundName for ActionRetractFactCol into the data of the new Guided Decision Table model
        final int DATA_COLUMN_OFFSET = legacyDTModel.conditionCols.size() + legacyDTModel.getMetadataCols().size() + legacyDTModel.attributeCols.size() + GuidedDecisionTable.INTERNAL_ELEMENTS;
        for ( int iCol = 0; iCol < legacyDTModel.actionCols.size(); iCol++ ) {
            ActionCol lc = legacyDTModel.actionCols.get( iCol );
            if ( lc instanceof ActionRetractFactCol ) {
                String boundName = ((ActionRetractFactCol) lc).boundName;
                for ( List<DTCellValue52> row : newDTModel.getData() ) {
                    row.get( DATA_COLUMN_OFFSET + iCol ).setStringValue( boundName );
                }
View Full Code Here

                   List<ActionCol> actionCols,
                   List<DTCellValue> row,
                   RuleModel rm) {
        List<LabelledAction> actions = new ArrayList<LabelledAction>();
        for ( int i = 0; i < actionCols.size(); i++ ) {
            ActionCol c = actionCols.get( i );
            int index = allColumns.indexOf( c );

            String cell = GuidedDTDRLOtherwiseHelper.convertDTCellValueToString( row.get( index ) );

            if ( !validCell( cell ) ) {
                cell = c.getDefaultValue();
            }

            if ( validCell( cell ) ) {
                if ( c instanceof ActionInsertFactCol ) {
                    ActionInsertFactCol ac = (ActionInsertFactCol) c;
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.modeldriven.dt.ActionCol

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.