You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Introduction

The Lazy Approval Tool Plugin is designed for effortless assignment approval using a URL. In this article, we will examine a sample application that sends a URL via email. The recipient of the email can then approve or reject the assignment by clicking on the URL provided in the email. 

This plugin source code is available in JogetOSS repository at https://github.com/jogetoss/lazy-approval-tool.

Inside The App

In this section, we will examine what the app does and how it does it. 

Form

The first part of the app is the form. This form gathers the user's name and email address. Inside the form, we also have hidden fields that keep track of the approval status. We'll get into how these hidden fields work when we talk about the processes. After that, we'll shoot out an email asking the user to either say yes or no to the assignment.

Figure 1: Sample App Form

Process

The second part of the sample app is the process. The process is where the Lazy Approval Tool is configured. The process starts off by prompting the user to submit the form, once the form has been submitted, the process will be triggered and an email will be sent to the user. The image below is what the user will see after submitting the form.

Figure 2: Email Sent


After accepting or rejecting the assignment, a page will be redirected and the following message will be shown.

Figure 3: Redirected page with message


There will be another email sent to the user notifying them of their decision.

Figure 4: Email of the Notification


This is how the overall process looks like and how it works for single activity and multiple activity respectively.

Figure 5: Process of Sample App (Single Activity)


Figure 6: Process of Sample App (Multiple Activity)


This is what the configuration of the Lazy Approval Tool looks like in the process.

Figure 7: Lazy Approval Tool Configuration


If you would like to download the sample app and try out the tool for yourself, please note that you have to:

  • Configure the SMTP settings in the process in order to receive the emails. 
  • In the Joget System Settings > General Settings, set API Domain Whitelist to * (IMPORTANT NOTE: If this is not set, you will get a 400 Forbidden error when clicking on approve/reject).


Download the Sample App


  • No labels