org.mule.module.bpm
Class Rules
java.lang.Object
org.mule.module.bpm.Rules
- All Implemented Interfaces:
- Disposable, Initialisable, MessageService
public class Rules
- extends Object
- implements Initialisable, Disposable, MessageService
Business rules.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
muleContext
protected transient MuleContext muleContext
logger
protected static final Log logger
Rules
public Rules(RulesEngine rulesEngine,
String resource,
Object configuration,
String entryPoint,
Collection initialFacts,
boolean stateless,
boolean cepMode,
FlowConstruct flowConstruct,
MuleContext muleContext)
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose
in interface Disposable
handleEvent
protected Object handleEvent(MuleEvent event)
throws Exception
- Throws:
Exception
generateMessage
public MuleMessage generateMessage(String endpoint,
Object payload,
Map messageProperties,
MessageExchangePattern exchangePattern)
throws MuleException
- Specified by:
generateMessage
in interface MessageService
- Throws:
MuleException
getResource
public String getResource()
getConfiguration
public Object getConfiguration()
getEntryPointLabel
public String getEntryPointLabel()
getSessionData
public Object getSessionData()
getInitialVariables
public Collection getInitialVariables()
isStateless
public boolean isStateless()
isCepMode
public boolean isCepMode()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.