Class DeclineUtil
- java.lang.Object
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.BaseUtil
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.DeclineUtil
-
public class DeclineUtil extends ProcessUtil
this class is mainly to decline orders
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DECLINE_ENTRIES
protected static java.lang.String
IS_CONSIGNMENT_AUTO_DECLINED
protected static java.lang.String
REALLOCATE_CONSIGNMENT_CHOICE
-
Fields 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, timeOut
-
Fields 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 Constructor Description DeclineUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
autoDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, DeclineReason declineReason)
automatically decline consignmentvoid
autoDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, DeclineReason declineReason, boolean multiBusinessProcessParameters)
automatically decline consignmentWarehousingBusinessProcessService<ConsignmentModel>
getConsignmentBusinessProcessService()
void
manualDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, WarehouseModel warehouseModel, DeclineReason declineReason)
manually decline consignmentvoid
setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
-
Methods inherited from class de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
getBusinessProcessService, getReturnBusinessProcessService, moveOrderProcess, setBusinessProcessService, setReturnBusinessProcessService, waitUntilConsignmentProcessIsNotRunning, waitUntilProcessIsNotRunning, waitUntilReturnProcessExist, waitUntilReturnProcessIsNotRunning
-
Methods 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, 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
-
-
-
-
Field Detail
-
DECLINE_ENTRIES
protected static final java.lang.String DECLINE_ENTRIES
- See Also:
- Constant Field Values
-
REALLOCATE_CONSIGNMENT_CHOICE
protected static final java.lang.String REALLOCATE_CONSIGNMENT_CHOICE
- See Also:
- Constant Field Values
-
IS_CONSIGNMENT_AUTO_DECLINED
protected static final java.lang.String IS_CONSIGNMENT_AUTO_DECLINED
- See Also:
- Constant Field Values
-
-
Method Detail
-
autoDeclineDefaultConsignment
public void autoDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, DeclineReason declineReason) throws java.lang.InterruptedException
automatically decline consignment- Parameters:
consignmentModels
-declineEntryInfo
-orderProcessModel
-declineReason
-- Throws:
java.lang.InterruptedException
-
autoDeclineDefaultConsignment
public void autoDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, DeclineReason declineReason, boolean multiBusinessProcessParameters) throws java.lang.InterruptedException
automatically decline consignment- Parameters:
consignmentModels
-declineEntryInfo
-orderProcessModel
-declineReason
-multiBusinessProcessParameters
- true to generate a BusinessProcessParameters with declineEntries and isConsignmentAutoDecline- Throws:
java.lang.InterruptedException
-
manualDeclineDefaultConsignment
public void manualDeclineDefaultConsignment(ConsignmentModel consignmentModels, java.util.Map<ConsignmentEntryModel,java.lang.Long> declineEntryInfo, OrderProcessModel orderProcessModel, WarehouseModel warehouseModel, DeclineReason declineReason) throws java.lang.InterruptedException
manually decline consignment- Parameters:
consignmentModels
-declineEntryInfo
-orderProcessModel
-warehouseModel
-declineReason
-- Throws:
java.lang.InterruptedException
-
getConsignmentBusinessProcessService
public WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
- Overrides:
getConsignmentBusinessProcessService
in classBaseUtil
-
setConsignmentBusinessProcessService
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
- Overrides:
setConsignmentBusinessProcessService
in classBaseUtil
-
-