Implement the Generate Message Script

Any script in a process must use JavaScript to remove any validation markers before process deployment.

Process objects, such as data fields or user tasks, have a Label and a Name. A Label can contain spaces or non-alphanumeric characters. TIBCO Business Studio automatically generates the Name from the Label, and removes spaces and non-alphanumeric characters.

Perform the following procedure to add the appropriate JavaScript code.

Procedure

  1. From the WelcomeUsers-Process pane, select Generate Message.
  2. From Properties > General, click Script Defined As, and select JavaScript.
  3. In Describe Task Script, add the following JavaScript:
    data.Message = "Please call " + data.UserName + " at " + data.PhoneNumber + "."
    Note that Generate Message no longer has a validation marker.
  4. Click away from the field to save.
  5. Press CTRL + S to save the changes.