Business process designer > BPMN processes > Graphical elements > Approval / Approval use case

Approval use case

Here is an example of a process with a configured contract approval route.

use_case_approval_process
The process comprises the following steps:

  1. The initiator prepares the contract and sends it for approval to the lawyers.
  2. An approval sheet is formed. Any member of the legal department can review the contract and either send it back for revision, attaching a version of the document with comments, or approve it. After making a decision, the approval task will be removed from other users, and the process can branch into several paths.
  3. If the contract is approved by the lawyer, it is sent for approval to the Head of the Sales Department.
  4. If the document requires revisions, the initiator will receive a task to make the necessary amendments. The current approval gets closed. The contract will then be sent back for another round of reviews by the approvers, creating a new approval sheet.
  5. Once the lawyer and the Head of the Sales Department approve the document, the process is completed and the final decision is displayed on the contract page. The initiator will receive a task to organize a meeting with the client to sign the contract.
  6. If the legal team doesn’t review the document within the given timeframe, the CEO will be assigned a task to monitor the approval.

Set up the first approval stage

The initial Approve contract task has four outgoing connectors:

  • Approved.
  • Rejected.
  • Deadline violated.
  • Default connector.

The contract will be sent for approval to all lawyers simultaneously. However, as soon as one of the employees makes a decision, the task will be canceled for all other executors, and the current approval will end. To implement such approval logic, set up the task and conditions for the connectors.

 

  1. In the activity settings specify the Manually approval method and select the parallel execution option.
  2. Set up the Approved connector.

Double-click the connector and go to the Conditions tab. Add the condition Approval Percentage > 0. As soon as someone clicks Approve in the task, it will be canceled for all other approvers, and the process will proceed to the next step: approval by the Head of the Sales Department.

 

  1. Set up the Rejected connector.

 

To ensure that only one employee completes the task, create the condition Rejection Percentage > 0.

When approving, lawyers can add a new contract version with comments. In this case, the approval sheet will be archived, and the process will be interrupted.

 

To avoid ending the process, add another condition. Select the OR operator and the Archived value. For the operation, choose the equals symbol. In the Field value column, click on <Undefined>, select Enter value, and check the box. This way, when adding a new document version, the process will follow the Rejected path.

approval_case_rejected

начало внимание

To use the Archived option, you must set the rules for archiving approval sheets in the app settings.

конец внимание

If one of the set conditions is met, the initiator will receive the Amend contract activity, and the approval task will be canceled for other lawyers.

 

  1. Set up the Deadline violated connector.

 

Limit the execution time for the Approval task. If the lawyers fail to make a decision on time, the CEO will receive a monitoring task.

 

Open the activity settings and go to the Deadline tab. Specify an exact time for the task, for example, three days, and in the Interrupt field, select the transition to the Deadline violated task. After saving the settings, this connector on the diagram will be marked with a clock icon.

 

  1. Set up the default connector.

 

To allow the process to continue if none of the conditions are met, a default connector must be specified.

 

You cannot set conditions for such a connector. Therefore, we cannot choose the Approved or Rejected paths. Add another connector, and in the activity settings, mark it as the default connector. On the diagram, it will be depicted as an arrow with a diagonal line.

 

  1. Add a custom status Approve with comments so that during the process the lawyer can additionally draw the attention of the Head of the Sales Department to some aspects of the contract. The status will be displayed in the approval task as a button. If the lawyer clicks it, their comment in the approval sheet will be marked with a different color. The custom status does not affect the process: when it is used, it is considered that the lawyer has approved the contract.

To create an additional status, go to the Custom Statuses tab in the activity settings. Enable Use custom status next to the Approved field and specify the name of the button in the task and the text of the status in the approval sheet.

approval_case_approve_contract

If a lawyer clicks the Approve with comments button while performing a task, the process will proceed to approval by the Head of the Sales Department. The user’s decision will be displayed in the approval sheet.

approval_case_approve_with_comments

  1. Place the End Approval element on the scheme after the lawyers' task. Then, if an employee sends the contract for revision, the approval sheet will close with the resolution Denied.

Set up the second approval stage

The second Approve contract task is located in the swimlane with a single executor. This means that the parallel or sequential approval setting does not apply to it.

Select the Manually approval method. Set the condition Approval Percentage > 0 for the Approved connector. The process will follow this path only if the manager approves the document. The Rejected connector for this task will serve as the default connector.

After the second task, add the End approval activity, so the initiator sees the decision in the approval sheet when signing the contract with the contractor.

Save and publish the configured process.