Readme Demo
Readme Demo
Overview
This C# sample application demonstrates the capabilities of the Content Engine running
under the FileNet P8 Platform. Note that this code sample relies on the Content
Engine .NET API, which interacts with the server through the Content Engine Web
Services Interface (WSI). Operations demonstrated include:
1. Configuring the server
2. Creating a document
3. Getting a document
4. Creating a folder
5. Creating a custom object
6. Getting a custom object
7. Creating a compound document
8. Getting a compound document
9. Creating an ad-hoc query
You’ll find additional information about these operations in the Content Engine Java
and .NET Developer’s Guide, available in the IBM Knowledge Center.
Contents
Content Engine installed with a domain and at least one object store created.
A Windows® client machine that has the following installed:
● Microsoft .NET 4.0 Framework or higher. .NET 4.0 or higher frameworks
contain the Windows Communication Foundation (WCF).
If the Content Engine .NET API is missing, select FileNet.Api from the .NET tab of
the Add Reference dialog and click OK. If FileNet.Api does not appear on the .NET
tab, then switch to the Browse tab, navigate to the location of FileNet.Api.dll, select
it, and click OK.
If you are building on the same machine where the Content Engine is installed, you’ll
find FileNet.Api.dll in the <drive>:Program Files\FileNet\ContentEngine directory.
4. To build the application, choose Build Solution from the Build menu.
Once launched, the application’s main form appears, prompting for the URL of the server
to which to connect.
Enter the URL, substituting the placeholders with actual values for your system. The
default HTTP or HTTPS port for WebLogic is 7001 or 7002; the default HTTP or HTTPS
port for WebSphere is 9080 or 9443; the default HTTP or HTTPS port for JBoss servers
is 8080 or 8443.
Click the Connect button. If connection to the server is successful, a set of buttons
appear on the bottom of the window. Clicking a button takes you to a form that
demonstrates a basic API operation.
The following sections describe each of the forms available in the Demo application.
Creating a Document
To create a document, select the Create Doc button from the main form, enter
information in the following fields, and click the Create button.
Select OS: Click the radio button and select an object store.
Document Title: The title of the document (sets the DocumentTitle property).
Include content: If you wish the new document to hold content, select this check
box and use the Browse button to select the location of the file containing the
content.
MIME Type: If you have selected the above check box, enter the mime type of
the content. Default is “text/plain”.
Document Class: Enter the document class for the new document. Default is
Document.
File in Folder: If you wish to file the new document in a folder, select this check
box and enter the name of the folder. The default is “/”.
Check In: If you wish to check-in the new document, select this check box.
Getting a Document
To get a document, select the Get Doc button from the main form, enter information in
the following fields, and click the Get button.
Select OS: Click the radio button and select an object store.
By Path: Specify the path of the document.
By ID: Specify the ID of the document.
Include content: If you wish to get the new document content, select this check
box and use the Browse button to select the directory where the file containing the
document content is to be located.
Include ACL: If you wish to see the ACL (Access Control List) for the document,
select this check box.
Creating a Folder
To create a folder, select the Create Folder button from the main form, enter information
in the following fields, and click the Create button.
Select OS: Click the radio button and select an object store.
Name: The name of the folder (setting of the FolderName property).
Parent Folder: The folder in which the new folder will be created (setting of the
Parent property). To specify the root, enter “/”.
Folder Class: The folder class of the new folder.
The sample does not support custom classes that include custom properties.
File in Folder: If you wish to file the new custom object in a folder, select this
check box and specify the folder name (e.g. “/”).
Notices
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in other
countries. Consult your local IBM representative for information on the products and
services currently available in your area. Any reference to an IBM product, program, or
service is not intended to state or imply that only that IBM product, program, or service
may be used. Any functionally equivalent product, program, or service that does not
infringe any IBM intellectual property right may be used instead. However, it is the user's
responsibility to evaluate and verify the operation of any non-IBM product, program, or
service.
IBM may have patents or pending patent applications covering subject matter described
in this document. The furnishing of this document does not grant you any license to these
patents. You can send license inquiries, in writing, to:
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law: INTERNATIONAL
BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS"
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-
INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE. Some states do not allow disclaimer of express or implied warranties in
certain transactions, therefore, this statement may not apply to you.
Any references in this information to non-IBM Web sites are provided for convenience
only and do not in any manner serve as an endorsement of those Web sites. The materials
at those Web sites are not part of the materials for this IBM product and use of those Web
sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes
appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose of
enabling: (i) the exchange of information between independently created programs and
other programs (including this one) and (ii) the mutual use of the information which has
been exchanged, should contact:
IBM Corporation
J46A/G4
555 Bailey Avenue
San Jose, CA 95141-1003
U.S.A.
The licensed program described in this document and all licensed material available for it
are provided by IBM under terms of the IBM Customer Agreement, IBM International
Program License Agreement or any equivalent agreement between us.
Information concerning non-IBM products was obtained from the suppliers of those
products, their published announcements or other publicly available sources. IBM has not
tested those products and cannot confirm the accuracy of performance, compatibility or
any other claims related to non-IBM products. Questions on the capabilities of non-IBM
products should be addressed to the suppliers of those products.
All statements regarding IBM's future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
COPYRIGHT LICENSE:
Trademarks