public class SourcingUtil extends WorkflowUtil
PACKING_TEMPLATE_CODE, PICKING_TEMPLATE_CODE, PICKUP_TEMPLATE_CODE, SHIPPING_TEMPLATE_CODECONSIGNMENT_ACTION_EVENT_NAME, ORDER_ACTION_EVENT_NAME, ORDER_PROCESS_DEFINITION_NAME, ORDER_TEST_PROCESS, RETURN_PROCESS_DEFINITION_NAME, timeOutallocationService, 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, warehouses, warehouseStockService, warehousingWorkflowDao, workflowActionTemplates, workflowDecisionTemplates, workflowTemplates, workflowTemplateService| Constructor and Description |
|---|
SourcingUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertSourcingResultContents(SourcingResults results,
WarehouseModel expectedWarehouse,
ProductModel product,
java.lang.Long expectedAllocation) |
void |
confirmDefaultConsignment(OrderProcessModel orderProcessModel,
ConsignmentModel consignment)
confirm default consignment
|
java.lang.Long |
getAllocationForProduct(SourcingResult result,
ProductModel product) |
WarehousingBusinessProcessService<ConsignmentModel> |
getConsignmentBusinessProcessService() |
OrderProcessModel |
runDefaultOrderProcessForOrder(OrderModel orderModel,
OrderStatus status)
run default order process
|
OrderProcessModel |
runOrderProcessForOrderBasedPriority(OrderModel orderModel,
OrderStatus status) |
void |
validateConsignmentsAndTaskWorkflow(OrderModel order,
int cancelledConsignmentsSize,
int readyConsignmentsSize,
int activeWorkflowsSize)
Validates the workflow status of the consignment
|
void |
waitForOrderStatus(OrderProcessModel orderProcess,
OrderModel order,
OrderStatus orderStatus,
int timeOut)
wait for order status
|
moveConsignmentWorkflow, setupRelations, waitUntilWorkflowProcessIsNotRunninggetBusinessProcessService, getReturnBusinessProcessService, moveOrderProcess, setBusinessProcessService, setReturnBusinessProcessService, waitUntilConsignmentProcessIsNotRunning, waitUntilProcessIsNotRunning, waitUntilReturnProcessExist, waitUntilReturnProcessIsNotRunningassertProcessState, createCameraAndMemoryCardShippingOrder, createCameraPickUpOrder, createCameraShippedOrder, createOrder, getAllocationService, getAtpFormulas, getAutomatedWorkflowActionTemplates, getBaseStores, getBaseStoreService, getCalculationService, getCartService, getCatalogVersionService, getCommentTypes, getCommerceStockService, getCommonI18NService, getComponents, 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, 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, setWorkflowTemplateServicepublic void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, ProductModel product, java.lang.Long expectedAllocation)
public java.lang.Long getAllocationForProduct(SourcingResult result, ProductModel product)
public void waitForOrderStatus(OrderProcessModel orderProcess, OrderModel order, OrderStatus orderStatus, int timeOut) throws java.lang.InterruptedException
orderProcess - order - orderStatus - timeOut - java.lang.InterruptedExceptionpublic OrderProcessModel runOrderProcessForOrderBasedPriority(OrderModel orderModel, OrderStatus status) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic OrderProcessModel runDefaultOrderProcessForOrder(OrderModel orderModel, OrderStatus status) throws java.lang.InterruptedException
orderModel - status - java.lang.InterruptedExceptionpublic void confirmDefaultConsignment(OrderProcessModel orderProcessModel, ConsignmentModel consignment)
orderProcessModel - consignment - public void validateConsignmentsAndTaskWorkflow(OrderModel order, int cancelledConsignmentsSize, int readyConsignmentsSize, int activeWorkflowsSize)
order - the OrderModel to be validatedcancelledConsignmentsSize - the number of expected cancelled consignmentsreadyConsignmentsSize - activeWorkflowsSize - public WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
Copyright © 2018 SAP SE. All Rights Reserved.