Class AddOrderItemActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<CartOperationRequest>>
org.broadleafcommerce.core.order.service.workflow.add.AddOrderItemActivity
- All Implemented Interfaces:
Activity<ProcessContext<CartOperationRequest>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.core.Ordered
@Component("blAddOrderItemActivity")
public class AddOrderItemActivity
extends BaseActivity<ProcessContext<CartOperationRequest>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CatalogServiceprotected org.broadleafcommerce.common.dao.GenericEntityDaostatic final intprotected OrderItemServiceprotected OrderServiceFields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfigurationFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ProcessContext<CartOperationRequest> context) Called by the encompassing processor to activate the execution of the ActivityMethods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
orderService
-
orderItemService
-
catalogService
-
genericEntityDao
protected org.broadleafcommerce.common.dao.GenericEntityDao genericEntityDao
-
-
Constructor Details
-
AddOrderItemActivity
public AddOrderItemActivity()
-
-
Method Details
-
execute
public ProcessContext<CartOperationRequest> execute(ProcessContext<CartOperationRequest> context) throws Exception Description copied from interface:ActivityCalled by the encompassing processor to activate the execution of the Activity- Parameters:
context- - process context for this workflow- Returns:
- resulting process context
- Throws:
Exception
-