public class DroolsExecutionContext
extends org.drools.event.DefaultAgendaEventListener
MessageExchange| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JBI_HELPER_KEY |
| Constructor and Description |
|---|
DroolsExecutionContext(DroolsEndpoint endpoint,
javax.jbi.messaging.MessageExchange exchange)
Start a new execution context for the specified exchange.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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
|
public static final java.lang.String JBI_HELPER_KEY
public DroolsExecutionContext(DroolsEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
WorkingMemory and register listeners on it to keep track of things.endpoint - exchange - 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 onpublic 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()
Copyright © 2005-2015 FuseSource. All Rights Reserved.