You can create functions to encapsulate commonly used and more complex logic in a named function, and then reuse the function as command parameter values or filter parameters values in OnCommand Workflow Automation (WFA).
Guidelines | Example |
---|---|
Use Camel case for a function name. | calculateVolumeSize |
Variable names should be in plain English and related to the functionality of the function. | splitByDelimiter |
Do not use abbreviations. | calculateVolumeSize, not calcVolSize |
Functions are defined using MVFLEX Expression Language (MVEL). | None |
The function definition should be specified according to the official Java Programming Language guidelines. | None |