Interface WarehousingConsignmentWorkflowService
-
- All Known Implementing Classes:
DefaultWarehousingConsignmentWorkflowService
public interface WarehousingConsignmentWorkflowServiceWarehousing service that creates and starts a consignmentConsignmentModelworkflow.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecideWorkflowAction(ConsignmentModel consignment, java.lang.String templateCode, java.lang.String choice)Decides whichWorkflowActionModelto trigger from a givenConsignmentModeland moves consignment's business processWorkflowActionModelgetWorkflowActionForTemplateCode(java.lang.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 Detail
-
startConsignmentWorkflow
void startConsignmentWorkflow(ConsignmentModel consignment)
Starts a workflow for the given consignmentConsignmentModel.- Parameters:
consignment-ConsignmentModelfor which a workflow needs to be started
-
terminateConsignmentWorkflow
void terminateConsignmentWorkflow(ConsignmentModel consignment)
Terminates a workflow assigned for the given consignmentConsignmentModel- Parameters:
consignment-ConsignmentModelwhich we want to terminate the workflow for
-
decideWorkflowAction
void decideWorkflowAction(ConsignmentModel consignment, java.lang.String templateCode, java.lang.String choice)
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(java.lang.String templateCode, ConsignmentModel consignment)
- Parameters:
templateCode- theJobModel.CODEto retrieveconsignment- theConsignmentModelfor which theWorkflowActionModelis required- Returns:
- the
WorkflowActionModel
-
-