Interface WarehousingConsignmentWorkflowService
-
- All Known Implementing Classes:
DefaultWarehousingConsignmentWorkflowService
public interface WarehousingConsignmentWorkflowService
Warehousing service that creates and starts a consignmentConsignmentModel
workflow.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
decideWorkflowAction(ConsignmentModel consignment, java.lang.String templateCode, java.lang.String choice)
Decides whichWorkflowActionModel
to trigger from a givenConsignmentModel
and moves consignment's business processWorkflowActionModel
getWorkflowActionForTemplateCode(java.lang.String templateCode, ConsignmentModel consignment)
void
startConsignmentWorkflow(ConsignmentModel consignment)
Starts a workflow for the given consignmentConsignmentModel
.void
terminateConsignmentWorkflow(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
-ConsignmentModel
for which a workflow needs to be started
-
terminateConsignmentWorkflow
void terminateConsignmentWorkflow(ConsignmentModel consignment)
Terminates a workflow assigned for the given consignmentConsignmentModel
- Parameters:
consignment
-ConsignmentModel
which we want to terminate the workflow for
-
decideWorkflowAction
void decideWorkflowAction(ConsignmentModel consignment, java.lang.String templateCode, java.lang.String choice)
Decides whichWorkflowActionModel
to trigger from a givenConsignmentModel
and moves consignment's business process- Parameters:
consignment
- theConsignmentModel
on which your action happenedtemplateCode
- theJobModel.CODE
choice
- the string code of the consignment'sBusinessProcessModel
choice to be processed
-
getWorkflowActionForTemplateCode
WorkflowActionModel getWorkflowActionForTemplateCode(java.lang.String templateCode, ConsignmentModel consignment)
- Parameters:
templateCode
- theJobModel.CODE
to retrieveconsignment
- theConsignmentModel
for which theWorkflowActionModel
is required- Returns:
- the
WorkflowActionModel
-
-