Class DefaultWarehousingConsignmentWorkflowService
java.lang.Object
de.hybris.platform.warehousing.taskassignment.services.impl.DefaultWarehousingConsignmentWorkflowService
- All Implemented Interfaces:
WarehousingConsignmentWorkflowService
public class DefaultWarehousingConsignmentWorkflowService
extends Object
implements WarehousingConsignmentWorkflowService
Default implementation of
WarehousingConsignmentWorkflowService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecideWorkflowAction(ConsignmentModel consignment, String templateCode, String choice) Decides whichWorkflowActionModelto trigger from a givenConsignmentModeland moves consignment's business processprotected ConfigurationServiceprotected ModelServiceprotected UserSelectionStrategyprotected UserServicegetWorkflowActionForTemplateCode(String templateCode, ConsignmentModel consignment) protected WorkflowProcessingServiceprotected WorkflowServiceprotected WorkflowTemplateServicevoidsetConfigurationService(ConfigurationService configurationService) voidsetConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService) voidsetModelService(ModelService modelService) voidsetUserSelectionStrategy(UserSelectionStrategy userSelectionStrategy) voidsetUserService(UserService userService) voidsetWorkflowProcessingService(WorkflowProcessingService workflowProcessingService) voidsetWorkflowService(WorkflowService workflowService) voidsetWorkflowTemplateService(WorkflowTemplateService workflowTemplateService) voidstartConsignmentWorkflow(ConsignmentModel consignment) Starts a workflow for the given consignmentConsignmentModel.voidterminateConsignmentWorkflow(ConsignmentModel consignment) Terminates a workflow assigned for the given consignmentConsignmentModelprotected voidterminateWorkflow(WorkflowModel taskAssignmentWorkflow) Terminates the givenWorkflowModelas well as all of its relatedWorkflowActionModel
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
CONSIGNMENT_TEMPLATE_NAME
- See Also:
-
WORKFLOW_OF_CONSIGNMENT
- See Also:
-
CONSIGNMENT_ACTION_EVENT_NAME
- See Also:
-
-
Constructor Details
-
DefaultWarehousingConsignmentWorkflowService
public DefaultWarehousingConsignmentWorkflowService()
-
-
Method Details
-
startConsignmentWorkflow
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
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
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(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
Terminates the givenWorkflowModelas well as all of its relatedWorkflowActionModel- Parameters:
taskAssignmentWorkflow- the workflow to be terminated
-
getWorkflowService
-
setWorkflowService
-
getWorkflowTemplateService
-
setWorkflowTemplateService
-
getWorkflowProcessingService
-
setWorkflowProcessingService
-
getUserService
-
setUserService
-
getUserSelectionStrategy
-
setUserSelectionStrategy
-
getConfigurationService
-
setConfigurationService
-
getModelService
-
setModelService
-
getConsignmentBusinessProcessService
protected WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService() -
setConsignmentBusinessProcessService
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
-