Creating a Script to Generate the Welcome Greeting
The WelcomeUsersService process does not do anything complex between its start and end events. It simply runs a script that:
takes the UserName string provided by the start event.
generates the Greeting string that will be returned by the end event.
Procedure
Click the Script tool in the Palette in the Tasks drawer.
Position the mouse pointer over the sequence flow between the Get user’s Name start event and the Send greeting end event, then click to add the script task.
Change the script task label to Generate greeting.
In the Properties view, General tab, change the Script Defined As field to JavaScript.