Automation scripts

Automation scripts are small, targeted pieces of code that can extend the product. An automation script consists of a launch point, variables with corresponding binding values, and the source code. You use wizards to create the components of an automation script. You create scripts and launch points or you create a launch point and associate the launch point with an existing script.

You can also create library scripts, which are reusable pieces of programming language that automation scripts can invoke from the body their code. Library scripts must be hosted on the same system.

Prerequisite skills

To extend the product business logic or automate tasks, you must have knowledge in the following areas:
  • Scripting language syntax and operations
  • Product configurations such as workflow processes, escalations, and actions
  • Application data models and relationships
Experience with the Maximo® business object (MBO) API is an advantage although not a prerequisite.

Components of automation scripts

Launch points
A launch point defines the execution context for a script, for example when a business object is updated or a value is entered into a field. Five types of launch point are supported and the Automation Scripts application provides a separate wizard application for creating each type of launch point.
Variables and binding values
You can specify the variables that determine how information is passed into or received from a script in the wizard applications. Variables are not mandatory, but when you use variables it simplifies the amount of code to be written and is easier to reuse the code.
Source code
You can write source code in an external application and import it into the Automation Scripts application. Alternatively, you can enter code directly into the Source Code field in the wizard applications. The source code must be written in the languages that are supported by the following script engines:
  • Mozilla Rhino, version 1.6 release 2
  • Jython, version 2.7.0