Use a service to allow a business process developed in IBM® Process
Designer to work with an
Enterprise Content Management (ECM) system or a BPM document store.
Before you begin
If you are working with an external ECM system, you should have added your Enterprise Content
Management (ECM) servers to your process application as shown in Adding an Enterprise Content Management server.
You don't need to define your server to work with one of built-in stores, such as the BPM managed store, BPM content store, BPM document store, and BPM target store.
You should add the Content
Management (SYSCM) toolkit to your dependencies, if it has not been
added as you will need access to the ECM types. To add this toolkit
dependency, select + beside TOOLKITS.
In the Add dependency menu, select the Content
Management toolkit version you require.
About this task
To build a service that integrates with an ECM system or a BPM document store, follow these steps:
Procedure
-
Create a service that contains a Content Integration step:
-
Add a Content Integration step to the canvas and provide a meaningful
name for it.
-
Under Properties, click Implementation. Under
Enterprise Content Management Server, <Use data
mapping> is the default selection in the Server field. It
means that in the Data Mapping section, the Server
name input map is enabled and editable. You can pass a server name by using a variable
in that field.
Alternatively, you can select one of the following server types in the
Server field.
- BPM managed store
- BPM content store (deprecated)
- BPM document store
- BPM target store
- The name of an ECM server
If you want to select the name of an ECM server but no ECM servers are available for selection,
you can add a server in the Process App Settings editor. See Adding an Enterprise Content Management server.
-
Under Content Operation, select an appropriate ECM operation. See Outbound operations for external ECM systems and BPM stores.
-
Click Data Mapping. In this section you can create the map between the
variables for input and output. These variables need to be created. You can create them manually by
yourself or use the auto-map function. The auto-map function creates private variables for the
business objects, which are used by the service you create. To create these private variables, click
the auto-map icon
.
- Click Save or
Finish Editing.
For details about declaring
variables for the client-side human services, see
Declaring variables
What to do next
As with any service, if you have errors at run time, use
catching error events to handle errors thrown by a content integration
step. A content integration step may raise an error with error code ECMError and
error data of type ECMError. See Handling errors in services.