0 votes
2.3k views
in Integrations by (120 points)
edited by
How to implement ECM file uploader , ECM Document list and ECM file list  in IBM BPM 8.6.0 ?

Please suggest.

Thank you

1 Answer

0 votes
by (30.6k points)

On IBM BPM 8.6.0 the ECM controls live in the Content Management toolkit (SYSCM) and work against any CMIS server (FileNet, Box, the BPM document store itself). Steps:

  1. Define the ECM server: Process App Settings > Servers > Add > type Enterprise Content Management server: CMIS URL (FileNet: https://host:9443/fncmis/resources/Service), repository (object store) id, user / password or "use process user". Test the connection.
  2. Add the dependency on the Content Management toolkit and choose the server in the coach views' ECM server option (or the "Default ECM server" of the app).
  3. Coach: ECM File Uploader (uploads into a folder: option Folder path or Folder id, document class, properties), ECM Document List (documents of a folder or bound list of ECMDocumentInfo), ECM File List (older name of the same idea) and ECM Document Viewer.
  4. Bind data: the uploader's output is an ECMDocumentInfo (id, name, folder, properties); the list is bound to a list of ECMDocumentInfo and can be filtered with a CMIS query.
// service flow: create a folder per instance and give its path to the coach
var folder = tw.system.ecm.createFolder(tw.env.ecmServerName, "/Orders", "ORD-" + tw.local.orderId);   // ECMFolder
tw.local.folderId = folder.objectId;
// search documents of that folder (CMIS)
var results = tw.system.ecm.search(tw.env.ecmServerName, "SELECT * FROM Document WHERE IN_FOLDER('" + tw.local.folderId + "')");

Alternatively use the integration services of the toolkit in a service flow (Create Document, Get Document Content, Update Document Properties, Search) when the upload must happen server-side (generated files). Common issues: the CMIS user needs create rights on the folder, the object store's default document class must allow the mapped properties, and the FileNet certificate must be in the BPM truststore.

References

Related questions

0 votes
1 answer 2.8k views
asked Jan 4, 2019 in Portal by anonymous
0 votes
1 answer 2.2k views
0 votes
1 answer 2.0k views
0 votes
2 answers 4.6k views
0 votes
1 answer 1.1k views
0 votes
1 answer 1.4k views
0 votes
1 answer 774 views
0 votes
1 answer 2.5k views
0 votes
1 answer 1.2k views
asked May 15, 2016 in Integrations by anonymous
0 votes
1 answer 688 views
0 votes
2 answers 4.7k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...