Copyright © Cloud Software Group, Inc. All Rights Reserved |
• Set default columns to display on the procedure list, work queue list, case list, work item list, outstanding work item list on the case Outstanding tab, and the outstanding work item list on the Process Jump dialog.
• Specify which columns are available for a user to display from the Column Selector dialogs.
•
• Filter - These methods control default filters and additional filters to apply to user-defined filters.
• Sort - These methods control default sorts and additional sorts to apply to user-defined sorts.
• Column - These methods control default column displays and which columns the user is allowed to select from the Column Selector.
Specifies the default columns to display on the procedure list, case list, work queue list, work item list, outstanding work items list on the case Outstanding tab, and the outstanding work items lists on the Process Jump dialog. Specifies which columns will be available to the user on the Column Selector dialog from the procedure list, case list, work queue list, work item list, outstanding work items list on the case Outstanding tab, and the outstanding work items lists on the Process Jump dialog. This controls which columns the user is able to display on each of the lists.
Also see the Migration section in the Release Notes for information about callout interface method considerations if you are upgrading your version of the iProcess Workspace (Browser).The TIBCO iProcess Workspace (Browser) comes with a sample callout handler that contains sample implementations of all of the callout methods. This sample callout handler is named ‘SampleCalloutHandler.js’ and is located in the InstallationHomeDir\iprocessclientbrowser\samples\Callouts directory, where InstallationHomeDir is the directory in which the installer places administrative files, such as the uninstaller, documentation, and sample code. This defaults to C:\tibco on Windows systems, and /opt/tibco on UNIX systems, but can be specified as a different directory when the iProcess Workspace (Browser) is installed.
Upon deprecation of this callout interface, the name of the sample callout handler file was renamed SampleCalloutHandlerDeprecated.js. For more information, see page 421.
1. Copy the SampleCalloutHandler.js file into a directory you’ve created under the ClientInstallDir\JSXAPPS\ipc\ directory, where ClientInstallDir is the path to the directory in which the iProcess Workspace (Browser) is installed. For example, ClientInstallDir\JSXAPPS\ipc\Callouts.You may also want to rename the SampleCalloutHandler.js file to identify the type of custom handling it performs. For example, ‘ColumnsCalloutHandler.js’.
2. Modify the callout handler (e.g., ColumnsCalloutHandler.js) to fit your needs.The original SampleCalloutHandler.js file that you copied contains sample implementations of each of the available callout methods.There is also a componentName parameter that specifies the specific instance of the component the method is affecting. This can be useful in WCC custom applications where you may be displaying multiple lists at one time, and would like to modify the filter, sort, or columns on only one of them.The jsx3.xml.Entity object is a TIBCO General Interface class that is a wrapper of the native browser XML node class. This class provides methods for querying, traversing, and creating XML entities (see the TIBCO General Interface documentation for more information). The object is a Document Object Model (DOM) class that provides methods to add, find, modify, or delete XML values in an XML document. Use these methods to modify the incoming XML so that the desired filter, sort, or columns are displayed.When customizing the callout handler, you must also register the callout method with the application CalloutController by adding the method to the init (constructor) method. It must be in the form:
− target - (Object) The instance or object the method is called on.
− arrayOfMethodNames - (Array<strings>) Array of strings that are the names of the methods to register.
A reference to the application object is passed as the single parameter to the init (constructor) method.Note that the application getServer() method can be used to get a reference to the jsx3.app.Server instance:
3. Specify the callout handler custom class in the iProcess Workspace (Browser)’s configuration file, ClientInstallDir\JSXAPPS\ipc\config.xml.The <record jsxid=”customCallout” element specifies which classes will be loaded to handle custom callout methods. The <Classes> element can contain any number of <Class> elements whose class attribute is set to the fully qualified name of the custom class to load. The class is loaded after the user is authenticated at login. This gives the custom class access to the logged-in user's session to query the Action Processor for initialization data, if required.The following is an example of the customCallout element identifying the ColumnsCalloutHandler custom class:
4. Add a mapping record to the config.xml file that points to the custom handler. This is added as a child element of the <record jsxid=”includes” element. The following is an example class mapping element for the custom callout handler, ColumnsCalloutHandler.js.
5.
Note that case is significant on some web servers, such as Tomcat. For example, if you are storing your custom callouts in the directory, ClientInstallDir\JSXAPPS\ipc\Callouts (i.e., with “Callouts” capitalized), the path specification to the custom callout handler in the config.xml file cannot be “JSXAPPS/ipc/callouts/ColumnsCalloutHandler.js” (i.e., with “callouts” not capitalized).The following are the method signatures from the SampleCalloutHandler.js file (in JavaDoc format).
The sample above would show only work items whose procedure name starts with “a”. (For information about filter expression syntax, see the TIBCO iProcess Server Objects (Java or .NET) Programmer’s Guide.)
The following are example availableFields and queueNode parameter values used with calloutWorkItemFilterColumns:
Each vSortField has three properties with accessors as shown:New vSortField values are created by passing the three properties in the constructor:
The value of eventNode depends on the type of list as shown below:
The following are example availableFields and columns parameter values used with calloutSelectColumns:
Copyright © Cloud Software Group, Inc. All Rights Reserved |