修改配置参数

IBM BPM 文档库具有一些可使用 wsadmin 脚本编制来读取和修改的配置参数。

关于此任务

这些配置参数为:

cmisURL 参数用于定制 BPM 服务器使用的 CMIS URL。缺省情况下,未设置此参数的值,并在 /fncmis 作为上下文根的情况下使用本地 HTTPS 连接。由于性能原因,您可以将 cmisUrl 替换为未加密的本地 URL,如以下示例中所示:

http://local_Http_Proxy_Server_In_Secure_Network_Zone/fncmis

但是,技术用户凭证将通过此连接在 HTTP 基本认证头和 WS-Security 用户名令牌中进行发送。 因此,从安全性角度讲,不建议使用未加密的 URL。

numberOfParallelDocumentMigrationWorker 参数用于指定可并行迁移至 IBM BPM 文档库的最大文档数。缺省情况下,该参数的值设置为 10。有关将文档迁移至 IBM BPM 文档库的信息可在“将文档附件迁移至 IBM BPM 文档库”主题中找到。

在以下示例中,显示了如何使用 wsadmin 脚本编制工具读取和修改 IBM BPM 文档库的配置属性:

// List all IBM BPM document stores. If there is only one deployment environment, then there is only one document store.
docStores = AdminUtilities.convertToList(AdminConfig.list("BPMDocumentStore"))
// Read the first IBM BPM document store
docStore = docStores[0]
// Show one specific attribute of the IBM BPM document store
 AdminConfig.showAttribute(docStore, "cmisUrl") 
// Update one specific attribute of the IBM BPM document store
 AdminConfig.modify(docStore, [ ["cmisUrl", "new value"] ])
 AdminConfig.modify(docStore, [ ["numberOfParallelDocumentMigrationWorker" ,5] ]) 
// Save the configuration
 AdminConfig.save()