Package org.drools.verifier.builder

Examples of org.drools.verifier.builder.ScopesAgendaFilter


        PackageItem packageItem = getAssetService().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


        }
    }

    private ScopesAgendaFilter chooseScopesAgendaFilterFor(RuleAsset asset) {
        if ( isAssetDecisionTable( asset ) ) {
            return new ScopesAgendaFilter( true, ScopesAgendaFilter.VERIFYING_SCOPE_DECISION_TABLE );
        }
        return new ScopesAgendaFilter( true, ScopesAgendaFilter.VERIFYING_SCOPE_SINGLE_RULE );

    }
View Full Code Here

        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

        }
    }

    private ScopesAgendaFilter chooseScopesAgendaFilterFor(RuleAsset asset) {
        if ( isAssetDecisionTable( asset ) ) {
            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

    }

    @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

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.