Attaching the script to the condition

At the end of the process when you submit the script design, a script with the logic you defined is created. Next, you must attach the script to the condition.

About this task

The title field value is mapped to the WFNODE Maximo business object’s title attribute, which has a limit of 10 characters. The title is holding a pointer to the script launch point pair by appending the script name and the launch point name with the “:” as separator. Both the script name and launch point name can be 20 characters, which is a default setting. You must use a maximum of four characters for the script and launch point name. Also, if the script has a single launch point, you can omit the launch point name from the title and use only the script name. The reason to do it this way as opposed to keeping an entry in the WFNODE table for the script name and the launch point name is to not modify any existing artifacts.

Procedure

  1. Create a condition node in the Workflow Designer application.
    1. In the Workflow Designer application, click New Process.
    2. Drag and drop a condition node onto the canvas.
  2. Set the title of the condition node to scriptname:launchpointname where the script name and the launch point name are the script and launch point pair you created.
  3. Go to the Condition Node Properties dialog to set the condition type as custom. In the in the Expression field, set the custom Java class to com.ibm.tivoli.maximo.script.CustomCondition, which is the predefined proxy for the scripted conditions.
  4. Save and activate the workflow.