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, processParameterHelper

    Fields inherited from interface de.hybris.platform.processengine.spring.Action

    ERROR_RETURN_CODE, RETRY_RETURN_CODE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Assign to group.
    protected WorkflowModel
    Create and start workflow workflow model.
    de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition
     
    Find 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.B2BWorkflowIntegrationService
    Gets b 2 b workflow integration service.
    protected de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImpl
    Gets permission result helper.
    protected de.hybris.platform.servicelayer.user.UserService
    Gets user service.
    protected de.hybris.platform.workflow.WorkflowProcessingService
    Gets workflow processing service.
    protected de.hybris.platform.workflow.WorkflowService
    Gets workflow service.
    protected void
    handleError(OrderModel order, Exception exception)
    Handle error.
    void
    setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
    Sets b 2 b unit service.
    void
    setB2bWorkflowIntegrationService(de.hybris.platform.b2b.services.B2BWorkflowIntegrationService b2bWorkflowIntegrationService)
    Sets b 2 b workflow integration service.
    void
    setPermissionResultHelper(de.hybris.platform.b2b.process.approval.actions.B2BPermissionResultHelperImpl permissionResultHelper)
    Sets permission result helper.
    void
    setUserService(de.hybris.platform.servicelayer.user.UserService userService)
    Sets user service.
    void
    setWorkflowProcessingService(de.hybris.platform.workflow.WorkflowProcessingService workflowProcessingService)
    Sets workflow processing service.
    void
    setWorkflowService(de.hybris.platform.workflow.WorkflowService workflowService)
    Sets workflow service.

    Methods inherited from class de.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction

    executeAction

    Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction

    execute, getTransitions

    Methods inherited from class de.hybris.platform.processengine.action.AbstractAction

    createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      executeAction in class de.hybris.platform.b2b.process.approval.actions.AbstractSimpleB2BApproveOrderDecisionAction
      Throws:
      de.hybris.platform.task.RetryLaterException
    • assignToGroup

      protected void assignToGroup(B2BCustomerModel admin, UserGroupModel userGroup)
      Assign to group.
      Parameters:
      admin - the admin
      userGroup - the user group
    • findB2BAdministratorForCustomer

      protected B2BCustomerModel findB2BAdministratorForCustomer(B2BCustomerModel customer)
      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 process
      admin - the admin
      Returns:
      the workflow model
    • handleError

      protected void handleError(OrderModel order, Exception exception)
      Handle error.
      Parameters:
      order - the order
      exception - 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