Using Case Data to Open Work Lists From Business Services Using Custom Clients
In TIBCO ActiveMatrix BPM, you can specify case data in a business service and open a work item list that belongs to the specified case data. If required, you can use this feature in your custom client. This feature is provided as a component of the BPM Web Client API.
TIBCO ActiveMatrix BPM allows you to use the case reference of the case data in a business service. You can then display a list of work items that are associated with the specified case reference. You can perform all the usual functions on the work items in the list in the normal way. For example, open, allocate, filter or sort work items. See TIBCO ActiveMatrix BPM Client Developer API Guide for more information.
This feature is provided as a component of the BPM Web Client API. See TIBCO ActiveMatrix BPM Client Developer API Guide for more information about the BPM Web Client API. Using TIBCO Business Studio, you can develop web clients to be used with TIBCO ActiveMatrix BPM using the Web Client API. TIBCO Business Studio uses Google Web Toolkit (GWT) that in turn uses the BPM Web Client API to access the BPM runtime services.
The BPM Web Client API provides an API called webCompRunner. There are three methods that the webCompRunner API provides:
- The initialize method loads the client script and informs your custom client that the component is ready to be used.
- The load method loads the work item list associated with the case reference.
- The unload method provides any cleaning up and also allows you to load another work item list associated with a different case reference, if required.
- The update_case_reference method allows you to pass a new case reference.
Prerequisites
- To use this feature, you must have selected the Openspace Gadget Development installation profile when installing TIBCO Business Studio. The Openspace Gadget Development installation profile is available when you select Customize Installation during installation. See TIBCO Business Studio Installation Guide.
-
The BPM Web Client API is provided as two jar files which are installed when you install the BPM runtime at TIBCO_HOME\client-api\n.n\web-client-api where n.n is the version of TIBCO ActiveMatrix BPM that you are using. For example, C:\Program Files\tibco\amx-bpm\client-api\3.0\web-client-api. The jar files are:
- If you want to use TIBCO Forms in your in custom client, you must import the formsclient.nocache.js file into your web application project and include a script tag that points to this file. This provides the TIBCO Forms library. See TIBCO Forms User's Guide for more information about TIBCO Forms.
- On your hosting page, you need to have a reference to the webcomponentclient.jsfile.
- If you are developing a GWT app, you need to inherit the BPM web client API module.