Package org.kie.api.runtime.rule
Interface RuleContext
- 
- All Superinterfaces:
- KieContext
 
 public interface RuleContext extends KieContext 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidblockMatch(Match match)This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.voidcancelMatch(Match match)This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.MatchgetMatch()RulegetRule()FactHandleinsertLogical(Object object)Logically inserts a fact into the KieSession, justified by the current rule context.FactHandleinsertLogical(Object object, Object value)Logically inserts a fact into the KieSession, justified by the current rule context.voidunblockAllMatches(Match match)This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.- 
Methods inherited from interface org.kie.api.runtime.KieContextgetKieRuntime, getKnowledgeRuntime
 
- 
 
- 
- 
- 
Method Detail- 
getRuleRule getRule() - Returns:
- the active Rule for the current context
 
 - 
getMatchMatch getMatch() - Returns:
- the current Match for the current context
 
 - 
insertLogicalFactHandle insertLogical(Object object) Logically inserts a fact into the KieSession, justified by the current rule context.- Parameters:
- object- the fact to insert into the kie session
 
 - 
insertLogicalFactHandle insertLogical(Object object, Object value) Logically inserts a fact into the KieSession, justified by the current rule context.- Parameters:
- object- the fact to insert into the kie session
 
 - 
blockMatchvoid blockMatch(Match match) This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.- Parameters:
- match-
 
 - 
unblockAllMatchesvoid unblockAllMatches(Match match) This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.- Parameters:
- match-
 
 - 
cancelMatchvoid cancelMatch(Match match) This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.- Parameters:
- match-
 
 
- 
 
-