Examples of updateCategoryList()


Examples of org.drools.repository.AssetItem.updateCategoryList()

        rule1.checkin( "" );

        AssetItem rule2 = pkg.addAsset( "rule2",
                                        "" );
        rule2.updateFormat( AssetFormats.DRL );
        rule2.updateCategoryList( new String[]{"testBuiltInSelectorCategory2/testBuiltInSelectorCategory2Child"} );
        rule2.updateContent( "when \n Person() \n then \n System.out.println(\"yeah\");\n" );
        rule2.checkin( "" );

        SelectorManager sm = SelectorManager.getInstance();
        sm.selectors.put( "testSelect",
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        DroolsHeader.updateDroolsHeader("import org.drools.Person",
                pkg);
        AssetItem rule1 = pkg.addAsset("rule1",
                "");
        rule1.updateFormat(AssetFormats.DRL);
        rule1.updateCategoryList(new String[]{"testBuiltInSelectorCategory1/testBuiltInSelectorCategory1Child"});

        rule1.updateContent("when \n Person() \n then \n System.out.println(\"yeah\");\n");
        rule1.checkin("");

        AssetItem rule2 = pkg.addAsset("rule2",
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        //Create rule1 with 'category 1'
        AssetItem rule = pkg.addAsset( "rule1",
                                       "" );
        rule.updateFormat( AssetFormats.DRL );
        rule.updateContent( "rule 'foo' when Goo1() then end" );
        rule.updateCategoryList(new String[]{"Category 1"});
        rule.checkin( "version 1" );
       
        //Create rule2 with 'category 2'
        rule = pkg.addAsset( "rule2",
                                       "" );
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        rule1.checkin("");

        AssetItem rule2 = pkg.addAsset("rule2",
                "");
        rule2.updateFormat(AssetFormats.DRL);
        rule2.updateCategoryList(new String[]{"testBuiltInSelectorCategory2/testBuiltInSelectorCategory2Child"});
        rule2.updateContent("when \n Person() \n then \n System.out.println(\"yeah\");\n");
        rule2.checkin("");

        SelectorManager sm = SelectorManager.getInstance();
        sm.selectors.put("testSelect",
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        //Create rule2 with 'category 2'
        rule = pkg.addAsset( "rule2",
                                       "" );
        rule.updateFormat( AssetFormats.DRL );
        rule.updateContent( "rule 'foo' when Goo1() then end" );
        rule.updateCategoryList(new String[]{"Category 2"});
        rule.checkin( "version 1" );
       
        //Create rule3 with 'category 1' and 'category 2'
        rule = pkg.addAsset( "rule3",
                                       "" );
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        //Create rule3 with 'category 1' and 'category 2'
        rule = pkg.addAsset( "rule3",
                                       "" );
        rule.updateFormat( AssetFormats.DRL );
        rule.updateContent( "rule 'foo' when Goo1() then end" );
        rule.updateCategoryList(new String[]{"Category 1", "Category 2"});
        rule.checkin( "version 1" );
       
    }
   
    @AfterClass
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        DroolsHeader.updateDroolsHeader( "import org.drools.Person",
                                         pkg );
        AssetItem rule1 = pkg.addAsset( "rule1",
                                        "" );
        rule1.updateFormat( AssetFormats.DRL );
        rule1.updateCategoryList( new String[]{"testBuiltInSelectorCategory1/testBuiltInSelectorCategory1Child"} );

        rule1.updateContent( "when \n Person() \n then \n System.out.println(\"yeah\");\n" );
        rule1.checkin( "" );

        AssetItem rule2 = pkg.addAsset( "rule2",
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        rule1.checkin( "" );

        AssetItem rule2 = pkg.addAsset( "rule2",
                                        "" );
        rule2.updateFormat( AssetFormats.DRL );
        rule2.updateCategoryList( new String[]{"testBuiltInSelectorCategory2/testBuiltInSelectorCategory2Child"} );
        rule2.updateContent( "when \n Person() \n then \n System.out.println(\"yeah\");\n" );
        rule2.checkin( "" );

        SelectorManager sm = SelectorManager.getInstance();
        sm.selectors.put( "testSelect",
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

            //REVISIT: What if the client really wants to set content to ""?
            if (assetEntry.getContent() != null && !"".equals(assetEntry.getContent())) {
                ai.updateContent(assetEntry.getContent());
            }
            if (categories != null) {
                ai.updateCategoryList(categories);
            }
            if (state != null) {
                ai.updateState(state);
            }
            ai.checkin("Check-in (summary): " + assetEntry.getSummary());
View Full Code Here

Examples of org.drools.repository.AssetItem.updateCategoryList()

        metaDataMapper.copyFromMetaData( meta, repoAsset );

        updateEffectiveAndExpiredDate( repoAsset, meta );

        repoAsset.updateCategoryList( meta.categories );

        ContentHandler handler = ContentManager.getHandler( repoAsset.getFormat() );
        handler.storeAssetContent( asset, repoAsset );
       
        if ( !(asset.metaData.format.equals( AssetFormats.TEST_SCENARIO )) || asset.metaData.format.equals( AssetFormats.ENUMERATION ) ) {
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.