Class CancelReturnRequestToSAPAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>
-
- com.sap.hybris.sapomsreturnprocess.actions.SendOmsReturnOrderToDataHubAction
-
- com.sap.hybris.sapomsreturnprocess.actions.CancelReturnRequestToSAPAction
-
- All Implemented Interfaces:
Action<ReturnProcessModel>
- Direct Known Subclasses:
CancelReturnRequestToSAPSCPIAction
public class CancelReturnRequestToSAPAction extends SendOmsReturnOrderToDataHubAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
AbstractSimpleDecisionAction.Transition
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_END_MESSAGE-
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 CancelReturnRequestToSAPAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimpleDecisionAction.TransitionexecuteAction(ReturnProcessModel process)Executes thisAction's business logic working on the givenBusinessProcessModel.SendToDataHubHelper<ReturnRequestModel>getSendCancelReturnOrderToDatahubHelper()voidsetSendCancelReturnOrderToDatahubHelper(SendToDataHubHelper<ReturnRequestModel> sendCancelReturnOrderToDatahubHelper)protected voidupdateLogicalSystem(OrderModel order, java.util.Set<ConsignmentEntryModel> consignments, ReturnRequestModel cloneReturnModel)This method will set logical system and sales organization details in cloned order model.-
Methods inherited from class com.sap.hybris.sapomsreturnprocess.actions.SendOmsReturnOrderToDataHubAction
findRefundReason, getOrderService, getSapLogSysName, getSapPlantLogSysOrgService, getSapSalesOrgName, getSendReturnOrderToDataHubHelper, resetEndMessage, setKeyGeneratorLookup, setOrderService, setReturnSourcingContext, setSapPlantLogSysOrgService, setSendReturnOrderToDataHubHelper
-
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
-
-
-
-
Field Detail
-
ERROR_END_MESSAGE
public static final java.lang.String ERROR_END_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(ReturnProcessModel process) throws RetryLaterException
Description copied from class:AbstractSimpleDecisionActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Overrides:
executeActionin classSendOmsReturnOrderToDataHubAction- Parameters:
process- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterException
-
updateLogicalSystem
protected void updateLogicalSystem(OrderModel order, java.util.Set<ConsignmentEntryModel> consignments, ReturnRequestModel cloneReturnModel)
Description copied from class:SendOmsReturnOrderToDataHubActionThis method will set logical system and sales organization details in cloned order model.- Overrides:
updateLogicalSystemin classSendOmsReturnOrderToDataHubAction- Parameters:
order- - original orderconsignments- - set of consignmentcloneReturnModel- - cloned Return request Model
-
getSendCancelReturnOrderToDatahubHelper
public SendToDataHubHelper<ReturnRequestModel> getSendCancelReturnOrderToDatahubHelper()
- Returns:
- the sendCancelReturnOrderToDatahubHelper
-
setSendCancelReturnOrderToDatahubHelper
public void setSendCancelReturnOrderToDatahubHelper(SendToDataHubHelper<ReturnRequestModel> sendCancelReturnOrderToDatahubHelper)
- Parameters:
sendCancelReturnOrderToDatahubHelper- the sendCancelReturnOrderToDatahubHelper to set
-
-