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.String
CONSIGNMENT_ACTION_EVENT_NAME
protected static java.lang.String
CONSIGNMENT_TEMPLATE_NAME
protected static org.slf4j.Logger
LOGGER
protected static java.lang.String
WORKFLOW_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:WarehousingConsignmentWorkflowService
Starts a workflow for the given consignmentConsignmentModel
.- Specified by:
startConsignmentWorkflow
in interfaceWarehousingConsignmentWorkflowService
- Parameters:
consignment
-ConsignmentModel
for which a workflow needs to be started
-
terminateConsignmentWorkflow
public void terminateConsignmentWorkflow(ConsignmentModel consignment)
Description copied from interface:WarehousingConsignmentWorkflowService
Terminates a workflow assigned for the given consignmentConsignmentModel
- Specified by:
terminateConsignmentWorkflow
in interfaceWarehousingConsignmentWorkflowService
- Parameters:
consignment
-ConsignmentModel
which 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:WarehousingConsignmentWorkflowService
Decides whichWorkflowActionModel
to trigger from a givenConsignmentModel
and moves consignment's business process- Specified by:
decideWorkflowAction
in interfaceWarehousingConsignmentWorkflowService
- Parameters:
consignment
- theConsignmentModel
on which your action happenedtemplateCode
- theJobModel.CODE
choice
- the string code of the consignment'sBusinessProcessModel
choice to be processed
-
getWorkflowActionForTemplateCode
public WorkflowActionModel getWorkflowActionForTemplateCode(java.lang.String templateCode, ConsignmentModel consignment)
Description copied from interface:WarehousingConsignmentWorkflowService
- Specified by:
getWorkflowActionForTemplateCode
in interfaceWarehousingConsignmentWorkflowService
- Parameters:
templateCode
- theJobModel.CODE
to retrieveconsignment
- theConsignmentModel
for which theWorkflowActionModel
is required- Returns:
- the
WorkflowActionModel
-
terminateWorkflow
protected void terminateWorkflow(WorkflowModel taskAssignmentWorkflow)
Terminates the givenWorkflowModel
as 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)
-
-