Package org.kie.internal.definition.rule
Interface InternalRule
-
- All Superinterfaces:
org.kie.api.definition.KieDefinition,org.kie.api.definition.rule.Rule
public interface InternalRule extends org.kie.api.definition.rule.RuleInternal Rule interface for runtime rule inspection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetActivationGroup()Returns theactivation-grouprule property.StringgetAgendaGroup()Returns theagenda-grouprule property.booleangetAutoFocus()Returns theauto-focusrule property.CalendargetDateEffective()Returns thedate-effectiverule property as aCalendar.CalendargetDateExpires()Returns thedate-expiresrule property as aCalendar.StringgetDialect()Returns the dialect property of this rule.StringgetFullyQualifiedName()Returns the fully qualified name of the rule (package + rule name)org.kie.api.io.ResourcegetResource()Returns theResourceof this rule.StringgetRuleFlowGroup()Returns theruleflow-grouprule property.intgetSalienceValue()Returns the value of thesalienceattribute.booleanisLockOnActive()Returns thelock-on-activerule property.booleanisMainAgendaGroup()Returns true if the rule is part of default agenda group.booleanisNoLoop()Returns theno-looprule property.booleanisSalienceDynamic()Returnstrueif the rule uses dynamic salience,falseotherwise.booleanisValid()Determine if this rule is internally consistent and valid.
-
-
-
Method Detail
-
getResource
org.kie.api.io.Resource getResource()
Returns theResourceof this rule.- Returns:
- the
Resource.
-
getDialect
String getDialect()
Returns the dialect property of this rule.- Returns:
- the dialect.
-
isValid
boolean isValid()
Determine if this rule is internally consistent and valid. This will include checks to make sure the rules semantic components (actions and predicates) are valid. No exception is thrown.A
Rulemust include at least one parameter declaration and one condition.- Returns:
trueif this rule is valid, elsefalse.
-
getSalienceValue
int getSalienceValue()
Returns the value of thesalienceattribute.- Returns:
- the
salienceproperty value.
-
isSalienceDynamic
boolean isSalienceDynamic()
Returnstrueif the rule uses dynamic salience,falseotherwise.- Returns:
trueif the rule uses dynamic salience, elsefalse.
-
getAgendaGroup
String getAgendaGroup()
Returns theagenda-grouprule property.- Returns:
- the
agenda-groupproperty value.
-
isNoLoop
boolean isNoLoop()
Returns theno-looprule property.- Returns:
- the
no-loopproperty value.
-
getAutoFocus
boolean getAutoFocus()
Returns theauto-focusrule property.- Returns:
- the
auto-focusproperty value.
-
getActivationGroup
String getActivationGroup()
Returns theactivation-grouprule property.- Returns:
- the
activation-groupproperty value.
-
getRuleFlowGroup
String getRuleFlowGroup()
Returns theruleflow-grouprule property.- Returns:
- the
ruleflow-groupproperty value.
-
isLockOnActive
boolean isLockOnActive()
Returns thelock-on-activerule property.- Returns:
- the
lock-on-activeproperty value.
-
getDateEffective
Calendar getDateEffective()
Returns thedate-effectiverule property as aCalendar.- Returns:
- the
date-effectiveproperty value.
-
getDateExpires
Calendar getDateExpires()
Returns thedate-expiresrule property as aCalendar.- Returns:
- the
date-expiresproperty value.
-
getFullyQualifiedName
String getFullyQualifiedName()
Returns the fully qualified name of the rule (package + rule name)- Returns:
- the fully qualified name of the rule
-
isMainAgendaGroup
boolean isMainAgendaGroup()
Returns true if the rule is part of default agenda group. False otherwise- Returns:
-
-