Versions Compared

Key

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

In Bean Shell plugin, we can call other Joget plugins programmatically to perform a specific task without the need to rewrite specific functionality that existing plugins may have already addressed.

...

In this Bean Shell code, we will make use of of the JSON API Tool.

Before we move on, let's inspect how the plugin is configured first.

...

We will need to obtain the attributes of the configured plugin, plugn so that we can then programmatically configure it with coding.

One quick way to learn the attributes needed is to make use of the browserProcess Builder's Developer Advanced Tools > Network JSON Definition to observe the submission made when we hit the submit buttonplugin's properties.

Image RemovedImage Added

Figure 2: JSON Tool Attributes

...

Figure 3: Obtaining JSON Tool AttrbutesAttributes

With this infomation information on hand, we can now configure the plugin through coding. Configurations are made in the the propertiesMap variable in the sample code below.

...