org.mule.module.bpm
Class RulesComponent

java.lang.Object
  extended by org.mule.component.AbstractComponent
      extended by org.mule.module.bpm.RulesComponent
All Implemented Interfaces:
AnnotatedObject, Component, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessor

public class RulesComponent
extends AbstractComponent

A service backed by a Business Rules engine such as Drools.


Field Summary
protected  Rules rules
          The ruleset
protected  RulesEngine rulesEngine
          The underlying Rules Engine
 
Fields inherited from class org.mule.component.AbstractComponent
flowConstruct, interceptorChain, interceptors, lifecycleManager, logger, muleContext, notificationHandler, statistics
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
RulesComponent()
           
 
Method Summary
protected  void doInitialise()
           
protected  Object doInvoke(MuleEvent event)
           
 String getEntryPoint()
           
 Collection getInitialFacts()
           
 String getResource()
           
 boolean isCepMode()
           
 boolean isStateless()
           
 void setCepMode(boolean cepMode)
           
 void setEntryPoint(String entryPoint)
           
 void setInitialFacts(Collection initialFacts)
           
 void setResource(String resource)
           
 void setStateless(boolean stateless)
           
 
Methods inherited from class org.mule.component.AbstractComponent
createResultEvent, dispose, doDispose, doStart, doStop, fireComponentNotification, getAnnotation, getAnnotations, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setAnnotations, setFlowConstruct, setInterceptors, setMuleContext, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rules

protected Rules rules
The ruleset


rulesEngine

protected RulesEngine rulesEngine
The underlying Rules Engine

Constructor Detail

RulesComponent

public RulesComponent()
Method Detail

doInitialise

protected void doInitialise()
                     throws InitialisationException
Overrides:
doInitialise in class AbstractComponent
Throws:
InitialisationException

doInvoke

protected Object doInvoke(MuleEvent event)
                   throws Exception
Specified by:
doInvoke in class AbstractComponent
Returns:
a handle to the fact for future reference
Throws:
Exception

setResource

public void setResource(String resource)

getResource

public String getResource()

getInitialFacts

public Collection getInitialFacts()

setInitialFacts

public void setInitialFacts(Collection initialFacts)

getEntryPoint

public String getEntryPoint()

setEntryPoint

public void setEntryPoint(String entryPoint)

setStateless

public void setStateless(boolean stateless)

isStateless

public boolean isStateless()

isCepMode

public boolean isCepMode()

setCepMode

public void setCepMode(boolean cepMode)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.