org.kie.api.runtime.rule
public interface RuleContext extends KieContext
Modifier and Type | Method and Description |
---|---|
void |
blockMatch(Match match)
This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.
|
void |
cancelMatch(Match match)
This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.
|
Match |
getMatch()
Returns the current Match for the current context
|
Rule |
getRule()
Returns the active Rule for the current context
|
void |
insertLogical(Object object)
Logically inserts a fact into the KnowledgeSession, justified by the current
rule context.
|
void |
insertLogical(Object object,
Object value)
Logically inserts a fact into the KnowledgeSession, justified by the current
rule context.
|
void |
unblockAllMatches(Match match)
This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default.
|
getKieRuntime, getKnowledgeRuntime
Rule getRule()
Match getMatch()
void insertLogical(Object object)
object
- the fact to insert into the knowledge sessionvoid insertLogical(Object object, Object value)
object
- the fact to insert into the knowledge sessionvoid blockMatch(Match match)
match
- void unblockAllMatches(Match match)
match
- void cancelMatch(Match match)
match
- Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.