Class SourceOrderAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractProceduralAction<OrderProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.order.SourceOrderAction
- All Implemented Interfaces:
Action<OrderProcessModel>
Action node responsible for sourcing the order and allocating the consignments. After the consignments are created,
the consignment sub-process is started for every consignment.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
AbstractProceduralAction.Transition -
Field Summary
Fields 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 TypeMethodDescriptionvoidexecuteAction(OrderProcessModel process) Executes thisAction's business logic working on the givenBusinessProcessModel.protected AllocationServiceprotected BusinessProcessServiceprotected Localeprotected SourcingServiceprotected voidlogSourcingInfo(SourcingResult result) voidsetAllocationService(AllocationService allocationService) voidsetBusinessProcessService(BusinessProcessService businessProcessService) voidsetSourcingService(SourcingService sourcingService) protected voidstartConsignmentSubProcess(Collection<ConsignmentModel> consignments, OrderProcessModel process) Create and start a consignment process for each consignment in the collection.Methods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
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
-
Constructor Details
-
SourceOrderAction
public SourceOrderAction()
-
-
Method Details
-
executeAction
Description copied from class:AbstractProceduralActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractProceduralAction<OrderProcessModel>- Parameters:
process- The process context to work on.- Throws:
RetryLaterExceptionException
-
startConsignmentSubProcess
protected void startConsignmentSubProcess(Collection<ConsignmentModel> consignments, OrderProcessModel process) Create and start a consignment process for each consignment in the collection.- Parameters:
consignments- - list of consignments; never nullprocess- - order process model
-
logSourcingInfo
-
getSessionLocale
-
getSourcingService
-
setSourcingService
-
getAllocationService
-
setAllocationService
-
getBusinessProcessService
-
setBusinessProcessService
-