Creating automation scripts

You create automation scripts to extend the business logic for applications. You can use the supplied wizards to create scripts and launch points with associated variables and bindings. You can also use the wizards to associate launch points with existing scripts.

Before you begin

All automation scripts are added and modified in your nonproduction environment, exported, and then imported to your production environment. The administrator of your production enviroment requests a nonproduction environment by entering a support case at IBM Support for Maximo EAM SaaS.

About this task

You create scripts by using the Maximo Business Rules (MBR) scripting language. MBR is a language that is developed for Maximo products, and it is the only language that can be used in this multitenant environment.

You use the same menu items for creating scripts and launch points as you do for creating a launch point to associate with an existing script.

With some scripts, you reference the MBOs. For example, when you add a script for creating a record, you reference the MBO in the record creation part of the script.

Procedure

  1. In your nonproduction environment, in the Automation Scripts application, select Create and choose the type of launch point that you want to create, or create a script without a launch point.
  2. Select whether to add a script or specify an existing script. If you add a script, you can code it in a source code field or you can import a script.
  3. Create the launch point if you are using one, and then associate variables and bindings with the launch point.
  4. Click Create to save the launch point, variables, and script code.
  5. Select the Export Application action to export the script locally to a JSON file.
    In your production environment, in the Automation Scripts application, import the file and enable the script if it is ready to test.