org.apache.camel.bam
Class ProcessBuilder

java.lang.Object
  extended by org.apache.camel.builder.BuilderSupport
      extended by org.apache.camel.builder.RouteBuilder
          extended by org.apache.camel.bam.ProcessBuilder
All Implemented Interfaces:
RoutesBuilder
Direct Known Subclasses:
MyActivities

public abstract class ProcessBuilder
extends RouteBuilder

A builder of a process definition

Version:
$Revision: 17033 $

Constructor Summary
protected ProcessBuilder()
           
protected ProcessBuilder(JpaTemplate jpaTemplate, TransactionTemplate transactionTemplate)
           
protected ProcessBuilder(JpaTemplate jpaTemplate, TransactionTemplate transactionTemplate, String processName)
           
 
Method Summary
 ActivityBuilder activity(Endpoint endpoint)
           
 ActivityBuilder activity(String endpointUri)
           
 Processor createActivityProcessor(ActivityBuilder activityBuilder)
           
protected static String createProcessName()
           
 ProcessBuilder entityType(Class<ProcessInstance> entityType)
          Sets the process entity type used to perform state management
 ActivityDefinition findOrCreateActivityDefinition(String activityName)
           
protected  ProcessDefinition findOrCreateProcessDefinition()
           
 List<ActivityBuilder> getActivityBuilders()
           
 Class<ProcessInstance> getEntityType()
           
 JpaTemplate getJpaTemplate()
           
 ProcessDefinition getProcessDefinition()
           
 String getProcessName()
           
 ProcessRules getProcessRules()
           
 TransactionTemplate getTransactionTemplate()
           
protected  void populateRoutes()
           
 void setJpaTemplate(JpaTemplate jpaTemplate)
           
 void setProcessDefinition(ProcessDefinition processDefinition)
           
 void setTransactionTemplate(TransactionTemplate transactionTemplate)
           
 
Methods inherited from class org.apache.camel.builder.RouteBuilder
addRoutes, addRoutesToCamelContext, checkInitialized, configure, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, setErrorHandlerBuilder, setRouteCollection, toString
 
Methods inherited from class org.apache.camel.builder.BuilderSupport
bean, bean, bean, bean, body, body, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, faultBody, faultBodyAs, getErrorHandlerBuilder, header, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, simple, systemProperty, systemProperty, xpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessBuilder

protected ProcessBuilder()

ProcessBuilder

protected ProcessBuilder(JpaTemplate jpaTemplate,
                         TransactionTemplate transactionTemplate)

ProcessBuilder

protected ProcessBuilder(JpaTemplate jpaTemplate,
                         TransactionTemplate transactionTemplate,
                         String processName)
Method Detail

createProcessName

protected static String createProcessName()

activity

public ActivityBuilder activity(String endpointUri)

activity

public ActivityBuilder activity(Endpoint endpoint)

entityType

public ProcessBuilder entityType(Class<ProcessInstance> entityType)
Sets the process entity type used to perform state management


createActivityProcessor

public Processor createActivityProcessor(ActivityBuilder activityBuilder)

getActivityBuilders

public List<ActivityBuilder> getActivityBuilders()

getEntityType

public Class<ProcessInstance> getEntityType()

getJpaTemplate

public JpaTemplate getJpaTemplate()

setJpaTemplate

public void setJpaTemplate(JpaTemplate jpaTemplate)

getTransactionTemplate

public TransactionTemplate getTransactionTemplate()

setTransactionTemplate

public void setTransactionTemplate(TransactionTemplate transactionTemplate)

getProcessRules

public ProcessRules getProcessRules()

getProcessName

public String getProcessName()

getProcessDefinition

public ProcessDefinition getProcessDefinition()

setProcessDefinition

public void setProcessDefinition(ProcessDefinition processDefinition)

populateRoutes

protected void populateRoutes()
                       throws Exception
Overrides:
populateRoutes in class RouteBuilder
Throws:
Exception

findOrCreateActivityDefinition

public ActivityDefinition findOrCreateActivityDefinition(String activityName)

findOrCreateProcessDefinition

protected ProcessDefinition findOrCreateProcessDefinition()


Apache CAMEL