Interface IApprovalsManager


public interface IApprovalsManager
Velocity template utility bean used to render approval buttons.
  • Method Details

    • shouldShowApprovalButtons

      boolean shouldShowApprovalButtons()
      It returns true if:

      Approvals is enabled (and)

      Recipient User exist (and)

      The recipient user has approval decisions to be made according to the JSD workflow configuration.

      Returns:
      if there are approval buttons to be shown.
    • getApprovalButtons

      List<ApprovalButton> getApprovalButtons()
      Returns the approval buttons for the given user. This method will query JSD rest api to know if there is an approval process in place.
      Returns:
      the list of approval buttons, emtpy if not buttons needs to been shown.