Class WorkflowUtil
- java.lang.Object
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.BaseUtil
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.ProcessUtil
-
- de.hybris.platform.yacceleratorordermanagement.integration.util.WorkflowUtil
-
- Direct Known Subclasses:
SourcingUtil
public class WorkflowUtil extends ProcessUtil
This class is used for workflow interactions
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPACKING_TEMPLATE_CODEstatic java.lang.StringPICKING_TEMPLATE_CODEstatic java.lang.StringPICKUP_TEMPLATE_CODEstatic java.lang.StringSHIPPING_TEMPLATE_CODE-
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 WorkflowUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImpersonationServicegetImpersonationService()WarehousingConsignmentWorkflowServicegetWarehousingConsignmentWorkflowService()voidmoveConsignmentWorkflow(OrderProcessModel orderProcessModel, ConsignmentModel consignment, java.lang.String templateCode)Moves the task assignment workflow to its next planned taskvoidsetImpersonationService(ImpersonationService impersonationService)voidsetupRelations()Setup links between actions and decisionsvoidsetWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)voidwaitUntilWorkflowProcessIsNotRunning(WorkflowModel workflow, int timeOut)Wait until the workflow process is not running-
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, getConsignmentBusinessProcessService, 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
-
-
-
-
Field Detail
-
PICKING_TEMPLATE_CODE
public static final java.lang.String PICKING_TEMPLATE_CODE
- See Also:
- Constant Field Values
-
PACKING_TEMPLATE_CODE
public static final java.lang.String PACKING_TEMPLATE_CODE
- See Also:
- Constant Field Values
-
SHIPPING_TEMPLATE_CODE
public static final java.lang.String SHIPPING_TEMPLATE_CODE
- See Also:
- Constant Field Values
-
PICKUP_TEMPLATE_CODE
public static final java.lang.String PICKUP_TEMPLATE_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
moveConsignmentWorkflow
public void moveConsignmentWorkflow(OrderProcessModel orderProcessModel, ConsignmentModel consignment, java.lang.String templateCode)
Moves the task assignment workflow to its next planned task- Parameters:
orderProcessModel- the associatedOrderProcessModelconsignment- the targetedConsignmentModelfor which we want to move the workflow forwardtemplateCode- theJobModel.CODEto be moved
-
waitUntilWorkflowProcessIsNotRunning
public void waitUntilWorkflowProcessIsNotRunning(WorkflowModel workflow, int timeOut)
Wait until the workflow process is not running- Parameters:
workflow-timeOut-- Throws:
java.lang.InterruptedException
-
setupRelations
public void setupRelations()
Setup links between actions and decisions
-
getWarehousingConsignmentWorkflowService
public WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
-
setWarehousingConsignmentWorkflowService
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
-
getImpersonationService
public ImpersonationService getImpersonationService()
-
setImpersonationService
public void setImpersonationService(ImpersonationService impersonationService)
-
-