org.apache.camel.bam.rules
Class ActivityRules
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.bam.rules.ActivityRules
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class ActivityRules
- extends org.apache.camel.support.ServiceSupport
Represents a activity which is typically a system or could be an endpoint
- Version:
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivityRules
public ActivityRules(ProcessBuilder builder)
addRule
public void addRule(TemporalRule rule)
processExpired
public void processExpired(ActivityState activityState)
throws Exception
- Handles overdue activities
- Throws:
Exception
processExchange
public void processExchange(org.apache.camel.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 org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
Apache Camel