Develop > Groovy scripts > Best practices

Best practices

The tips in this section will help you to develop high-quality scripts.

Improving performance

Customization scripts are executed as part of the processing flow, causing customization to slow down process execution. As long as the increase in total processing time is small this is not a problem, but if the total processing time increases to a significant portion of the interval between subsequent process runs, all OMi processes, including event and topology synchronization, could be negatively affected or even disrupted. Therefore, it is important to make the absolute time it takes to execute your custom script as small as possible.

Improving code quality

The quality of your code has a direct impact on the ease with which the resulting script can be integrated and maintained.

Facilitating writing code

The following tips help you make writing Groovy scripts for OMi as easy as possible.