Class CustomerPublishAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<BusinessProcessModel>
-
- com.sap.hybris.sapcustomerb2c.outbound.CustomerPublishAction
-
- All Implemented Interfaces:
Action<BusinessProcessModel>
public class CustomerPublishAction extends AbstractSimpleDecisionAction<BusinessProcessModel>
Action class to publish the registered customer to the Data Hub
-
-
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 CustomerPublishAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimpleDecisionAction.Transition
executeAction(BusinessProcessModel businessProcessModel)
/** action method to the update the customer and trigger the publish to Data HubBusinessProcessService
getBusinessProcessService()
DefaultB2CSapCustomerAccountService
getCustomerAccountService()
Return the Customer Account ServiceCustomerExportService
getSendCustomerToDataHub()
return instance to send customer to the Data HubDefaultStoreSessionFacade
getStoreSessionFacade()
Return Session Store Facade instancevoid
setCustomerAccountService(DefaultB2CSapCustomerAccountService customerAccountService)
Sets the Customer Account Serviceprotected void
setSapContactId(BusinessProcessModel businessProcessModel)
Generates a new Contact ID and set it to the Customer Modelvoid
setSendCustomerToDataHub(CustomerExportService sendCustomerToDataHub)
set instance to send customer to the Data Hubvoid
setStoreSessionFacade(DefaultStoreSessionFacade storeSessionFacade)
Set Session Store Facade instance-
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
-
getBusinessProcessService
public BusinessProcessService getBusinessProcessService()
- Returns:
- businessProcessService
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(BusinessProcessModel businessProcessModel) throws RetryLaterException
/** action method to the update the customer and trigger the publish to Data Hub- Specified by:
executeAction
in classAbstractSimpleDecisionAction<BusinessProcessModel>
- Parameters:
businessProcessModel
- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterException
-
setSapContactId
protected void setSapContactId(BusinessProcessModel businessProcessModel)
Generates a new Contact ID and set it to the Customer Model- Parameters:
businessProcessModel
-
-
getSendCustomerToDataHub
public CustomerExportService getSendCustomerToDataHub()
return instance to send customer to the Data Hub- Returns:
- sendCustomerToDataHub
-
setSendCustomerToDataHub
public void setSendCustomerToDataHub(CustomerExportService sendCustomerToDataHub)
set instance to send customer to the Data Hub- Parameters:
sendCustomerToDataHub
-
-
getStoreSessionFacade
public DefaultStoreSessionFacade getStoreSessionFacade()
Return Session Store Facade instance- Returns:
- storeSessionFacade
-
setStoreSessionFacade
public void setStoreSessionFacade(DefaultStoreSessionFacade storeSessionFacade)
Set Session Store Facade instance- Parameters:
storeSessionFacade
-
-
getCustomerAccountService
public DefaultB2CSapCustomerAccountService getCustomerAccountService()
Return the Customer Account Service- Returns:
- customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(DefaultB2CSapCustomerAccountService customerAccountService)
Sets the Customer Account Service- Parameters:
customerAccountService
-
-
-