Creating or editing a custom script in the Extension Script page

This section outlines how to create a Groovy script in WFM for your custom rule and/or custom condition.

To create a new custom script for a rule or condition:

  1. Select Maintenance > System Administration > Scriptable Extensions > Extension Script.
  2. Click New to create a new custom script or select an existing custom script and click Load.
  3. If you are creating a new custom script, enter this information:
    Script Name
    Your script name.
    Description
    A description.
    Script Type
    The type of script.
    Time Limit (seconds)
    The maximum time the script is permitted to execute. If the script executes for longer, the script will terminate and an exception will be thrown with a message that explains the reason for termination. The default is 120 seconds.
    Memory Limit (kilobytes)
    The maximum amount of memory allocated to the script during execution. The default is 100 kilobytes.
  4. Enter new Groovy code or edit existing code for your custom rule or condition in the editor. The editor features syntax highlighting and fold/unfold functionality as well as line numbering.
  5. To save your changes, click Save.
  6. To create the UI fields for parameters, you will need to refer to the appropriate topic in this section for the type of custom script.
You should follow the coding requirements and examples outlined in this section for custom rules and conditions.