Class CheckAuthorizeOrderPaymentAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<OrderProcessModel>
-
- de.hybris.platform.yacceleratorfulfilmentprocess.actions.order.CheckAuthorizeOrderPaymentAction
-
- All Implemented Interfaces:
Action<OrderProcessModel>
public class CheckAuthorizeOrderPaymentAction extends AbstractSimpleDecisionAction<OrderProcessModel>
This action implements payment authorization usingCreditCardPaymentInfoModel
. Any other payment model could be implemented here, or in a separate action, if the process flow differs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
AbstractSimpleDecisionAction.Transition
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description CheckAuthorizeOrderPaymentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractSimpleDecisionAction.Transition
assignStatusForOrder(OrderModel order)
Sets the status for given order in case on of itsPaymentTransactionEntryModel
matches properPaymentTransactionType
andTransactionStatus
.AbstractSimpleDecisionAction.Transition
executeAction(OrderProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.-
Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitions
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(OrderProcessModel process)
Description copied from class:AbstractSimpleDecisionAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractSimpleDecisionAction<OrderProcessModel>
- Parameters:
process
- The process context to work on.- Returns:
- OK; NOK
-
assignStatusForOrder
protected AbstractSimpleDecisionAction.Transition assignStatusForOrder(OrderModel order)
Sets the status for given order in case on of itsPaymentTransactionEntryModel
matches properPaymentTransactionType
andTransactionStatus
.- Parameters:
order
-OrderModel
- Returns:
AbstractSimpleDecisionAction.Transition
-
-