Package org.kie.api.runtime.rule
Interface RuleContext
- All Superinterfaces:
KieContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidblockMatch(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.getMatch()getRule()insertLogical(Object object) Logically inserts a fact into the KieSession, justified by the current rule context.insertLogical(EntryPoint entryPoint, Object object) Logically inserts a fact into the given EntryPoint, 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.KieContext
getKieBase, getKieRuntime, getKnowledgeRuntime
-
Method Details
-
getRule
Rule getRule()- Returns:
- the active Rule for the current context
-
getMatch
Match getMatch()- Returns:
- the current Match for the current context
-
insertLogical
Logically inserts a fact into the KieSession, justified by the current rule context.- Parameters:
object- the fact to insert into the kie session
-
insertLogical
Logically inserts a fact into the given EntryPoint, justified by the current rule context.- Parameters:
entryPoint- the EntryPoint where to logical inserting the given factobject- the fact to insert into the kie session
-
blockMatch
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-
-
unblockAllMatches
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-
-
cancelMatch
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-
-