Class DefaultOmsWorkflowFacade
java.lang.Object
de.hybris.platform.ordermanagementfacades.workflow.impl.DefaultOmsWorkflowFacade
- All Implemented Interfaces:
OmsWorkflowFacade
Default implementation for
OmsWorkflowFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WorkflowModelcreateAndStartWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, String userGroupUid) Creates and starts a workflow with the given template for the givenItemModel.voiddecideAction(String workflowCode, String workflowDecisionCode) Decides theWorkflowActionModelwith the providedAbstractWorkflowDecisionModel.NAMEvoiddecideActions(WorkflowCodesDataList workflowCodes, String workflowDecisionCode) Decides a list of workflows containing actions with the provided workflow decision nameprotected ModelServiceprotected UserGroupModelgetUserGroupModel(String userGroupUid) Resolves the given group's uid to theUserGroupModelprotected UserServiceprotected Converter<WorkflowActionModel,WorkflowActionData> API to get all active workflow actions for the current user in the systemprotected WorkflowActionServiceprotected Converter<WorkflowModel,WorkflowData> protected WorkflowProcessingServiceprotected WorkflowServiceprotected WorkflowTemplateServicevoidsetModelService(ModelService modelService) voidsetUserService(UserService userService) voidsetWorkflowActionConverter(Converter<WorkflowActionModel, WorkflowActionData> workflowActionConverter) voidsetWorkflowActionService(WorkflowActionService workflowActionService) voidsetWorkflowConverter(Converter<WorkflowModel, WorkflowData> workflowConverter) voidsetWorkflowProcessingService(WorkflowProcessingService workflowProcessingService) voidsetWorkflowService(WorkflowService workflowService) voidsetWorkflowTemplateService(WorkflowTemplateService workflowTemplateService) startErrorRecoveryWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, String userGroupUid, String errorType, String errorDescription) Creates and starts an error recovery workflow with the given template for the givenItemModel.startWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, String userGroupUid) Creates and starts a workflow with the given template for the givenItemModel.
-
Constructor Details
-
DefaultOmsWorkflowFacade
public DefaultOmsWorkflowFacade()
-
-
Method Details
-
startErrorRecoveryWorkflow
public WorkflowData startErrorRecoveryWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, String userGroupUid, String errorType, String errorDescription) Description copied from interface:OmsWorkflowFacadeCreates and starts an error recovery workflow with the given template for the givenItemModel.- Specified by:
startErrorRecoveryWorkflowin interfaceOmsWorkflowFacade- 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
public WorkflowData startWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, String userGroupUid) Description copied from interface:OmsWorkflowFacadeCreates and starts a workflow with the given template for the givenItemModel.- Specified by:
startWorkflowin interfaceOmsWorkflowFacade- 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
Description copied from interface:OmsWorkflowFacadeAPI to get all active workflow actions for the current user in the system- Specified by:
getWorkflowActionsin interfaceOmsWorkflowFacade- Returns:
- a list of
WorkflowActionData
-
decideAction
Description copied from interface:OmsWorkflowFacadeDecides theWorkflowActionModelwith the providedAbstractWorkflowDecisionModel.NAME- Specified by:
decideActionin interfaceOmsWorkflowFacade- Parameters:
workflowCode- theCronJobModel.CODEwhich the action belongs toworkflowDecisionCode- the decision to take on the action
-
decideActions
Description copied from interface:OmsWorkflowFacadeDecides a list of workflows containing actions with the provided workflow decision name- Specified by:
decideActionsin interfaceOmsWorkflowFacade- Parameters:
workflowCodes- the WorkflowCodesDataList containing a list of workflow codes which the actions belong toworkflowDecisionCode- the decision to take on the actions
-
createAndStartWorkflow
protected WorkflowModel createAndStartWorkflow(ItemModel item, String workflowName, String workflowTemplateCode, 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
WorkflowModel
-
getUserGroupModel
Resolves the given group's uid to theUserGroupModel- Parameters:
userGroupUid- the group's uid. If empty or null the method will return admin user group- Returns:
- instance of
UserGroupModel
-
getModelService
-
setModelService
-
getWorkflowService
-
setWorkflowService
-
getWorkflowTemplateService
-
setWorkflowTemplateService
-
getWorkflowProcessingService
-
setWorkflowProcessingService
-
getWorkflowActionService
-
setWorkflowActionService
-
getUserService
-
setUserService
-
getWorkflowConverter
-
setWorkflowConverter
-
getWorkflowActionConverter
-
setWorkflowActionConverter
public void setWorkflowActionConverter(Converter<WorkflowActionModel, WorkflowActionData> workflowActionConverter)
-