org.mule.module.bpm
Class Rules

java.lang.Object
  extended by org.mule.module.bpm.Rules
All Implemented Interfaces:
Disposable, Initialisable, MessageService

public class Rules
extends Object
implements Initialisable, Disposable, MessageService

Business rules.


Field Summary
protected static Log logger
           
protected  MuleContext muleContext
           
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
Rules(RulesEngine rulesEngine, String resource, Object configuration, String entryPoint, Collection initialFacts, boolean stateless, boolean cepMode, FlowConstruct flowConstruct, MuleContext muleContext)
           
 
Method Summary
 void dispose()
          A lifecycle method where implementor should free up any resources.
 MuleMessage generateMessage(String endpoint, Object payload, Map messageProperties, MessageExchangePattern exchangePattern)
           
 Object getConfiguration()
           
 String getEntryPointLabel()
           
 Collection getInitialVariables()
           
 String getResource()
           
 Object getSessionData()
           
protected  Object handleEvent(MuleEvent event)
           
 void initialise()
          Method used to perform any initialisation work.
 boolean isCepMode()
           
 boolean isStateless()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

muleContext

protected transient MuleContext muleContext

logger

protected static final Log logger
Constructor Detail

Rules

public Rules(RulesEngine rulesEngine,
             String resource,
             Object configuration,
             String entryPoint,
             Collection initialFacts,
             boolean stateless,
             boolean cepMode,
             FlowConstruct flowConstruct,
             MuleContext muleContext)
Method Detail

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.