Search in sources :

Example 6 with Pattern

use of org.drools.workbench.services.verifier.api.client.index.Pattern in project drools-wb by kiegroup.

the class RuleInspector method makePatternsInspectors.

private void makePatternsInspectors() {
    for (final Pattern pattern : rule.getPatterns().where(Pattern.uuid().any()).select().all()) {
        final PatternInspector patternInspector = new PatternInspector(pattern, new RuleInspectorUpdater() {

            @Override
            public void resetActionsInspectors() {
                actionsInspectors = null;
            }

            @Override
            public void resetConditionsInspectors() {
                conditionsInspectors = null;
            }
        }, configuration);
        patternInspectorList.add(patternInspector);
    }
}
Also used : Pattern(org.drools.workbench.services.verifier.api.client.index.Pattern)

Aggregations

Pattern (org.drools.workbench.services.verifier.api.client.index.Pattern)6 ObjectType (org.drools.workbench.services.verifier.api.client.index.ObjectType)3 AnalyzerConfiguration (org.drools.workbench.services.verifier.api.client.configuration.AnalyzerConfiguration)2 Test (org.junit.Test)2 BRLConditionVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLConditionVariableColumn)1 AnalyzerConfigurationMock (org.drools.workbench.services.verifier.core.checks.AnalyzerConfigurationMock)1 Before (org.junit.Before)1