org.apache.camel.bam.processor
Class JpaBamProcessor

java.lang.Object
  extended by org.apache.camel.bam.processor.BamProcessorSupport<T>
      extended by org.apache.camel.bam.processor.JpaBamProcessorSupport<ProcessInstance>
          extended by org.apache.camel.bam.processor.JpaBamProcessor
All Implemented Interfaces:
Processor

public class JpaBamProcessor
extends JpaBamProcessorSupport<ProcessInstance>

A concrete Processor for working on BAM which uses JPA as the persistence and uses the ProcessInstance entity to store the process information.

Version:

Constructor Summary
JpaBamProcessor(org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.orm.jpa.JpaTemplate template, Expression correlationKeyExpression, ActivityRules activityRules)
           
JpaBamProcessor(org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.orm.jpa.JpaTemplate template, Expression correlationKeyExpression, ActivityRules activityRules, Class<ProcessInstance> entitytype)
           
 
Method Summary
protected  void processEntity(Exchange exchange, ProcessInstance process)
           
 
Methods inherited from class org.apache.camel.bam.processor.JpaBamProcessorSupport
createEntity, createFindByKeyQuery, findEntityByCorrelationKey, getActivityRules, getFindByKeyQuery, getKeyPropertyName, getKeyType, getTemplate, isCorrelationKeyIsPrimary, loadEntity, setActivityRules, setCorrelationKeyIsPrimary, setFindByKeyQuery, setKeyProperty, setKeyPropertyName, setProcessDefinitionProperty, setTemplate
 
Methods inherited from class org.apache.camel.bam.processor.BamProcessorSupport
getCorrelationKey, getCorrelationKeyExpression, getEntityType, onError, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaBamProcessor

public JpaBamProcessor(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                       org.springframework.orm.jpa.JpaTemplate template,
                       Expression correlationKeyExpression,
                       ActivityRules activityRules)

JpaBamProcessor

public JpaBamProcessor(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                       org.springframework.orm.jpa.JpaTemplate template,
                       Expression correlationKeyExpression,
                       ActivityRules activityRules,
                       Class<ProcessInstance> entitytype)
Method Detail

processEntity

protected void processEntity(Exchange exchange,
                             ProcessInstance process)
                      throws Exception
Overrides:
processEntity in class JpaBamProcessorSupport<ProcessInstance>
Throws:
Exception


Apache CAMEL