org.broadleafcommerce.core.workflow.state.test
Class TestRollbackActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext>
      extended by org.broadleafcommerce.core.workflow.state.test.TestRollbackActivity
All Implemented Interfaces:
Activity<ProcessContext>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

public class TestRollbackActivity
extends BaseActivity<ProcessContext>

Create an activity that simply throws an exception in order to engage the rollback behavior for the workflow

Author:
Jeff Fischer

Field Summary
 
Fields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
TestRollbackActivity()
           
 
Method Summary
 ProcessContext execute(ProcessContext context)
           
 
Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRollbackActivity

public TestRollbackActivity()
Method Detail

execute

public ProcessContext execute(ProcessContext context)
                       throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.