Creating or editing a custom script in the Extension Script page

You can create a custom script in WFM 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, specify 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. Specify a 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. 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.