Examples of AnalysisReport


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

        runner = new VerifierRunner( verifierToBeUsed );

        log.debug( "constraints rules: " + constraintRules );

        try {
            AnalysisReport report = runner.verify( packageItem,
                                                   verificationScope );

            verifierToBeUsed.flushKnowledgeSession();

            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

        drl += "P(a==true)\n";
        drl += "then\n";
        drl += "end\n";

        Asset ruleAsset = getAsset(drl);
        AnalysisReport report = verificationService.verifyAsset(
                ruleAsset,
                new HashSet<String>());

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

            AssetItem assetItemUnderVerification = getAssetItem(format);


            AssetVerifier verifierRunner = new AssetVerifier(createVerifier(), assetItemUnderVerification);

            AnalysisReport report = verifierRunner.verify();

            verify(originalAssetItem, never()).getContent();
            verify(assetItemUnderVerification).getContent();

            assertNotNull(report);
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

import org.drools.verifier.report.components.VerifierMessageBase;

public class VerifierReportCreator {

    public static AnalysisReport doReport(VerifierReport report) {
        AnalysisReport result = new AnalysisReport();

        result.errors = doLines( report.getBySeverity( Severity.ERROR ) );
        result.warnings = doLines( report.getBySeverity( Severity.WARNING ) );
        result.notes = doLines( report.getBySeverity( Severity.NOTE ) );
        result.factUsages = doFactUsage( report.getVerifierData() );
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
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.