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 - BPM Edition automatically generates the Name for 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: Generate Message no longer has a validation marker.
  4. Click outside the field to save.
  5. Press Ctrl+S to save the changes.