Set the BOM JavaScript Path

The bomJSPath variable holds the root folder path used for loading the BOM JavaScript files used by the form, in the format required by the Forms Runtime Adapter loadForm method.

var bomJSPath = "<%=bpmJSPath%>";

This variable is constructed as:

String bpmJSPath = urls+workItem.getWorkTypeDetail().getVersion();
String urls = reqSession.getAttribute("protocol") + "://" + reqSession.getAttribute("host") + ":" + reqSession.getAttribute("port") + "/bpmresources/";