Interface OmsWorkflowFacade
-
- All Known Implementing Classes:
DefaultOmsWorkflowFacade
public interface OmsWorkflowFacadeOrder management facade exposing operations related toWorkflowModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecideAction(java.lang.String workflowCode, java.lang.String workflowDecisionCode)Decides theWorkflowActionModelwith the providedAbstractWorkflowDecisionModel.NAMEvoiddecideActions(WorkflowCodesDataList workflowCodes, java.lang.String workflowDecisionCode)Decides a list of workflows containing actions with the provided workflow decision namejava.util.List<WorkflowActionData>getWorkflowActions()API to get all active workflow actions for the current user in the systemWorkflowDatastartErrorRecoveryWorkflow(ItemModel item, java.lang.String workflowName, java.lang.String workflowTemplateCode, java.lang.String userGroupUid, java.lang.String errorType, java.lang.String errorDescription)Creates and starts an error recovery workflow with the given template for the givenItemModel.WorkflowDatastartWorkflow(ItemModel item, java.lang.String workflowName, java.lang.String workflowTemplateCode, java.lang.String userGroupUid)Creates and starts a workflow with the given template for the givenItemModel.
-
-
-
Method Detail
-
startErrorRecoveryWorkflow
WorkflowData startErrorRecoveryWorkflow(ItemModel item, java.lang.String workflowName, java.lang.String workflowTemplateCode, java.lang.String userGroupUid, java.lang.String errorType, java.lang.String errorDescription)
Creates and starts an error recovery workflow with the given template for the givenItemModel.- Parameters:
item- theItemModelfor which to start the workflowworkflowName- name given to the workflow at creation timeworkflowTemplateCode- template code of the workflow to be starteduserGroupUid- the uid of the group to be assigned to the workflow actionserrorType- the type of the error. ThisStringwill be persisted inside of the created workflowerrorDescription- the description of the error. ThisStringwill be persisted inside of the created workflow- Returns:
- instance of created
WorkflowData
-
startWorkflow
WorkflowData startWorkflow(ItemModel item, java.lang.String workflowName, java.lang.String workflowTemplateCode, java.lang.String userGroupUid)
Creates and starts a workflow with the given template for the givenItemModel.- Parameters:
item- theItemModelfor which to start the workflowworkflowName- name given to the workflow at creation timeworkflowTemplateCode- template code of the workflow to be starteduserGroupUid- the uid of the group to be assigned to the workflow actions- Returns:
- instance of created
WorkflowData
-
getWorkflowActions
java.util.List<WorkflowActionData> getWorkflowActions()
API to get all active workflow actions for the current user in the system- Returns:
- a list of
WorkflowActionData
-
decideAction
void decideAction(java.lang.String workflowCode, java.lang.String workflowDecisionCode)Decides theWorkflowActionModelwith the providedAbstractWorkflowDecisionModel.NAME- Parameters:
workflowCode- theCronJobModel.CODEwhich the action belongs toworkflowDecisionCode- the decision to take on the action
-
decideActions
void decideActions(WorkflowCodesDataList workflowCodes, java.lang.String workflowDecisionCode)
Decides a list of workflows containing actions with the provided workflow decision name- Parameters:
workflowCodes- the WorkflowCodesDataList containing a list of workflow codes which the actions belong toworkflowDecisionCode- the decision to take on the actions
-
-