Obtain the Initial Data to Load the Form

The initData variable holds the data that is used to populate the form when it is loaded.

var initData = '<%=workItem.getPayloadModel().getSerializedPayload()%>';

This data is obtained from the work item object returned by the previous openWorkItem call (in worklist.jsp).