Examples of updateBinaryUpToDate()


Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

                moduleItem );

        moduleItem.updateExternalURI( data.getExternalURI() );
        moduleItem.updateDescription( data.getDescription() );
        moduleItem.archiveItem( data.isArchived() );
        moduleItem.updateBinaryUpToDate( false );
        if(!data.getFormat().equals("")) {
            moduleItem.updateFormat(data.getFormat());
        }
        RuleBaseCache.getInstance().remove( data.getUuid() );
        moduleItem.checkin( data.getDescription() );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

                moduleItem );

        moduleItem.updateExternalURI( data.getExternalURI() );
        moduleItem.updateDescription( data.getDescription() );
        moduleItem.archiveItem( data.isArchived() );
        moduleItem.updateBinaryUpToDate( false );
        if(!data.getFormat().equals("")) {
            moduleItem.updateFormat(data.getFormat());
        }
        RuleBaseCache.getInstance().remove( data.getUuid() );
        moduleItem.checkin( data.getDescription() );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

                repoAsset);
        repoAsset.updateValid(assetValidator.validate(repoAsset));

        if (AssetFormats.affectsBinaryUpToDate(asset.getFormat())) {
            ModuleItem pkg = repoAsset.getModule();
            pkg.updateBinaryUpToDate(false);
            RuleBaseCache.getInstance().remove(pkg.getUUID());
        }
        repoAsset.checkin(asset.getCheckinComment());

        return repoAsset.getUUID();
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

            log.error( "Unable to remove asset attachment",
                       e );
        }
        item.archiveItem( archive );
        ModuleItem pkg = item.getModule();
        pkg.updateBinaryUpToDate( false );
        RuleBaseCache.getInstance().remove( pkg.getUUID() );
        if ( archive ) {
            item.checkin( "archived" );
        } else {
            item.checkin( "unarchived" );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        AssetItem assetItem = packageItem.addAsset( "temp",
                                                    "" );

        assertNotNull( packageItem.getName() );
        packageItem.updateBinaryUpToDate( true );
        assertTrue( packageItem.isBinaryUpToDate() );

        //Need to commit change to Module for it to be visible to subsequent retrieval
        packageItem.checkin( "" );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        rule1.updateContent( "Junk" );
        rule1.checkin("");

        RuleBaseCache.getInstance().clearCache();
        pkg.updateBinaryUpToDate(false);
        rulesRepository.save();
        res = repositoryPackageService.runScenario(pkg.getName(),
                sc).getResult();
        assertNotNull( res.getErrors() );
        assertNull(res.getScenario());
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        AssetItem assetItem = packageItem.addAsset( "temp",
                                                    "" );

        assertNotNull( packageItem.getName() );
        packageItem.updateBinaryUpToDate( true );
        assertTrue( packageItem.isBinaryUpToDate() );

        //Need to commit change to Module for it to be visible to subsequent retrieval
        packageItem.checkin( "" );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        AssetItem assetItem = packageItem.addAsset( "temp",
                                                    "" );

        assertNotNull( packageItem.getName() );
        packageItem.updateBinaryUpToDate( true );
        assertTrue( packageItem.isBinaryUpToDate() );

        //Need to commit change to Module for it to be visible to subsequent retrieval
        packageItem.checkin( "" );
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        AssetItem asset = pkg.addAsset( "MyModel",
                                        "" );
        asset.updateFormat(AssetFormats.MODEL);
        asset.checkin( "" );

        pkg.updateBinaryUpToDate(true);
        rulesRepository.save();

        assertTrue(pkg.isBinaryUpToDate());
        assertEquals("",
                DroolsHeader.getDroolsHeader(pkg));
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateBinaryUpToDate()

        rule1.updateContent( "Junk" );
        rule1.checkin("");

        RuleBaseCache.getInstance().clearCache();
        pkg.updateBinaryUpToDate(false);
        rulesRepository.save();
        res = testScenarioServiceImplementation.runScenario(pkg.getName(),
                sc).getResult();
        assertNotNull( res.getErrors() );
        assertNull(res.getScenario());
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.