A sample CMIS application is provided as part of TIBCO ActiveMatrix BPM installation. Before you run the CMIS sample application, you need to configure it with details including the location of the BPM server.
You can configure the sample application in either, or both, of the following ways:
- If you want to view the form using the TIBCO Business Studio Preview facilities, you need to specify settings in the JSON files that are generated when you select to preview a form.
- If you want to deploy the sample application, you need to specify the settings in the script task in the CMIS sample process.
In either case, you need to specify values for the following items:
Data
|
Meaning and example value
|
Repository details
|
Details needed to connect to the CMIS repository. There must be one set of these parameters for each repository that is used: for example, in the sample as delivered, these details are duplicated for Alfresco and for SharePoint. For example:
SharePointCMISServer = com_tibco_cmissample_Factory.createCMISServer();
SharePointCMISServer.environmentName = "SharePoint";
SharePointCMISServer.hostname = "uk-spoint";
SharePointCMISServer.port = 80;
SharePointCMISServer.repository = "b3d47494-1cba-4cba-9a4f-754aab8d0a03";
SharePointCMISServer.contextPath = "sites/cmisrepo/_vti_bin/cmis/rest";
SharePointCMISServer.useHTTPS = false;
SharePointCMISServer.vendor = CMISVendor.SHAREPOINT;
|
Query details
|
Details needed for a query to the CMIS system. There must be one set of these parameters for each repository that is used: for example, in the sample as delivered, these details are duplicated for Alfresco and for SharePoint. For example:
SharePointCMISQuery = com_tibco_cmissample_Factory.createCMISQuery();
SharePointCMISQuery.folderName = "Userspace";
|
Document display
|
This parameter records how many records should be displayed at once on the form. For example:
CMISDocDisplay = com_tibco_cmissample_Factory.createCMISDocDisplay();
CMISDocDisplay.maxResults = 20;
|
The following item is only entered in the JSON files
|
BPM server details
|
The details of the BPM server to connect with when using the Preview function. This includes:
|
|
If your TIBCO Business Studio connects with TIBCO ActiveMatrix BPM using HTTPS, you cannot use the Preview functionality to preview the sample form. This is a result of the way that TIBCO Business Studio handles the connection.
|
The following items are only entered in your copy of CMIS.data.json
|
Username
|
The name of the user under which BPM is accessed when using the Preview function. For example:
"username", "$value": "Clint Hill"
|
Password
|
The BPM password for the above username. For example:
"password", "$value": "easyAs2013"
|
The exact way that you set out these details varies between the JSON files for the forms and the script task in the business process. For example, the following line from a JSON file:
{ "$param":"AlfrescoCMISQuery", "$value": {"$type":"com.tibco.cmissample.CMISQuery", folderName": "Userspace","folderPattern":" ","docNamePattern":" ","query":" "}},
corresponds to the following line in the script task:
AlfrescoCMISQuery = com_tibco_cmissample_Factory.createCMISQuery();
AlfrescoCMISQuery.folderName = "Userspace";