Configuring coach views for storing and viewing Enterprise Content Management documents
You can store and view documents on an ECM server from a client application, such as Process Portal, by configuring one of the document coach views (Document Explorer or ECM Document List view) and, optionally, a File Viewer view.
Before you begin
- BPM document store
- An external ECM server
- Toolkit dependencies
- Because you need access to ECM types, ensure that the Content Management (SYSCM) toolkit is added to the dependencies for the process application.
- Configuring the document views
- The Document Explorer is capable of determining what document folder to look at when it runs within a process context. No further configuration is required. However, if you intend to access content in an external ECM server, you need to configure both the Folder ID and Server name options. For more information about Document Explorer, see the topic Document Explorer.
- Columns: Provides a set of columns to display in the document lists.
- Filter: Provides a set of columns and values to filter on when searching for documents.
- Document object type ID: Specifies a document type to search for. The default document type is cmis:document.
You can also provide a full CMIS query value by configuring the CMIS query option. This query will override all other options described above. Finally, you can also override the search service associated with this view and provide your own. For more information, see the topic ECM Document List.
About this task
Add one of the document coach views to a coach to enable Process Portal users to store or view documents on an ECM server. All of the following steps apply to both the Document Explorer view and the ECM Document List view, except when otherwise specified.
Procedure
What to do next
You might want to update bindings in the documents coach view by using a script; for example, because the value of your CMIS query provided to the ECM Document List view changed. If you run a script to update the binding, you must change the previous value. In the following JavaScript example, the columns are updated by appending text that changes the older values:
tw.local.cmisQueryString = "SELECT cmis:name, cmis:objectId ";
if (tw.local.photoCatagory) tw.local.cmisQueryString = tw.local.cmisQueryString + ", PhotoCatagory";
if (tw.local.photoSubject) tw.local.cmisQueryString = tw.local.cmisQueryString + ", PhotoSubject";
if (tw.local.photoLocation) tw.local.cmisQueryString = tw.local.cmisQueryString + ", PhotoLocation";
if (tw.local.photoDate) tw.local.cmisQueryString = tw.local.cmisQueryString + ", PhotoDate";
tw.local.cmisQueryString = tw.local.cmisQueryString + " FROM acpPhoto";
tw.local.testCoachRefresh = tw.local.testCoachRefresh + "XYZ ";
The following steps show how to create a search service for the ECM Document List view:
- Ensure that you have the correct input and output variables and types by copying the ECM Document Search Service to your process application.
- Rename the ECM Document Search Service to an appropriate name; for example, MySearch.
- Update the search service as required.
The default service handles queries for both ECM Document List and BPM Document List. You can customize the flow by removing unnecessary nodes. You can maintain and update the Search ECM Documents node.
- Use the auto-map function to create the map between the input and output service parameters and the variables.