Examples of AnalysisReport


Examples of org.drools.guvnor.client.rpc.AnalysisReport

    @Restrict("#{identity.loggedIn}")
    public AnalysisReport analysePackage(String packageUUID) throws SerializationException {
        hasPackageDeveloperPermission(packageUUID);


        AnalysisReport report = new PackageVerifier(
                defaultVerifier,
                getAssetService().getRulesRepository().loadPackageByUUID(packageUUID)
        ).verify();

        defaultVerifier.flushKnowledgeSession();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

    }

    private AnalysisReport verify(RuleAsset asset, VerifierConfiguration verifierConfiguration) throws SerializationException {
        long startTime = System.currentTimeMillis();

        AnalysisReport report = getAssetVerifier(
                verifierConfiguration,
                getAssetItem(asset)
        ).verify();

        log.debug("Asset verification took: " + (System.currentTimeMillis() - startTime));
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

    @WebRemote
    @LoggedIn
    public AnalysisReport analysePackage(String packageUUID) throws SerializationException {
        serviceSecurity.checkSecurityIsPackageDeveloperWithPackageUuid( packageUUID );

        AnalysisReport report = new PackageVerifier(
                defaultVerifier,
                rulesRepository.loadModuleByUUID(packageUUID)
        ).verify();

        defaultVerifier.flushKnowledgeSession();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

    }

    private AnalysisReport verify(Asset asset, VerifierConfiguration verifierConfiguration) throws SerializationException {
        long startTime = System.currentTimeMillis();

        AnalysisReport report = null;
        //temporal ruleAssets doesn't have a corresponing AssetItem, that is
        //why we need to use a special verifier: TemporalBRLAssetVerifier
        if (asset.getState().equals("temporal")){
            report = getTemporalBRLAssetVerifier(
                verifierConfiguration,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

        asset.updateFormat( AssetFormats.DRL );

        asset.updateContent( IO.read( this.getClass().getResourceAsStream( "/VerifierCauseTrace.drl" ) ) );
        asset.checkin( "" );

        AnalysisReport report = verificationService.analysePackage( pkg.getUUID() );
        assertNotNull( report );
        assertEquals( 0,
                      report.warnings.length );

    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

        asset.updateFormat( AssetFormats.DRL );

        asset.updateContent( IO.read( this.getClass().getResourceAsStream( "/AnalysisSample.drl" ) ) );
        asset.checkin( "" );

        AnalysisReport report = verificationService.analysePackage( pkg.getUUID() );
        assertNotNull( report );
        assertEquals( 0,
                      report.errors.length );
        assertEquals( 7,
                      report.warnings.length );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

    @Test
    public void verifyPackageItem() {
        VerifierRunner verifierRunner = checkinDRLAssetToPackage( "/VerifierCauseTrace.drl" );

        AnalysisReport report = verifierRunner.verify( packageItem,
                                                       new ScopesAgendaFilter( true,
                                                                               ScopesAgendaFilter.VERIFYING_SCOPE_KNOWLEDGE_PACKAGE ) );

        assertNotNull( report );
        assertEquals( 0,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

        asset.updateFormat( AssetFormats.DRL );

        asset.updateContent( IO.read( this.getClass().getResourceAsStream( "/VerifierCauseTrace.drl" ) ) );
        asset.checkin( "" );

        AnalysisReport report = verificationService.analysePackage( pkg.getUUID() );
        Assert.assertNotNull( report );
        Assert.assertEquals( 1,
                             report.warnings.length );

    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

        asset.updateFormat( AssetFormats.DRL );

        asset.updateContent( IO.read( this.getClass().getResourceAsStream( "/AnalysisSample.drl" ) ) );
        asset.checkin( "" );

        AnalysisReport report = verificationService.analysePackage( pkg.getUUID() );
        Assert.assertNotNull( report );
        Assert.assertEquals( 0,
                             report.errors.length );
        Assert.assertEquals( 8,
                             report.warnings.length );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AnalysisReport

    @Test
    public void verifyPackageItem() {
        VerifierRunner verifierRunner = checkinDRLAssetToPackage( "/VerifierCauseTrace.drl" );

        AnalysisReport report = verifierRunner.verify( packageItem,
                                                       new ScopesAgendaFilter( true,
                                                                               ScopesAgendaFilter.VERIFYING_SCOPE_KNOWLEDGE_PACKAGE ) );

        Assert.assertNotNull( report );
        Assert.assertEquals( 1,
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.