Custom condition basic coding requirements
Here are some basic custom rule coding requirements:
- The class for conditions must extend com.workbrain2.ta.publ.api.ConditionScriptable. The condition code example in this section will illustrate this requirement.
- 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.
- The class for conditions should use only methods and fields that are available in the WFM Java API. You can refer to the published Javadoc for more information.
- All methods or properties written in custom scripts cannot be private.
- Static methods are not permitted. If a static method is defined in the script and executed, an exception will be thrown.