Class StartWorkFlowForAdmin
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
de.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction
de.hybris.platform.travelfulfilmentprocess.actions.b2b.StartWorkFlowForAdmin
- All Implemented Interfaces:
de.hybris.platform.processengine.spring.Action
public class StartWorkFlowForAdmin
extends de.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction
The type Start work flow for admin.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition -
Field Summary
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignToGroup(B2BCustomerModel admin, UserGroupModel userGroup) Assign to group.protected WorkflowModelcreateAndStartWorkflow(B2BApprovalProcessModel process, B2BCustomerModel admin) Create and start workflow workflow model.de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.TransitionexecuteAction(B2BApprovalProcessModel process) protected B2BCustomerModelFind b 2 b administrator for customer b 2 b customer model.protected de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> Gets b 2 b unit service.protected de.hybris.platform.b2b.services.B2BWorkflowIntegrationServiceGets b 2 b workflow integration service.protected de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImplGets permission result helper.protected de.hybris.platform.servicelayer.user.UserServiceGets user service.protected de.hybris.platform.workflow.WorkflowProcessingServiceGets workflow processing service.protected de.hybris.platform.workflow.WorkflowServiceGets workflow service.protected voidhandleError(OrderModel order, Exception exception) Handle error.voidsetB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) Sets b 2 b unit service.voidsetB2bWorkflowIntegrationService(de.hybris.platform.b2b.services.B2BWorkflowIntegrationService b2bWorkflowIntegrationService) Sets b 2 b workflow integration service.voidsetPermissionResultHelper(de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImpl permissionResultHelper) Sets permission result helper.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.voidsetWorkflowProcessingService(de.hybris.platform.workflow.WorkflowProcessingService workflowProcessingService) Sets workflow processing service.voidsetWorkflowService(de.hybris.platform.workflow.WorkflowService workflowService) Sets workflow service.Methods inherited from class de.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction
executeActionMethods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
StartWorkFlowForAdmin
public StartWorkFlowForAdmin()
-
-
Method Details
-
executeAction
public de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition executeAction(B2BApprovalProcessModel process) throws de.hybris.platform.task.RetryLaterException - Specified by:
executeActionin classde.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction- Throws:
de.hybris.platform.task.RetryLaterException
-
assignToGroup
Assign to group.- Parameters:
admin- the adminuserGroup- the user group
-
findB2BAdministratorForCustomer
Find b 2 b administrator for customer b 2 b customer model.- Parameters:
customer- the customer- Returns:
- the b 2 b customer model
-
createAndStartWorkflow
protected WorkflowModel createAndStartWorkflow(B2BApprovalProcessModel process, B2BCustomerModel admin) Create and start workflow workflow model.- Parameters:
process- the processadmin- the admin- Returns:
- the workflow model
-
handleError
Handle error.- Parameters:
order- the orderexception- the exception
-
getB2bUnitService
protected de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()Gets b 2 b unit service.- Returns:
- the b 2 b unit service
-
setB2bUnitService
public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) Sets b 2 b unit service.- Parameters:
b2bUnitService- the b 2 b unit service
-
getB2bWorkflowIntegrationService
protected de.hybris.platform.b2b.services.B2BWorkflowIntegrationService getB2bWorkflowIntegrationService()Gets b 2 b workflow integration service.- Returns:
- the b 2 b workflow integration service
-
setB2bWorkflowIntegrationService
public void setB2bWorkflowIntegrationService(de.hybris.platform.b2b.services.B2BWorkflowIntegrationService b2bWorkflowIntegrationService) Sets b 2 b workflow integration service.- Parameters:
b2bWorkflowIntegrationService- the b 2 b workflow integration service
-
getWorkflowProcessingService
protected de.hybris.platform.workflow.WorkflowProcessingService getWorkflowProcessingService()Gets workflow processing service.- Returns:
- the workflow processing service
-
setWorkflowProcessingService
public void setWorkflowProcessingService(de.hybris.platform.workflow.WorkflowProcessingService workflowProcessingService) Sets workflow processing service.- Parameters:
workflowProcessingService- the workflow processing service
-
getWorkflowService
protected de.hybris.platform.workflow.WorkflowService getWorkflowService()Gets workflow service.- Returns:
- the workflow service
-
setWorkflowService
public void setWorkflowService(de.hybris.platform.workflow.WorkflowService workflowService) Sets workflow service.- Parameters:
workflowService- the workflow service
-
getPermissionResultHelper
protected de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImpl getPermissionResultHelper()Gets permission result helper.- Returns:
- the permission result helper
-
setPermissionResultHelper
public void setPermissionResultHelper(de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImpl permissionResultHelper) Sets permission result helper.- Parameters:
permissionResultHelper- the permission result helper
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService()Gets user service.- Returns:
- the user service
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.- Parameters:
userService- the user service
-