Class SendOmsReturnOrderToDataHubAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>
com.sap.hybris.sapomsreturnprocess.actions.SendOmsReturnOrderToDataHubAction
- All Implemented Interfaces:
de.hybris.platform.processengine.spring.Action<ReturnProcessModel>
- Direct Known Subclasses:
CancelReturnRequestToSAPAction,SapOrderexchangeDefaultOmsSendReturnOrderToSCPIAction
public class SendOmsReturnOrderToDataHubAction
extends de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition -
Field Summary
FieldsFields 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 TypeMethodDescriptionde.hybris.platform.processengine.action.AbstractSimpleDecisionAction.TransitionexecuteAction(ReturnProcessModel process) protected RefundReasonfindRefundReason(ReturnRequestModel returnRequest, AbstractOrderEntryModel orderEntry) This method will find refund reason for each order entry.de.hybris.platform.order.OrderServiceprotected StringgetSapLogSysName(OrderModel order, ConsignmentEntryModel consignmentEntry) This method fetch the logical system name to which the consignment has to return.protected StringgetSapSalesOrgName(OrderModel order, ConsignmentEntryModel consignmentEntry) This method is used to append sales organization, distribution channel and division which fetch this information from consignment Entry.protected voidresetEndMessage(ReturnProcessModel process) voidsetKeyGeneratorLookup(KeyGeneratorLookup keyGeneratorLookup) voidsetOrderService(de.hybris.platform.order.OrderService orderService) voidsetReturnSourcingContext(ReturnSourcingContext returnSourcingContext) voidsetSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService) voidsetSendReturnOrderToDataHubHelper(SendToDataHubHelper<ReturnRequestModel> sendOrderAsCSVHelper) protected voidupdateLogicalSystem(OrderModel order, Set<ConsignmentEntryModel> consignments, ReturnRequestModel cloneReturnModel) This method will set logical system and sales organization details in cloned order model.Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
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
-
Field Details
-
ERROR_END_MESSAGE
- See Also:
-
-
Constructor Details
-
SendOmsReturnOrderToDataHubAction
public SendOmsReturnOrderToDataHubAction()
-
-
Method Details
-
setReturnSourcingContext
-
setKeyGeneratorLookup
-
getOrderService
public de.hybris.platform.order.OrderService getOrderService() -
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService) -
getSapPlantLogSysOrgService
-
setSapPlantLogSysOrgService
-
getSendReturnOrderToDataHubHelper
-
setSendReturnOrderToDataHubHelper
public void setSendReturnOrderToDataHubHelper(SendToDataHubHelper<ReturnRequestModel> sendOrderAsCSVHelper) -
executeAction
public de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition executeAction(ReturnProcessModel process) throws de.hybris.platform.task.RetryLaterException - Specified by:
executeActionin classde.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>- Throws:
de.hybris.platform.task.RetryLaterException
-
findRefundReason
protected RefundReason findRefundReason(ReturnRequestModel returnRequest, AbstractOrderEntryModel orderEntry) This method will find refund reason for each order entry. -
updateLogicalSystem
protected void updateLogicalSystem(OrderModel order, Set<ConsignmentEntryModel> consignments, ReturnRequestModel cloneReturnModel) This method will set logical system and sales organization details in cloned order model.- Parameters:
order- - original orderconsignments- - set of consignmentcloneReturnModel- - cloned Return request Model
-
getSapSalesOrgName
This method is used to append sales organization, distribution channel and division which fetch this information from consignment Entry.- Parameters:
order- -original orderconsignmentEntry- - consignmentEntry will be used to get warehouse details- Returns:
- combination of sales organization, distribution channel and division {1000_10_00}
-
getSapLogSysName
This method fetch the logical system name to which the consignment has to return.- Parameters:
order- -original orderconsignmentEntry- - consignmentEntry will be used to get warehouse details- Returns:
- logical system name
-
resetEndMessage
-