Conditional Multi Process Tool Plugin

Introduction

The Conditional Multi Process Tool Plugin allows you to execute up to five process tool plugins based on defined conditions. Depending on your configuration, these tools can run sequentially or in parallel. This plugin is an excellent alternative to the default Multi Tools plugin, offering more flexibility by allowing conditional execution.

You can access the source code for this plugin on JogetOSS GitHub. Feel free to clone and customize it to suit your needs.

Plugin information

Get started

Where to get the plugin

The plugin is available for download at the Joget Marketplace.

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.

Configure conditional multi process tool properties

  • No. of Process Tools: Select the number of process tool(s) you need.

    Depending on the number of process tools selected, there will be number of subsequent tabs to configure, like (Choose First/Second/... Process Tool)

    Each requires a condition written in JavaScript. If the condition is evaluated as true, then only the selected process tool will be executed.

    • Condition: Define the condition for executing each tool using JavaScript.
      Example:
      "#form.purchase_requests.approval#" === 'approved' && "#form.purchase_requests.category#" === 'medicalSupplies'
      
    • Process Tool: Select the process tool to configure.

      Upon selecting a process tool, a configuration tab will appear next to the current configuration tab, allowing you to configure the selected process tool. See all available process tools here: List of Process Tools.

  • Parallel Execution Mode: When this option is not checked, all process tool(s) that fulfils their condition will execute sequentially in a separate thread and wait for all of them to complete execution before proceeding.

    When this option is checked, all process tool(s) that fulfils their condition will execute in a separate thread(s) and wait for all of them to complete execution before proceeding.

    Do not check this option if there are dependencies among the multiple configured process tools to ensure data integrity.
    E.g., Storing data to a form table and the next process tool updating the same record. 
  • Debug Mode: When this option is checked, you can observe additional debug messages for this plugin in the server log.

Download plugin

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