Class SourcingUtil
java.lang.Object
de.hybris.platform.yacceleratorordermanagement.integration.util.BaseUtil
de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
de.hybris.platform.yacceleratorordermanagement.integration.util.WorkflowUtil
de.hybris.platform.yacceleratorordermanagement.integration.util.SourcingUtil
this class is mainly for order sourcing
-
Field Summary
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.WorkflowUtil
PACKING_TEMPLATE_CODE, PICKING_TEMPLATE_CODE, PICKUP_TEMPLATE_CODE, SHIPPING_TEMPLATE_CODEFields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
CONSIGNMENT_ACTION_EVENT_NAME, ORDER_ACTION_EVENT_NAME, ORDER_PROCESS_DEFINITION_NAME, ORDER_TEST_PROCESS, RETURN_PROCESS_DEFINITION_NAME, timeOutFields inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.BaseUtil
allocationService, atpFormulas, automatedWorkflowActionTemplates, baseStores, baseStoreService, businessProcessService, calculationService, CAMERA_CODE, CAMERA_QTY, cartService, catalogVersionService, checkOrderAction, commentTypes, commerceStockService, commonI18NService, components, consignmentBusinessProcessService, consignmentCancellationService, csAgentGroups, deliveryMode, deliveryModes, deliveryModeService, domains, emailAddresses, LENS_CODE, MEMORY_CARD_CODE, MEMORY_CARD_QTY, modelService, newestWorkflowService, order, order2, orderBusinessProcessService, orderCancelService, orders, paymentInfos, pointOfServiceService, pointsOfService, processDefinitionFactory, products, productService, refundService, restockConfigModel, restockConfigs, returnBusinessProcessService, returnRequests, returnService, sourceOrderAction, sourcingBanService, sourcingConfigs, sourcingService, stockLevels, stockService, users, userService, warehouses, warehouseStockService, warehousingWorkflowDao, workflowActionTemplates, workflowDecisionTemplates, workflowTemplates, workflowTemplateService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, ProductModel product, Long expectedAllocation) voidconfirmDefaultConsignment(OrderProcessModel orderProcessModel, ConsignmentModel consignment) confirm default consignmentgetAllocationForProduct(SourcingResult result, ProductModel product) runDefaultOrderProcessForOrder(OrderModel orderModel, OrderStatus status) run default order processrunOrderProcessForOrderBasedPriority(OrderModel orderModel, OrderStatus status) voidvalidateConsignmentsAndTaskWorkflow(OrderModel order, int cancelledConsignmentsSize, int readyConsignmentsSize, int activeWorkflowsSize) Validates the workflow status of the consignmentvoidwaitForOrderStatus(OrderProcessModel orderProcess, OrderModel order, OrderStatus orderStatus, int timeOut) wait for order statusMethods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.WorkflowUtil
getImpersonationService, getWarehousingConsignmentWorkflowService, moveConsignmentWorkflow, setImpersonationService, setupRelations, setWarehousingConsignmentWorkflowService, waitUntilWorkflowProcessIsNotRunningMethods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
getBusinessProcessService, getReturnBusinessProcessService, moveOrderProcess, setBusinessProcessService, setReturnBusinessProcessService, waitUntilConsignmentProcessIsNotRunning, waitUntilProcessIsNotRunning, waitUntilReturnProcessExist, waitUntilReturnProcessIsNotRunningMethods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.BaseUtil
assertProcessState, createCameraAndMemoryCardShippingOrder, createCameraPickUpOrder, createCameraShippedOrder, createOrder, getAllocationService, getAtpFormulas, getAutomatedWorkflowActionTemplates, getBaseStores, getBaseStoreService, getCalculationService, getCartService, getCatalogVersionService, getCheckOrderAction, getCommentTypes, getCommerceStockService, getCommonI18NService, getComponents, getConsignmentCancellationService, getCsAgentGroups, getDeliveryMode, getDeliveryModes, getDeliveryModeService, getDomains, getEmailAddresses, getModelService, getNewestWorkflowService, getOrder, getOrderBusinessProcessService, getOrderCancelService, getOrderEntryModel_Camera, getOrderEntryModel_MemoryCard, getOrders, getPaymentInfos, getPointOfServiceService, getPointsOfService, getProcessDefinitionFactory, getProducts, getProductService, getRefundService, getRestockConfigModel, getRestockConfigs, getReturnRequests, getReturnService, getSourceOrderAction, getSourcingBanService, getSourcingConfigs, getSourcingService, getStockLevels, getStockService, getUsers, getUserService, getWarehouses, getWarehouseStockService, getWarehousingWorkflowDao, getWorkflowActionTemplates, getWorkflowDecisionTemplates, getWorkflowTemplates, getWorkflowTemplateService, refreshOrder, saveAll, setAllocationService, setAtpFormulas, setAutomatedWorkflowActionTemplates, setBaseStores, setBaseStoreService, setCalculatedStatus, setCalculationService, setCartService, setCatalogVersionService, setCheckOrderAction, setCommentTypes, setCommerceStockService, setCommonI18NService, setComponents, setConsignmentBusinessProcessService, setConsignmentCancellationService, setCsAgentGroups, setDeliveryMode, setDeliveryModes, setDeliveryModeService, setDomains, setDummyOrderTransaction, setDummyPriceRowModel, setEmailAddresses, setModelService, setNewestWorkflowService, setOrder, setOrderBusinessProcessService, setOrderCancelService, setOrders, setPaymentInfos, setPointOfServiceService, setPointsOfService, setProcessDefinitionFactory, setProducts, setProductService, setRefundService, setRestockConfigModel, setRestockConfigs, setReturnRequests, setReturnService, setSourceOrderAction, setSourcingBanService, setSourcingConfigs, setSourcingFactors, setSourcingService, setStockLevels, setStockService, setUsers, setUserService, setWarehouses, setWarehouseStockService, setWarehousingWorkflowDao, setWorkflowActionTemplates, setWorkflowDecisionTemplates, setWorkflowTemplates, setWorkflowTemplateService
-
Constructor Details
-
SourcingUtil
public SourcingUtil()
-
-
Method Details
-
assertSourcingResultContents
public void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, ProductModel product, Long expectedAllocation) -
getAllocationForProduct
-
waitForOrderStatus
public void waitForOrderStatus(OrderProcessModel orderProcess, OrderModel order, OrderStatus orderStatus, int timeOut) throws InterruptedException wait for order status- Parameters:
orderProcess-order-orderStatus-timeOut-- Throws:
InterruptedException
-
runOrderProcessForOrderBasedPriority
public OrderProcessModel runOrderProcessForOrderBasedPriority(OrderModel orderModel, OrderStatus status) throws InterruptedException - Throws:
InterruptedException
-
runDefaultOrderProcessForOrder
public OrderProcessModel runDefaultOrderProcessForOrder(OrderModel orderModel, OrderStatus status) throws InterruptedException run default order process- Parameters:
orderModel-status-- Returns:
- Throws:
InterruptedException
-
confirmDefaultConsignment
public void confirmDefaultConsignment(OrderProcessModel orderProcessModel, ConsignmentModel consignment) confirm default consignment- Parameters:
orderProcessModel-consignment-
-
validateConsignmentsAndTaskWorkflow
public void validateConsignmentsAndTaskWorkflow(OrderModel order, int cancelledConsignmentsSize, int readyConsignmentsSize, int activeWorkflowsSize) Validates the workflow status of the consignment- Parameters:
order- theOrderModelto be validatedcancelledConsignmentsSize- the number of expected cancelled consignmentsreadyConsignmentsSize-activeWorkflowsSize-
-
getConsignmentBusinessProcessService
- Overrides:
getConsignmentBusinessProcessServicein classBaseUtil
-