Examples of GuidedDecisionTable


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

    }

    public void testMoveCondition() {
       
        GuidedDecisionTable dt = new GuidedDecisionTable();
       
        dt.attributeCols.add( TestData.newAttributeCol( "date-effective" ) );
        dt.attributeCols.add( TestData.newAttributeCol( "date-expires" ) );
        dt.conditionCols.add( TestData.newConditionCol( "amount max" ) );
        dt.conditionCols.add( TestData.newConditionCol( "amount min" ) );
View Full Code Here

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

       
    }

    public void testMoveAction() {
       
        GuidedDecisionTable dt = new GuidedDecisionTable();
       
        dt.attributeCols.add( TestData.newAttributeCol( "date-effective" ) );
        dt.attributeCols.add( TestData.newAttributeCol( "date-expires" ) );
        dt.conditionCols.add( TestData.newConditionCol( "amount max" ) );
        dt.conditionCols.add( TestData.newConditionCol( "amount min" ) );
View Full Code Here

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

        rule1.updateFormat( AssetFormats.DRL );
        rule1.updateContent( "rule 'rule1' \n when \np : Person() \n then \np.setAge(42); \n end" );
        rule1.checkin( "" );
        repo.save();

        GuidedDecisionTable dt = new GuidedDecisionTable();
        ConditionCol col = new ConditionCol();
        col.boundName = "p";
        col.constraintValueType = BaseSingleFieldConstraint.TYPE_LITERAL;
        col.factField = "hair";
        col.factType = "Person";
View Full Code Here

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

    IRuleAsset {

    public void retrieveAssetContent(RuleAsset asset,
                                     PackageItem pkg,
                                     AssetItem item) throws SerializableException {
        GuidedDecisionTable model = GuidedDTXMLPersistence.getInstance().unmarshal( item.getContent() );

        asset.content = model;

    }
View Full Code Here

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

    }

    public void storeAssetContent(RuleAsset asset,
                                  AssetItem repoAsset) throws SerializableException {
        GuidedDecisionTable data = (GuidedDecisionTable) asset.content;
        if ( data.tableName == null ) {
            data.tableName = repoAsset.getName();
        }

        // Change the row numbers so they are in the same order as the rows.
View Full Code Here

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

        String drl = getRawDRL( asset );
        buf.append( drl );
    }

    public String getRawDRL(AssetItem asset) {
        GuidedDecisionTable model = GuidedDTXMLPersistence.getInstance().unmarshal( asset.getContent() );
        model.tableName = asset.getName();
        model.parentName = this.parentNameFromCategory( asset,
                                                        model.parentName );

        return GuidedDTDRLPersistence.getInstance().marshal( model );
View Full Code Here

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

    IRuleAsset {

    public void retrieveAssetContent(RuleAsset asset,
                                     PackageItem pkg,
                                     AssetItem item) throws SerializationException {
        GuidedDecisionTable model = GuidedDTXMLPersistence.getInstance().unmarshal( item.getContent() );

        asset.content = model;

    }
View Full Code Here

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

    }

    public void storeAssetContent(RuleAsset asset,
                                  AssetItem repoAsset) throws SerializationException {
        GuidedDecisionTable data = (GuidedDecisionTable) asset.content;
        if ( data.tableName == null ) {
            data.tableName = repoAsset.getName();
        }

        // Change the row numbers so they are in the same order as the rows.
View Full Code Here

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

        String drl = getRawDRL( asset );
        buf.append( drl );
    }

    public String getRawDRL(AssetItem asset) {
        GuidedDecisionTable model = GuidedDTXMLPersistence.getInstance().unmarshal( asset.getContent() );
        model.tableName = asset.getName();
        model.parentName = this.parentNameFromCategory( asset,
                                                        model.parentName );

        return GuidedDTDRLPersistence.getInstance().marshal( model );
View Full Code Here

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

        //Upgrade DTModel to new class
        Object model = xt.fromXML( xml );
        GuidedDecisionTable52 newDTModel;
        if ( model instanceof GuidedDecisionTable ) {
            GuidedDecisionTable legacyDTModel = (GuidedDecisionTable) model;
            newDTModel = RepositoryUpgradeHelper.convertGuidedDTModel( legacyDTModel );
        } else {
            newDTModel = (GuidedDecisionTable52) model;
        }
        return newDTModel;
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.