org.drools.verifier.Consequence.drl Maven / Gradle / Ivy
#created on: 18.10.2007
package org.drools.verifier.consequence
#list any import classes here.
import org.drools.verifier.components.VerifierRule;
import org.drools.verifier.components.TextConsequence;
import org.drools.verifier.report.components.VerifierMessage;
import org.drools.verifier.dao.VerifierResult;
import org.drools.verifier.report.components.Severity;
import org.drools.verifier.report.components.MessageType;
#declare any global variables here
global VerifierResult result;
rule "No action - possibly commented out"
when
$c :TextConsequence( ( text == null || matches "" ) )
$r :VerifierRule(
id == $c.ruleId
)
then
result.add( new VerifierMessage(
Severity.WARNING,
MessageType.MISSING_COMPONENT,
$r,
$r + " has no RHS." ) );
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy