Getting Form LoadStats to work in AMX BPM Custom Forms.

Getting Form LoadStats to work in AMX BPM Custom Forms.

book

Article ID: KB0085432

calendar_today

Updated On:

Products Versions
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) -
Not Applicable -

Description

Description:
How to get the form LoadStats to work. This allows retrieval of form loading timings from the form runtime.

Resolution

1). If you are using version 2.1.0, then get the build.xml from the Resolution section of KB 38156.

2). In worklist.jsp, pass &tibco_instr=true in the openworkitem action.

Example:

    <td><a href="#"
            onclick='openWorkItem("workprocessor?workitemId=<%=workItems.getId().getId()%>&workitemVersion=<%=workItems.getId().getVersion()%>&workitemState=<%=workItems.getState()%>&action=openworkitem&tibco_instr=true")'

3). Insert the following after the form load with error section.

var callback = function(subject, form) {
        var stat = form.getLoadStats();
        alert("stat.length="+stat.length);
        for (var i=0; i<stat.length; i++) {
        alert(stat[i].label+" |End Time : "
        + stat[i].endTime+" | Begin Time : "
        + stat[i].startTime);
        }
        }
        PageBus.subscribe('com.tibco.forms.form.loaded', null,callback);

For reference, these changes have been made to the attached JSP files (Filename: login.jsp,openworkitem.jsp and worklist.jsp) from the sampleapp.zip provided with the product.

Issue/Introduction

Getting Form LoadStats to work in AMX BPM Custom Forms.

Additional Information

TIBCO ActiveMatrix BPM Developer's Guide, Appendix B

Attachments

Getting Form LoadStats to work in AMX BPM Custom Forms. get_app
Getting Form LoadStats to work in AMX BPM Custom Forms. get_app
Getting Form LoadStats to work in AMX BPM Custom Forms. get_app