org.apache.camel.bam.rules
Class ActivityRules

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.bam.rules.ActivityRules
All Implemented Interfaces:
Service, ShutdownableService

public class ActivityRules
extends ServiceSupport

Represents a activity which is typically a system or could be an endpoint

Version:

Constructor Summary
ActivityRules(ProcessBuilder builder)
           
 
Method Summary
 void addRule(TemporalRule rule)
           
protected  void doStart()
           
protected  void doStop()
           
 ActivityDefinition getActivityDefinition()
           
 int getExpectedMessages()
           
 ProcessRules getProcessRules()
           
 void processExchange(Exchange exchange, ProcessInstance process)
           
 void processExpired(ActivityState activityState)
          Handles overdue activities
 void setActivityDefinition(ActivityDefinition activityDefinition)
           
 void setActivityName(String activityName)
           
 void setExpectedMessages(int expectedMessages)
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityRules

public ActivityRules(ProcessBuilder builder)
Method Detail

addRule

public void addRule(TemporalRule rule)

processExpired

public void processExpired(ActivityState activityState)
                    throws Exception
Handles overdue activities

Throws:
Exception

processExchange

public void processExchange(Exchange exchange,
                            ProcessInstance process)

getActivityDefinition

public ActivityDefinition getActivityDefinition()

setActivityDefinition

public void setActivityDefinition(ActivityDefinition activityDefinition)

getExpectedMessages

public int getExpectedMessages()

setExpectedMessages

public void setExpectedMessages(int expectedMessages)

getProcessRules

public ProcessRules getProcessRules()

setActivityName

public void setActivityName(String activityName)

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class ServiceSupport
Throws:
Exception


Apache CAMEL