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:
Click on Shared Groovy Scripts
Click on
New shared script
Enter the name of this shared script in
Shared script name
. This name can be used as the name of theClass
that will contain all methods and data members defined in the script.Enter an optional description in
Description
.Input a valid Groovy script in
Groovy script
. It is strongly recommended to wrap any (static) method in a class.