|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.event.DefaultAgendaEventListener
org.apache.servicemix.drools.DroolsExecutionContext
public class DroolsExecutionContext
Represents the execution context of the Drools rules for a single MessageExchange
| Field Summary | |
|---|---|
static String |
JBI_HELPER_KEY
|
| Constructor Summary | |
|---|---|
DroolsExecutionContext(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
Start a new execution context for the specified exchange. |
|
| Method Summary | |
|---|---|
void |
activationCreated(org.drools.event.ActivationCreatedEvent event,
org.drools.WorkingMemory workingMemory)
|
javax.jbi.messaging.MessageExchange |
getExchange()
Return the MessageExchange we are evaluating rules on |
JbiHelper |
getHelper()
Access the JbiHelper object that is being exposed to the .drl file |
int |
getRulesFired()
Get the number of rules that were fired |
boolean |
isExchangeHandled()
Returns true if the MessageExchange was handled by the rules themselves
(e.g. by answering or faulting the exchange} |
void |
start()
Start the execution context. |
void |
stop()
Stop the context, disposing of all event listeners and working memory contents |
void |
update()
Update the working memory, potentially triggering additional rules |
| Methods inherited from class org.drools.event.DefaultAgendaEventListener |
|---|
activationCancelled, afterActivationFired, agendaGroupPopped, agendaGroupPushed, beforeActivationFired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JBI_HELPER_KEY
| Constructor Detail |
|---|
public DroolsExecutionContext(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
WorkingMemory and register listeners on it to keep track of things.
endpoint - exchange - | Method Detail |
|---|
public void start()
public void update()
public void stop()
public int getRulesFired()
public boolean isExchangeHandled()
true if the MessageExchange was handled by the rules themselves
(e.g. by answering or faulting the exchange}
public javax.jbi.messaging.MessageExchange getExchange()
MessageExchange we are evaluating rules on
public void activationCreated(org.drools.event.ActivationCreatedEvent event,
org.drools.WorkingMemory workingMemory)
activationCreated in interface org.drools.event.AgendaEventListeneractivationCreated in class org.drools.event.DefaultAgendaEventListenerpublic JbiHelper getHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||