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 Object
implements AutomatedWorkflowTemplateJob
Abstract class that have the common functionality of TaskConsignment actions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignNewPrincipalToAction(WorkflowActionModel automatedWorkflowAction, WorkflowActionModel workflowAction) AlignsAbstractWorkflowActionModel.PRINCIPALASSIGNEDbetween action and automated action.getAttachedAsn(WorkflowActionModel action) Fetches theAdvancedShippingNoticeModelassociated to the receivedWorkflowActionModelFetches the consignmentConsignmentModelassociated to the receivedWorkflowActionModelprotected ModelServiceprotected WarehousingConsignmentWorkflowServiceprotected voidgetWorkflowActionAndAssignPrincipal(String templateCode, WorkflowActionModel currentWorkflowAction, ConsignmentModel attachedConsignment, String actionLabel) Gets theWorkflowActionModeland assigns the proper principal to it.voidsetConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService) voidsetModelService(ModelService modelService) voidsetWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.workflow.jobs.AutomatedWorkflowTemplateJob
perform
-
Constructor Details
-
AbstractTaskAssignmentActions
public AbstractTaskAssignmentActions()
-
-
Method Details
-
getAttachedConsignment
Fetches the consignmentConsignmentModelassociated to the receivedWorkflowActionModel- Parameters:
action- theWorkflowActionModelthat contains theConsignmentModel- Returns:
- the attached
ConsignmentModel
-
getAttachedAsn
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(String templateCode, WorkflowActionModel currentWorkflowAction, ConsignmentModel attachedConsignment, 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
-
setModelService
-
getWarehousingConsignmentWorkflowService
-
setWarehousingConsignmentWorkflowService
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
-