Skip to end of metadata
Go to start of metadata

Introduction

Plugins can be executed within activities configured as a source or target in an operation, or called from within scripts. Wherever they are used, it is usually necessary to initialize certain global variable values for use with the plugin.

Determining if Global Variables Are Required

If using a Jitterbit-provided plugin, reference the documentation for each plugin available under Plugin Library to determine which global variables are required or optional and what to set them to.

NOTE: Global variables are referred to as data elements within the plugin XML manifest files for Jitterbit-provided plugins.

If a plugin does not have any variables that are required, it is not necessary to set global variables in a script unless there are other optional variable values you want to provide.

Setting Global Variables for the Plugin

Prior to executing a plugin that is applied to an activity or called from a script, you must initialize any variables that are required by the plugin. This is normally done by creating a script to set these values that is upstream of the plugin in the operation chain. If calling a plugin from a script, you may set the global variable values in the same script or a different script, so long as they are initialized before the plugin is run. 

For example, when using the PGP Encryption plugin, you may create a script in a separate operation that sets these global variable values:

After you have created the script, if the plugin is applied on an activity or is being called from a script in another operation, you can then add an operation action to run the operation that contains the plugin on success of the operation where the global variables are set.

The final workflow setup for this example has an operation to set the variable values for the plugin, and another operation using the activity where the plugin is applied: 

TIP: Depending on the order in which the operations were created, if needed, you can drag and drop operations within the project pane or design canvas to reorder them (see Reordering Operations in Operation Creation and Configuration).
On This Page

Last updated:  Nov 19, 2020

  • No labels