Class SapCancelConsignmentAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.sap.ysapomsfulfillment.actions.order.SapOmsAbstractAction<SapConsignmentProcessModel>
-
- de.hybris.platform.sap.ysapomsfulfillment.actions.consignment.SapCancelConsignmentAction
-
- All Implemented Interfaces:
Action<SapConsignmentProcessModel>
public class SapCancelConsignmentAction extends SapOmsAbstractAction<SapConsignmentProcessModel>
Cancel SAP OMS consignment processes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.sap.ysapomsfulfillment.actions.order.SapOmsAbstractAction
SapOmsAbstractAction.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 SapCancelConsignmentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
execute(SapConsignmentProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.BusinessProcessService
getBusinessProcessService()
protected boolean
isCancellationComplete(java.util.Collection<SapConsignmentProcessModel> sapConsignmentProcesses)
void
setBusinessProcessService(BusinessProcessService businessProcessService)
protected void
triggerCancelOrderEvent(SapConsignmentProcessModel sapConsignmentProcess)
-
Methods inherited from class de.hybris.platform.sap.ysapomsfulfillment.actions.order.SapOmsAbstractAction
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
-
execute
public java.lang.String execute(SapConsignmentProcessModel process) throws java.lang.Exception
Description copied from interface:Action
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Parameters:
process
- The process context to work on.- Returns:
- the return code as stated in the process definition. This code is used by the process engine to determine the next actions.
- Throws:
java.lang.Exception
-
isCancellationComplete
protected boolean isCancellationComplete(java.util.Collection<SapConsignmentProcessModel> sapConsignmentProcesses)
-
triggerCancelOrderEvent
protected void triggerCancelOrderEvent(SapConsignmentProcessModel sapConsignmentProcess)
-
getBusinessProcessService
public BusinessProcessService getBusinessProcessService()
-
setBusinessProcessService
public void setBusinessProcessService(BusinessProcessService businessProcessService)
-
-