Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Disclaimer: Please refrain from using this plugin, as it may pose security risks.


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

Plugin Information

Plugins Available in the Bundle:

  1. Lazy Approval Tool

This plugin bundle is compatible with Joget DX 8.

Expected Outcome

The user is able to approve or reject the assignment outside of Joget App. By utilising the email tool to send email with the URL, the user is able to click on the URL to perform assignment approval or rejection.

WarningDisclaimer: Please refrain from using this plugin, as it may pose security risks.

Get Started


1. Setup SMTP values in Joget App for the email tool to be working properly.

Figure 1: SMTP Settings

Refer to Sign in with app passwords to generate the password for SMTP Gmail.

For more details, please refer to General Settings > SMTP Settings.  

2. API Domain/IP Whitelist

To ensure the successful operation of this plugin, it is essential to whitelist the domains or IP addresses of the host. Typically, this involves adding the IP address or domain name of your Joget application server to the whitelist. To access this section of Joget, go to Settings → General Settings and scroll down till you see API Domain/IP Whitelist section. (IMPORTANT NOTE: If this is not set, you will get a 400 Forbidden error when clicking on approve/reject)

Figure 2: API Domain/IP Whitelist



API Domain Whitelist (Separated by ';')

Domain whitelist to allow API calls to Joget Workflow. Separated by semicolon.


"localhost;;”, or "*" to allow from everywhere.

In a production environment, do not use "*".

Doing so will allow anyone to call all JSON APIs from the Joget server.

API IP Whitelist (Separated by ';')

IP address whitelist to allow API calls to Joget. Separated by semicolon.


"localhost;;; ”, or "*" to allow from everywhere.

In a production environment, do not use "*".

Doing so will allow anyone to call all JSON APIs from the Joget server.


1. You can obtain the jar file by the latest release at

2. Upload the plugin jar file in Joget by going to Settings → Manage Plugins.

3. You can choose to import the demo app or create the app from scratch.

Steps for importing demo app

1. Download the demo app from Download Demo App.

2. Go to Joget Home or All Apps and click on Import App to import the downloaded demo app.

Steps for creating app from scratch

1. The first part of the app is the form. This form gathers the user's name and email address (this can be any fields as they are not important for the plugin flow).

The Select Approver select box will be the value for Workflow Variable assignee which we will use in the workflow process later.

Figure 3: Select Approver Select Box

Inside the form, we also have hidden fields that keep track of the approval status. These hidden fields must be exactly same as it is case sensitive to be picked up in our plugin code.

Figure 4: Hidden Fields in the Form

2. The second part of the sample app is the process. The process is where the Lazy Approval Tool is configured, to see how to configure the tool, check out Lazy Approval Tool Properties.

The process starts off by prompting the user to submit the form, once the form has been submitted, the Lazy Approval Tool and Email Tool will be triggered. The Lazy Approval Tool will generate a URL based on the configurations, then we can pass the URL to the Email Tool using Hash Variable. You can refer to Figure 5 for the Email Tool Configurations.

Figure 5: Email Tool Configurations

After the Email Tool, we will add an activity 1 that the lazy approval link will be approving.

Then, a decision route will be deciding the route based on the status chosen from the Email.

Below shows the process of the single activity that is described above.

Figure 6: Process of Sample App (Single Activity)

For multiple activity, we will need to duplicate the route twice, as we will need to call the lazy approval tool again to run the second activity.

Figure 7: Process of Sample App (Multiple Activity)

3. Now you can create a UI to show the processes and an Inbox list to show the process list.

Drag the "Run Process" and attach the single activity, rename it to "Run Process Approval (Single Activity)".

Do the same for the multiple activity. Drag the inbox list and rename it to "Process List"

Figure 8: UI Builder 

Steps to run the plugin

1. To test on single activity, go to "Run Process Approval (Single Activity)" form and fill it. Make sure the approver has configured an email address in the "Users" section.

Figure 9: Process for Single Activity

2. In "Process List", you will see that a process is running.

Figure 10: Process List with a running process

3. Check your email, you will receive an email for the selected approver's email.

Figure 11: Email received

4. Click on the email and click on "Approve" or "Reject".

Figure 12: Email to Approve or Reject Assignment

5. You will be directed to a page saying assignment completed with all the details. After that, you can close the window. You can see the similar details in Monitor > Running Processes as shown in Figure 14.

Figure 13: Redirected to message page

Figure 14: Monitor > Running Processes

6. After that, go back to the app and see the "Process List". The assignment just now has been completed.

Figure 15: Process List with no process

7. There will be an email saying assignment approved.

Figure 16: Email with Assignment Approved


1. You can also click on the approval link and perform assignment in Incognito Mode, meaning that your Joget App does not have to be signed in to perform the task. Therefore, the assignee that the URL is sent to is important not to be shared out to unauthorised users.

Lazy Approval Tool Properties

Configure Lazy Approval Tool

Figure 17: Lazy Approval Tool Configuration



Form *

The form of the process.

Process *

The process value to generate the lazy approval link.

Activity *

The activity value to generate the lazy approval link.

Assignee (Participant ID) *

The assignee who will be assigned to perform the assignment.

Workflow Variable (Status) *

The workflow variable that defines the approve or reject status.