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
- From the WelcomeUsers-Process pane, select Generate Message.
- From Script Defined As, and select JavaScript. , click
- 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. - Click outside the field to save.
- Press Ctrl+S to save the changes.