DEV Community

Explorer
Explorer

Posted on • Edited on

🧩 Use BeanShell Hash Variables in Joget

Overview

BeanShell hash variables are useful when you want to reuse server-side logic inside Joget and return a value dynamically. They are especially helpful when one script needs to call another script with runtime parameters.

Create an App Variable

Call the App Variable

Important Notes

  1. BeanShell hash variables return strings.
  2. You can pass dynamic values into the hash variable call.
  3. Use clear parameter names so the called script is easier to maintain.

Pass Dynamic Values to a BeanShell Hash

Call the Hash Variable With Dynamic Values

Top comments (0)