Package org.drools.verifier.builder

Examples of org.drools.verifier.builder.ScopesAgendaFilter


        PackageItem packageItem = getService().getRulesRepository().loadPackageByUUID( packageUUID );

        VerifierRunner runner = new VerifierRunner( defaultVerifier );

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

        defaultVerifier.flushKnowledgeSession();

        return report;
View Full Code Here


                                                 RoleTypes.PACKAGE_DEVELOPER );
        }

        PackageItem packageItem = getService().getRulesRepository().loadPackage( asset.metaData.packageName );

        ScopesAgendaFilter verificationScope;

        if ( isAssetDecisionTable( asset ) ) {
            verificationScope = new ScopesAgendaFilter( true,
                                                        ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE );
        } else {
            verificationScope = new ScopesAgendaFilter( true,
                                                        ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE );
        }

        List<String> constraintRules = applyWorkingSets( activeWorkingSets );
View Full Code Here

    }

    @Override
    protected ScopesAgendaFilter getScopesAgendaFilter() {
        if (isAssetDecisionTable(ruleAsset)) {
            return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE);
        }
        return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE);

    }
View Full Code Here

    }

    @Override
    protected ScopesAgendaFilter getScopesAgendaFilter() {
        if (isAssetDecisionTable(assetItem)) {
            return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE);
        }
        return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE);

    }
View Full Code Here

    }

    @Override
    protected ScopesAgendaFilter getScopesAgendaFilter() {
        if (isAssetDecisionTable(ruleAsset)) {
            return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE);
        }
        return new ScopesAgendaFilter(true, ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE);

    }
View Full Code Here

                packageItem);
    }

    @Override
    protected ScopesAgendaFilter getScopesAgendaFilter() {
        return new ScopesAgendaFilter(
                true,
                ScopesAgendaFilter.VERIFYING_SCOPE_KNOWLEDGE_PACKAGE);
    }
View Full Code Here

        assertFalse( verifier.hasErrors() );
        assertEquals( 0,
                      verifier.getErrors().size() );

        boolean works = verifier.fireAnalysis( new ScopesAgendaFilter( true,
                                                                       ScopesAgendaFilter.VERIFYING_SCOPE_KNOWLEDGE_PACKAGE ) );

        assertTrue( works );

        VerifierReport result = verifier.getResult();
View Full Code Here

        assertFalse( verifier.hasErrors() );
        assertEquals( 0,
                      verifier.getErrors().size() );

        boolean works = verifier.fireAnalysis( new ScopesAgendaFilter( true,
                                                                       ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE ) );

        if ( !works ) {
            for ( VerifierError error : verifier.getErrors() ) {
                System.out.println( error.getMessage() );
View Full Code Here

        assertFalse( verifier.hasErrors() );
        assertEquals( 0,
                      verifier.getErrors().size() );

        boolean works = verifier.fireAnalysis( new ScopesAgendaFilter( true,
                                                                       Collections.EMPTY_LIST));

        assertTrue( works );

        VerifierReport result = verifier.getResult();
View Full Code Here

        assertFalse( verifier.hasErrors() );
        assertEquals( 0,
                      verifier.getErrors().size() );

        boolean works = verifier.fireAnalysis( new ScopesAgendaFilter( false,
                                                                       ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE ) );

        assertTrue( works );

        VerifierReport result = verifier.getResult();
View Full Code Here

TOP

Related Classes of org.drools.verifier.builder.ScopesAgendaFilter

Copyright © 2018 www.massapicom. 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.