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 consignmentConsignmentModelassociated to the receivedWorkflowActionModel- Parameters:
action- theWorkflowActionModelthat contains theConsignmentModel- Returns:
- the attached
ConsignmentModel
-
getAttachedAsn
protected java.util.Optional<ItemModel> getAttachedAsn(WorkflowActionModel action)
Fetches theAdvancedShippingNoticeModelassociated to the receivedWorkflowActionModel- Parameters:
action- theWorkflowActionModelthat contains theAdvancedShippingNoticeModel- Returns:
- the attached
AdvancedShippingNoticeModel
-
assignNewPrincipalToAction
protected void assignNewPrincipalToAction(WorkflowActionModel automatedWorkflowAction, WorkflowActionModel workflowAction)
AlignsAbstractWorkflowActionModel.PRINCIPALASSIGNEDbetween action and automated action.- Parameters:
automatedWorkflowAction- the automatedWorkflowActionModelworkflowAction- theWorkflowActionModel
-
getWorkflowActionAndAssignPrincipal
protected void getWorkflowActionAndAssignPrincipal(java.lang.String templateCode, WorkflowActionModel currentWorkflowAction, ConsignmentModel attachedConsignment, java.lang.String actionLabel)Gets theWorkflowActionModeland assigns the proper principal to it.- Parameters:
templateCode- theAbstractWorkflowActionModel.CODEcurrentWorkflowAction- the currentWorkflowActionModelattachedConsignment- the attachedConsignmentModelactionLabel- 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)
-
-