Coding requirements and tips for custom scripts
The code examples used in this section are written in the Groovy scripting language (*.groovy) which is required for custom scripts. The code examples in this document are valid examples that will work in WFM as is. However, they are just examples and do not cover a real-world use case. You will need to create custom scripts that meet your business requirements.
This section also outlines some basic requirements when writing your custom scripts for custom rules and conditions. One notable requirement is that static methods, static fields and static code blocks are not permitted. If a static method, field or code block is defined in the script and executed, an exception will be thrown. Static methods, fields and code blocks can also lead to performance issues.