1173 - 高级自动化脚本技术.pdf
1、Advanced Automation Script TechniquesJason VenHuizenCPO-Naviam1173Automation Scripts are Customizations2 General conventions and techniques Defining custom objects in JavaScript and Python Passing functions as arguments Importing scripts and reusing libraries Implementing custom Java classes Demonst
2、ration:Implementing server sent events.3IntroductionGeneral Conventions and Techniques Use a main()function to enter the script.Provides a clear execution path Allows global runtime checks Allows code to return Avoids extensive if-then-else logic JavaScript Python5Use a main()Function Do not assume
3、the script was called from an expected event Ensure expected implicit variables are present mbo is not present in all contexts Use present variables to inform context,for example runAsUserInfo is only available for script CrontTasks Check that implicit variables are as expected Validate the mbo type





点击查看更多