Introduction

This unique process tool plugin allows a maximum of 5 process tool plugins to be executed when their respective conditions are met, either sequentially or in a multi-threaded manner.

You can consider this plugin as an alternative to the default bundled Multi Tools plugin.

The plugin source codes can be found at JogetOSS Github. Feel free to clone and customize to suit your needs.

Configure Conditional Multi Process Tool

NameDescription
No. of Process Tools

Select the number of process tool(s) that 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 of them requires condition written in JavaScript. If the condition is evaluated as true, then only the selected process tool will be executed.

NameDescription
Condition

Expects a condition statement written in JavaScript.

Example:

"#form.purchase_requests.approval#" === 'approved' && "#form.purchase_requests.category#" === 'medicalSupplies'
Process Tool

Select a process tool to configure.

Upon selecting a process tool, a configuration tab will appear next to the current configuration tab to allow 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 fulfills 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 fulfills their condition will execute in separate thread(s), and wait for all of them to complete execution before proceeding.

If there are dependencies among the multiple configured process tools, do not check this option in order to ensure data integrity.

E.g.: Storing data to a form table and the next process tool updating the same record 

Debug ModeWhen this option is checked, you can observe additional debug messages for this plugin in the server log.

Download Plugin

https://marketplace.joget.org/jw/web/userview/mp/mpp/_/vad?id=conditional_multi_process_tool