Class DefaultWarehousingConsignmentWorkflowService
- java.lang.Object
-
- de.hybris.platform.warehousing.taskassignment.services.impl.DefaultWarehousingConsignmentWorkflowService
-
- All Implemented Interfaces:
WarehousingConsignmentWorkflowService
public class DefaultWarehousingConsignmentWorkflowService extends java.lang.Object implements WarehousingConsignmentWorkflowService
Default implementation ofWarehousingConsignmentWorkflowService
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCONSIGNMENT_ACTION_EVENT_NAMEprotected static java.lang.StringCONSIGNMENT_TEMPLATE_NAMEprotected static org.slf4j.LoggerLOGGERprotected static java.lang.StringWORKFLOW_OF_CONSIGNMENT
-
Constructor Summary
Constructors Constructor Description DefaultWarehousingConsignmentWorkflowService()
-
Method Summary
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
CONSIGNMENT_TEMPLATE_NAME
protected static final java.lang.String CONSIGNMENT_TEMPLATE_NAME
- See Also:
- Constant Field Values
-
WORKFLOW_OF_CONSIGNMENT
protected static final java.lang.String WORKFLOW_OF_CONSIGNMENT
- See Also:
- Constant Field Values
-
CONSIGNMENT_ACTION_EVENT_NAME
protected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
startConsignmentWorkflow
public void startConsignmentWorkflow(ConsignmentModel consignment)
Description copied from interface:WarehousingConsignmentWorkflowServiceStarts a workflow for the given consignmentConsignmentModel.- Specified by:
startConsignmentWorkflowin interfaceWarehousingConsignmentWorkflowService- Parameters:
consignment-ConsignmentModelfor which a workflow needs to be started
-
terminateConsignmentWorkflow
public void terminateConsignmentWorkflow(ConsignmentModel consignment)
Description copied from interface:WarehousingConsignmentWorkflowServiceTerminates a workflow assigned for the given consignmentConsignmentModel- Specified by:
terminateConsignmentWorkflowin interfaceWarehousingConsignmentWorkflowService- Parameters:
consignment-ConsignmentModelwhich we want to terminate the workflow for
-
decideWorkflowAction
public void decideWorkflowAction(ConsignmentModel consignment, java.lang.String templateCode, java.lang.String choice)
Description copied from interface:WarehousingConsignmentWorkflowServiceDecides whichWorkflowActionModelto trigger from a givenConsignmentModeland moves consignment's business process- Specified by:
decideWorkflowActionin interfaceWarehousingConsignmentWorkflowService- Parameters:
consignment- theConsignmentModelon which your action happenedtemplateCode- theJobModel.CODEchoice- the string code of the consignment'sBusinessProcessModelchoice to be processed
-
getWorkflowActionForTemplateCode
public WorkflowActionModel getWorkflowActionForTemplateCode(java.lang.String templateCode, ConsignmentModel consignment)
Description copied from interface:WarehousingConsignmentWorkflowService- Specified by:
getWorkflowActionForTemplateCodein interfaceWarehousingConsignmentWorkflowService- Parameters:
templateCode- theJobModel.CODEto retrieveconsignment- theConsignmentModelfor which theWorkflowActionModelis required- Returns:
- the
WorkflowActionModel
-
terminateWorkflow
protected void terminateWorkflow(WorkflowModel taskAssignmentWorkflow)
Terminates the givenWorkflowModelas well as all of its relatedWorkflowActionModel- Parameters:
taskAssignmentWorkflow- the workflow to be terminated
-
getWorkflowService
protected WorkflowService getWorkflowService()
-
setWorkflowService
public void setWorkflowService(WorkflowService workflowService)
-
getWorkflowTemplateService
protected WorkflowTemplateService getWorkflowTemplateService()
-
setWorkflowTemplateService
public void setWorkflowTemplateService(WorkflowTemplateService workflowTemplateService)
-
getWorkflowProcessingService
protected WorkflowProcessingService getWorkflowProcessingService()
-
setWorkflowProcessingService
public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getUserSelectionStrategy
protected UserSelectionStrategy getUserSelectionStrategy()
-
setUserSelectionStrategy
public void setUserSelectionStrategy(UserSelectionStrategy userSelectionStrategy)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getConsignmentBusinessProcessService
protected WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
-
setConsignmentBusinessProcessService
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
-
-