User Assignment Count Hash Variable Plugin

Introduction

The User Assignment Count Hash Variable Plugin retrieves the current running and completed assignment count for the logged-in user.

Available Formats

  • #loggedInUser.runningCount# – Returns the running assignment count.
  • #loggedInUser.completedCount# – Returns the completed assignment count.

Plugin information

  • Plugin Name: Assignment Count Hash Variable
  • Compatibility: Joget DX 8

Get started

Where to get the plugin

You can download the plugin from Assignment Count Hash Variable Plugin Releases.

How to install

  1. Download the plugin JAR file from the releases page.
  2. Go to Settings > Manage Plugins > Upload Plugin.
  3. Once uploaded, the plugin will be available in your Joget environment.

How to use it

  1. For reference on how the hash variable works, create a form with two readonly text fields with the values in Table 1. Save the form.
  2. Create another form to be added in the simple process later on.
  3. Create a simple process to demonstrate the use case of this plugin. Save the process.


  4. Create an UI. Drag the Form element and link the Form 1 created in first step.
  5. Next, drag the Run Process element and link the process created in the previous steps. Save and launch the UI.
  6. You can see that the values for the current user have been shown.
  7. Now open a new tab for Run Process. Submit to run the process.
  8. Return to the existing form tab, refresh and you can see that the running count has been increased by 1.
  9. Return to the Run Process tab and click on Complete.

  10. Return to the tab of the existing form, refresh it, and you will see that the running count has decreased by 1, and the completed count has increased by 1.
  11. Now log in with another user (in this demo, I will log in as Cat). You can see the running and completed count is 0. Run the process.

  12. Go to Form, you can see that the running count has increased by 1.
  13. Now login as admin. You can see that the assignment for Cat is not calculated here because this hash is for logged-in users only.

  14. Alternatively, as admin, you can check the values of assignment details at Administrator Bar > Monitor.

Expected outcome

You can retrieve the running and completed assignment counts for the logged-in user.

Download plugin

Created by Julieth Last modified by Aadrian on Nov 19, 2024