closeForm method in iProcess Workspace Browser causes error

closeForm method in iProcess Workspace Browser causes error

book

Article ID: KB0079996

calendar_today

Updated On:

Products Versions
TIBCO iProcess Workspace (Browser) 11.6.0

Description

Some General Interface (GI) forms used with the iProcess Workspace Browser (iPWB) may generate the following error when calling closeForm on Keep, Release or Cancel:
 
jsx3.lang.NativeError: Object doesn't support property or method 'closeForm' (type:TypeError, line:-1)
 at jsx3.land.NativeError#wrap()
 at com.tibco.bpm.ipc.OSIP.onlaunchBackEndApplicationSuccess()
 .... etc ...


with the code performing something like:

this.getApp().log("onLaunch" + serviceText + "Success - Server response time: " + tTotal + " seconds.", true);
this.getApp().log("onlaunch" + serviceText + "Success - " + objEvent.target.getInboundDocument());
this.closeForm();

Issue/Introduction

Customer's using GI custom forms with iProcess Workspace Browser v11.6 may encounter errors when the form uses closeForm

Environment

TIBCO iProcess Workspace (Browser) 11.6.0 for .Net or Java web app servers (IIS/Tomcat)

Resolution

The cause was a defect in the v11.6.0 iProcess Workspace Browser release and will be fixed in a future release (IPWB-393) as the closeForm interface was changed.  The workaround is to alter the GI form to use the following syntax to call closeForm:
 
this.getApp().closeForm(this.getId());

The closeForm method will be returned to the Form class in a future release to resolve this issue.