Interface WarehousingConsignmentWorkflowService
- All Known Implementing Classes:
DefaultWarehousingConsignmentWorkflowService
public interface WarehousingConsignmentWorkflowService
Warehousing service that creates and starts a consignment
ConsignmentModel workflow.-
Method Summary
Modifier and TypeMethodDescriptionvoiddecideWorkflowAction(ConsignmentModel consignment, String templateCode, String choice) Decides whichWorkflowActionModelto trigger from a givenConsignmentModeland moves consignment's business processgetWorkflowActionForTemplateCode(String templateCode, ConsignmentModel consignment) voidstartConsignmentWorkflow(ConsignmentModel consignment) Starts a workflow for the given consignmentConsignmentModel.voidterminateConsignmentWorkflow(ConsignmentModel consignment) Terminates a workflow assigned for the given consignmentConsignmentModel
-
Method Details
-
startConsignmentWorkflow
Starts a workflow for the given consignmentConsignmentModel.- Parameters:
consignment-ConsignmentModelfor which a workflow needs to be started
-
terminateConsignmentWorkflow
Terminates a workflow assigned for the given consignmentConsignmentModel- Parameters:
consignment-ConsignmentModelwhich we want to terminate the workflow for
-
decideWorkflowAction
Decides whichWorkflowActionModelto trigger from a givenConsignmentModeland moves consignment's business process- Parameters:
consignment- theConsignmentModelon which your action happenedtemplateCode- theJobModel.CODEchoice- the string code of the consignment'sBusinessProcessModelchoice to be processed
-
getWorkflowActionForTemplateCode
WorkflowActionModel getWorkflowActionForTemplateCode(String templateCode, ConsignmentModel consignment) - Parameters:
templateCode- theJobModel.CODEto retrieveconsignment- theConsignmentModelfor which theWorkflowActionModelis required- Returns:
- the
WorkflowActionModel
-