Examples of updateState()


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

            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);

      addToDiscussionForAsset(asset.getUUID(), oldState + " -> "
View Full Code Here

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

            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);

      addToDiscussionForAsset(asset.getUUID(), oldState + " -> "
View Full Code Here

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

        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

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

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

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

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

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

        AssetItem asset = getRulesRepository().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

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

            }
            if (assetMetadata.getCategories() != null && assetMetadata.getCategories().length > 0) {
                ai.updateCategoryList(assetMetadata.getCategories());
            }
            if (assetMetadata.getState() != null) {
                ai.updateState(assetMetadata.getState());
            }
            ai.updateValid(assetValidator.validate(ai));
            if (AssetFormats.affectsBinaryUpToDate(ai.getFormat())) {
                ModuleItem pkg = ai.getModule();
                pkg.updateBinaryUpToDate(false);
View Full Code Here

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

                                           "a description",
                                           "testBuiltInSelectorCat1",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
        AssetItem item1 = rulesRepository.loadAssetByUUID( uuid1 );
        item1.updateState( "Dev" );
        String uuid2 = serviceImplementation.createNewRule( "test AddRule2",
                                           "a description",
                                           "testBuiltInSelectorCat1",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
View Full Code Here

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

                                           "a description",
                                           "testBuiltInSelectorCat1",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
        AssetItem item2 = rulesRepository.loadAssetByUUID( uuid2 );
        item2.updateState( "QA" );
        String uuid3 = serviceImplementation.createNewRule( "test AddRule3",
                                           "a description",
                                           "testBuiltInSelectorCat2",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
View Full Code Here

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

                                           "a description",
                                           "testBuiltInSelectorCat2",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
        AssetItem item3 = rulesRepository.loadAssetByUUID( uuid3 );
        item3.updateState( "Dev" );
        String uuid4 = serviceImplementation.createNewRule( "test AddRule4",
                                           "a description",
                                           "testBuiltInSelectorCat2",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
View Full Code Here

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

                                           "a description",
                                           "testBuiltInSelectorCat2",
                                           "testBuiltInSelectorPackage",
                                           "txt" );
        AssetItem item4 = rulesRepository.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
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.