Defining the Task Script

A script defines how the data entered by the user is processed.

Procedure

  1. Select the Set Response script task.
  2. On the General tab of the Set Response task, select JavaScript from the drop-down list in the Script Defined As: field.
  3. In the Describe Task Script: field, type:
    myResponse = com_example_serviceprovider_Factory.createResponse();
    myResponse.combinedName = myRequest.forename + " " + myRequest.surname;
  4. Select the End event and on the General tab set the Result Type to Message.