org.broadleafcommerce.core.workflow
Class BaseProcessor

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseProcessor
All Implemented Interfaces:
Processor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
SequenceProcessor

public abstract class BaseProcessor
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware, Processor

Base class for all Workflow Processors. Responsible of keeping track of an ordered collection of Activities

Since:
March 1, 2005
See Also:
Activity

Constructor Summary
BaseProcessor()
           
 
Method Summary
 void afterPropertiesSet()
           
 List<Activity> getActivities()
           
 boolean getAutoRollbackOnError()
          Whether or not the ActivityStateManager should automatically attempt to rollback any RollbackHandlers registered.
protected  String getBeanDesc()
          Returns the bean description if the current bean factory allows it.
 org.springframework.beans.factory.BeanFactory getBeanFactory()
           
 String getBeanName()
           
 ErrorHandler getDefaultErrorHandler()
           
 void setActivities(List<Activity> activities)
          Sets the collection of Activities to be executed by the Workflow Process
 void setAutoRollbackOnError(boolean autoRollbackOnError)
          Set whether or not the ActivityStateManager should automatically attempt to rollback any RollbackHandlers registered.
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setBeanName(String beanName)
           
 void setDefaultErrorHandler(ErrorHandler defaultErrorHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.core.workflow.Processor
doActivities, doActivities, setProcessContextFactory, supports
 

Constructor Detail

BaseProcessor

public BaseProcessor()
Method Detail

setBeanName

public void setBeanName(String beanName)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

getAutoRollbackOnError

public boolean getAutoRollbackOnError()
Whether or not the ActivityStateManager should automatically attempt to rollback any RollbackHandlers registered. If false, rolling back will require an explicit call to ActivityStateManagerImpl.getStateManager().rollbackAllState(). The default value is true.

Returns:
Whether or not the ActivityStateManager should automatically attempt to rollback

setAutoRollbackOnError

public void setAutoRollbackOnError(boolean autoRollbackOnError)
Set whether or not the ActivityStateManager should automatically attempt to rollback any RollbackHandlers registered. If false, rolling back will require an explicit call to ActivityStateManagerImpl.getStateManager().rollbackAllState(). The default value is true.

Parameters:
autoRollbackOnError - Whether or not the ActivityStateManager should automatically attempt to rollback

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getBeanDesc

protected String getBeanDesc()
Returns the bean description if the current bean factory allows it.

Returns:
spring bean description configure via the spring description tag

setActivities

public void setActivities(List<Activity> activities)
Sets the collection of Activities to be executed by the Workflow Process

Specified by:
setActivities in interface Processor
Parameters:
activities - ordered collection (List) of activities to be executed by the processor

setDefaultErrorHandler

public void setDefaultErrorHandler(ErrorHandler defaultErrorHandler)
Specified by:
setDefaultErrorHandler in interface Processor

getActivities

public List<Activity> getActivities()

getBeanName

public String getBeanName()

getDefaultErrorHandler

public ErrorHandler getDefaultErrorHandler()

getBeanFactory

public org.springframework.beans.factory.BeanFactory getBeanFactory()


Copyright © 2013. All Rights Reserved.