Interface B2BEscalationService

All Known Implementing Classes:
DefaultB2BEscalationService

public interface B2BEscalationService
The Interface B2BEscalationService. A service for escalating orders that need approval to the next eligible approvers.
Spring Bean ID:
b2bEscalationService
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the order can be escalated to a different approver(s)
    boolean
    Escalate the order's current approver to the next eligible approver.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Since 4.4.
    void
    Schedule escalation task based on configuration property 'escalationtask.executiontime.milliseconds'
  • Method Details

    • escalate

      boolean escalate(OrderModel order)
      Escalate the order's current approver to the next eligible approver.
      Parameters:
      order - the order in which the approver will be escalated to the next higher eligible approver
      Returns:
      true, if successful
    • handleEscalationFailure

      @Deprecated(since="4.4", forRemoval=true) boolean handleEscalationFailure(OrderModel order)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      Escalate to a member of b2badmingroup assigned to a parent unit of a user who created the order.
      Parameters:
      order - the order
      Returns:
      true, if the assignment was successful
    • scheduleEscalationTask

      void scheduleEscalationTask(OrderModel order)
      Schedule escalation task based on configuration property 'escalationtask.executiontime.milliseconds'
      Parameters:
      order - the order in which the approver will be escalated to the next higher eligible approver
    • canEscalate

      boolean canEscalate(OrderModel order)
      Checks if the order can be escalated to a different approver(s)
      Parameters:
      order - An order placed in a b2b store
      Returns:
      True if an order can be escalated to different approver(s)