/
Shared Groovy Scripts

Shared Groovy Scripts

This document details the Shared Groovy scripts feature of JMWE. Using this you can define global Groovy scripts that will be available from any Groovy script written in the Groovy console, post-functions, conditions and validators. This is useful for reusing complex/lengthy scripts across multiple workflow transitions. It is available under JMWE administration pages

On this page:

Create a Shared Groovy Script

To create a shared Groovy script:

  1. Go to JMWE administration pages

  2. Click on Shared Groovy Scripts

  3. Click on New shared script

  4. Enter the name of this shared script in Shared script name. This name can be used as the name of the Class that will contain all methods and data members defined in the script.

  5. Enter an optional description in Description.

  6. Input a valid Groovy script in Groovy script It is strongly recommended to wrap any (static) method in a class.