Class AbstractTaskAssignmentActions
- java.lang.Object
-
- de.hybris.platform.warehousing.taskassignment.actions.AbstractTaskAssignmentActions
-
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
- Direct Known Subclasses:
DefaultTaskDeleteCancellationEventsOnAsnCancelAction
,DefaultTaskDeleteStockLevelsOnAsnCancelAction
,DefaultTaskReallocateConsignmentsOnAsnCancelAction
,TaskAssignmentPackConsignmentAction
,TaskAssignmentPickupConsignmentAction
,TaskAssignmentShipConsignmentAction
public abstract class AbstractTaskAssignmentActions extends java.lang.Object implements AutomatedWorkflowTemplateJob
Abstract class that have the common functionality of TaskConsignment actions
-
-
Constructor Summary
Constructors Constructor Description AbstractTaskAssignmentActions()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.workflow.jobs.AutomatedWorkflowTemplateJob
perform
-
-
-
-
Method Detail
-
getAttachedConsignment
protected java.util.Optional<ItemModel> getAttachedConsignment(WorkflowActionModel action)
Fetches the consignmentConsignmentModel
associated to the receivedWorkflowActionModel
- Parameters:
action
- theWorkflowActionModel
that contains theConsignmentModel
- Returns:
- the attached
ConsignmentModel
-
getAttachedAsn
protected java.util.Optional<ItemModel> getAttachedAsn(WorkflowActionModel action)
Fetches theAdvancedShippingNoticeModel
associated to the receivedWorkflowActionModel
- Parameters:
action
- theWorkflowActionModel
that contains theAdvancedShippingNoticeModel
- Returns:
- the attached
AdvancedShippingNoticeModel
-
assignNewPrincipalToAction
protected void assignNewPrincipalToAction(WorkflowActionModel automatedWorkflowAction, WorkflowActionModel workflowAction)
AlignsAbstractWorkflowActionModel.PRINCIPALASSIGNED
between action and automated action.- Parameters:
automatedWorkflowAction
- the automatedWorkflowActionModel
workflowAction
- theWorkflowActionModel
-
getWorkflowActionAndAssignPrincipal
protected void getWorkflowActionAndAssignPrincipal(java.lang.String templateCode, WorkflowActionModel currentWorkflowAction, ConsignmentModel attachedConsignment, java.lang.String actionLabel)
Gets theWorkflowActionModel
and assigns the proper principal to it.- Parameters:
templateCode
- theAbstractWorkflowActionModel.CODE
currentWorkflowAction
- the currentWorkflowActionModel
attachedConsignment
- the attachedConsignmentModel
actionLabel
- the string to be displayed by the logger to describe the action.
-
getConsignmentBusinessProcessService
protected WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
-
setConsignmentBusinessProcessService
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getWarehousingConsignmentWorkflowService
protected WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
-
setWarehousingConsignmentWorkflowService
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
-
-