Class CancelOrderAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractProceduralAction<OrderProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.order.cancel.CancelOrderAction
- All Implemented Interfaces:
Action<OrderProcessModel>
Cancel the order. This order cancellation assumes that no items have been allocated and so no consignment exist for
this order yet.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
AbstractProceduralAction.Transition -
Field Summary
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a collection ofOrderCancelEntryfrom the list of order entries in the order.protected OrderCancelEntrycreateCancellationEntry(AbstractOrderEntryModel orderEntry) Create aOrderCancelEntryfrom anAbstractOrderEntryModel.voidexecuteAction(OrderProcessModel orderProcess) Executes thisAction's business logic working on the givenBusinessProcessModel.protected OrderCancelServiceprotected UserServicevoidsetOrderCancelService(OrderCancelService orderCancelService) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
CancelOrderAction
public CancelOrderAction()
-
-
Method Details
-
executeAction
Description copied from class:AbstractProceduralActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractProceduralAction<OrderProcessModel>- Parameters:
orderProcess- The process context to work on.- Throws:
RetryLaterExceptionException
-
createCancellationEntries
Create a collection ofOrderCancelEntryfrom the list of order entries in the order.- Parameters:
order- - the order- Returns:
- collection of cancellation entries; never null
-
createCancellationEntry
Create aOrderCancelEntryfrom anAbstractOrderEntryModel.- Parameters:
orderEntry- - the order entry- Returns:
- a new cancellation entry
-
getOrderCancelService
-
setOrderCancelService
-
getUserService
-
setUserService
-