Creating BPM documents
You can create BPM documents by using
one of the BPM documents Coach views and by using content integration
in a service.
About this task
You can use the following user interfaces to create BPM documents:
- One of the BPM documents Coach views: Document List view (if it has been enabled to allow document creation) or the Documents view. For more information, see Configuring views for storing and viewing Enterprise Content Management documents.
- The Content Integration node that is available in the human service, Ajax service, and integration service editors. For more information, see Building a service that integrates with an ECM system or a BPM store.
If you use the Content Integration node to create a document, you select the BPM document store as the target server and select the Create document operation. The only required value for this operation is the document name. The object type ID and folder ID are automatically specified because they are mandatory properties when the BPM document store is specified as the target server.
Optionally, you can also provide content and properties:
- To provide content, you can use an ECMContentStream variable. For an example of how to create a content stream, see Working with document content.
- To provide properties, you can use a list of ECMProperty objects. All properties are optional and will default to a specific value if not specified. For more information about default values, see The IBM_BPM_Document document type. For information about constructing an ECMProperty list, see Working with the IBM_BPM_Document_Properties property.
What to do next
Note: Ensure each document has a unique name because two
documents with the same name in a folder is not allowed in the embedded document store.
In the
data mapping, you pass the document ID that was returned by the Create
document operation. For the document server name, you use the
ECMServerNames.IBM_BPM_DOCUMENT_STORE constant. For the parent folder ID, you use
the identifier of the folder where you want to add the document; for example, the
tw.system.currentProcessInstance.processInstanceFolderId expression for the root
folder of the process. Optionally, you can provide a reference name if you want the document to
appear with a label in the folder that is different than the name of the document.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15