public class ProcessUtil extends BaseUtil
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CONSIGNMENT_ACTION_EVENT_NAME |
protected static java.lang.String |
ORDER_ACTION_EVENT_NAME |
protected static java.lang.String |
ORDER_PROCESS_DEFINITION_NAME |
protected static java.lang.String |
ORDER_TEST_PROCESS |
protected static java.lang.String |
RETURN_PROCESS_DEFINITION_NAME |
protected static int |
timeOut |
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 and Description |
|---|
ProcessUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected BusinessProcessService |
getBusinessProcessService() |
protected WarehousingBusinessProcessService<ReturnRequestModel> |
getReturnBusinessProcessService() |
void |
moveOrderProcess(OrderModel order,
OrderProcessModel orderProcessModel,
java.lang.String choice)
Moves the
OrderProcessModel according to the given choice and waits for the consignment and order process to finish or until timeout occurs |
void |
setBusinessProcessService(BusinessProcessService businessProcessService) |
void |
setReturnBusinessProcessService(WarehousingBusinessProcessService<ReturnRequestModel> returnBusinessProcessService) |
void |
waitUntilConsignmentProcessIsNotRunning(OrderProcessModel orderProcessModel,
ConsignmentModel consignment,
int timeOut)
wait for consignment process is not running
|
void |
waitUntilProcessIsNotRunning(BusinessProcessModel process,
int timeOut)
wait until process is not running
|
void |
waitUntilReturnProcessExist(ReturnRequestModel returnRequest,
java.lang.String processName,
int timeOut) |
void |
waitUntilReturnProcessIsNotRunning(ReturnRequestModel returnRequestModel,
int timeOut)
wait for return process is not running
|
assertProcessState, 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, setWorkflowTemplateServiceprotected static final java.lang.String ORDER_TEST_PROCESS
protected static final java.lang.String ORDER_PROCESS_DEFINITION_NAME
protected static final java.lang.String RETURN_PROCESS_DEFINITION_NAME
protected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
protected static final java.lang.String ORDER_ACTION_EVENT_NAME
protected static final int timeOut
public void waitUntilProcessIsNotRunning(BusinessProcessModel process, int timeOut) throws java.lang.InterruptedException
process - timeOut - java.lang.InterruptedExceptionpublic void waitUntilReturnProcessExist(ReturnRequestModel returnRequest, java.lang.String processName, int timeOut) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void waitUntilConsignmentProcessIsNotRunning(OrderProcessModel orderProcessModel, ConsignmentModel consignment, int timeOut) throws java.lang.InterruptedException
orderProcessModel - consignment - timeOut - java.lang.InterruptedExceptionpublic void waitUntilReturnProcessIsNotRunning(ReturnRequestModel returnRequestModel, int timeOut) throws java.lang.InterruptedException
returnRequestModel - timeOut - java.lang.InterruptedExceptionpublic void moveOrderProcess(OrderModel order, OrderProcessModel orderProcessModel, java.lang.String choice) throws java.lang.InterruptedException
OrderProcessModel according to the given choice and waits for the consignment and order process to finish or until timeout occursorder - the given OrderModelorderProcessModel - the associated OrderProcessModel with the given OrderModelchoice - the choice with which to move the given OrderProcessModeljava.lang.InterruptedExceptionprotected WarehousingBusinessProcessService<ReturnRequestModel> getReturnBusinessProcessService()
public void setReturnBusinessProcessService(WarehousingBusinessProcessService<ReturnRequestModel> returnBusinessProcessService)
setReturnBusinessProcessService in class BaseUtilprotected BusinessProcessService getBusinessProcessService()
public void setBusinessProcessService(BusinessProcessService businessProcessService)
setBusinessProcessService in class BaseUtilCopyright © 2018 SAP SE. All Rights Reserved.