Package org.drools.repository

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


    cat.addCategory("testBuiltInSelectorCat2", "yeah");

    String uuid1 = impl.createNewRule("test AddRule1", "a description",
        "testBuiltInSelectorCat1", "testBuiltInSelectorPackage", "txt");
    AssetItem item1 = impl.repository.loadAssetByUUID(uuid1);   
    item1.updateState("Dev");
    String uuid2 = impl.createNewRule("test AddRule2", "a description",
        "testBuiltInSelectorCat1", "testBuiltInSelectorPackage", "txt");
    AssetItem item2 = impl.repository.loadAssetByUUID(uuid2);     
    item2.updateState("QA");
    String uuid3 = impl.createNewRule("test AddRule3", "a description",
View Full Code Here


    AssetItem item1 = impl.repository.loadAssetByUUID(uuid1);   
    item1.updateState("Dev");
    String uuid2 = impl.createNewRule("test AddRule2", "a description",
        "testBuiltInSelectorCat1", "testBuiltInSelectorPackage", "txt");
    AssetItem item2 = impl.repository.loadAssetByUUID(uuid2);     
    item2.updateState("QA");
    String uuid3 = impl.createNewRule("test AddRule3", "a description",
        "testBuiltInSelectorCat2", "testBuiltInSelectorPackage", "txt");
    AssetItem item3 = impl.repository.loadAssetByUUID(uuid3);     
    item3.updateState("Dev");
    String uuid4 = impl.createNewRule("test AddRule4", "a description",
View Full Code Here

    AssetItem item2 = impl.repository.loadAssetByUUID(uuid2);     
    item2.updateState("QA");
    String uuid3 = impl.createNewRule("test AddRule3", "a description",
        "testBuiltInSelectorCat2", "testBuiltInSelectorPackage", "txt");
    AssetItem item3 = impl.repository.loadAssetByUUID(uuid3);     
    item3.updateState("Dev");
    String uuid4 = impl.createNewRule("test AddRule4", "a description",
        "testBuiltInSelectorCat2", "testBuiltInSelectorPackage", "txt");
    AssetItem item4 = impl.repository.loadAssetByUUID(uuid4);     
    item4.updateState("QA");
   
View Full Code Here

    AssetItem item3 = impl.repository.loadAssetByUUID(uuid3);     
    item3.updateState("Dev");
    String uuid4 = impl.createNewRule("test AddRule4", "a description",
        "testBuiltInSelectorCat2", "testBuiltInSelectorPackage", "txt");
    AssetItem item4 = impl.repository.loadAssetByUUID(uuid4);     
    item4.updateState("QA");
   
    //Select asset using "category ="
      BuiltInSelector selector1 = (BuiltInSelector)SelectorManager.getInstance().getSelector( "BuiltInSelector" );
      selector1.setCategory("testBuiltInSelectorCat1");
      selector1.setCategoryOperator("=");
View Full Code Here

        assertEquals( "testLoadRuleAsset",
                      asset.metaData.categories[0] );

        AssetItem rule = impl.repository.loadPackage( "testLoadRuleAsset" ).loadAsset( "testLoadRuleAsset" );
        impl.repository.createState( "whee" );
        rule.updateState( "whee" );
        rule.checkin( "changed state" );
        asset = impl.loadRuleAsset( uuid );

        assertEquals( "whee",
                      asset.metaData.status );
View Full Code Here

            }
            if (categories != null) {
                ai.updateCategoryList(categories);
            }
            if (state != null) {
                ai.updateState(state);
            }
            ai.checkin("Check-in (summary): " + assetEntry.getSummary());
            rulesRepository.save();
        } catch (Exception e) {
            throw new WebApplicationException(e);
View Full Code Here

        AssetItem asset = rulesRepository.loadAssetByUUID( uuid );
        serviceSecurity.checkIsPackageDeveloperOrAnalyst( asset );

        log.info( "USER:" + getCurrentUserName() + " CHANGING ASSET STATUS. Asset name, uuid: " + "[" + asset.getName() + ", " + asset.getUUID() + "]" + " to [" + newState + "]" );
        String oldState = asset.getStateDescription();
        asset.updateState( newState );

        push( "statusChange",
                oldState );
        push( "statusChange",
                newState );
View Full Code Here

        AssetItem asset = rulesRepository.loadAssetByUUID( uuid );
        serviceSecurity.checkIsPackageDeveloperOrAnalyst( asset );

        log.info( "USER:" + getCurrentUserName() + " CHANGING ASSET STATUS. Asset name, uuid: " + "[" + asset.getName() + ", " + asset.getUUID() + "]" + " to [" + newState + "]" );
        String oldState = asset.getStateDescription();
        asset.updateState( newState );

        push( "statusChange",
                oldState );
        push( "statusChange",
                newState );
View Full Code Here

        assertEquals( "testLoadRuleAsset",
                      asset.getMetaData().getCategories()[0] );

        AssetItem rule = impl.getRulesRepository().loadPackage( "testLoadRuleAsset" ).loadAsset( "testLoadRuleAsset" );
        impl.getRulesRepository().createState( "whee" );
        rule.updateState( "whee" );
        rule.checkin( "changed state" );
        asset = repositoryAssetService.loadRuleAsset( uuid );

        assertEquals( "whee",
                      asset.getState() );
View Full Code Here

        assertEquals( "testLoadRuleAsset",
                      asset.metaData.categories[0] );

        AssetItem rule = impl.getRulesRepository().loadPackage( "testLoadRuleAsset" ).loadAsset( "testLoadRuleAsset" );
        impl.getRulesRepository().createState( "whee" );
        rule.updateState( "whee" );
        rule.checkin( "changed state" );
        asset = repositoryAssetService.loadRuleAsset( uuid );

        assertEquals( "whee",
                      asset.state );
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.