This topic applies only to the IBM Business Process Manager Advanced configuration.

更新组合和补充性查询表

使用 manageQueryTable.py 管理脚本在 Business Process Choreographer 中更新组合和补充性查询表。运行应用程序时可对查询表进行更新,更新后将提供这些表,而无需重新启动集群。

开始之前

必须满足以下条件:
  • 在已连接的方式下运行脚本,即,不要使用 wsadmin -conntype none 选项。
  • 必须至少有一个集群成员正在运行。
  • 请包含 wsadmin -user-password 选项,以指定具有操作员、管理员或部署员权限的用户标识。
  • 如果您没有使用缺省概要文件,请使用 wsadmin -profileName profile 选项来指定概要文件。

关于此任务

请完成以下步骤,以在 Business Process Choreographer 中更新组合和补充性查询表。

过程

  1. 更改为管理脚本所在的 Business Process Choreographer 子目录。
    • For Linux operating systemFor UNIX operating systeminstall_root/ProcessChoreographer/admin
    • For Windows operating systeminstall_root\ProcessChoreographer\admin
  2. 使用查询表定义 XML 文件或包含定义的 JAR 文件来更新查询表。如果已部署属性文件,那么将覆盖这些文件。

    For Linux operating systemFor UNIX operating system输入以下命令:

    install_root/bin/wsadmin.sh -f manageQueryTable.py
           -cluster clusterName
             -update definition qtdFile | jarFile

    For Windows operating system输入以下命令:

    install_root\bin\wsadmin -f manageQueryTable.py
           -cluster clusterName
             -update definition qtdFile | jarFile
    其中:
    -cluster clusterName
    配置有 Business Process Choreographer 的集群的名称。 在多集群设置中,必须指定应用程序集群,因为需要在集群上配置 Business Process Choreographer。
    -update definition qtdFile | jarFile
    要更新的查询表定义 XML 文件或包含定义的 JAR 文件的文件名(包含标准路径)。 使用此选项来更新现有查询表。 For Windows operating system 在 Windows 上,必须使用“/”或 “\\\\”作为路径分隔符。 例如,要指定文件 c:\temp\myQueryTable.qtd,必须将其指定为 c:/temp/myQueryTable.qtdc:\\\\temp\\\\myQueryTable.qtd

    如果提供了 JAR 文件,那么文件中可以包含多个 QTD 文件和每个 QTD 的属性文件,属性文件中包含显示名称和说明。 使用查询表构建器将查询表定义作为 JAR 文件导出。

示例

For Linux operating systemFor UNIX operating system输入以下命令:

wsadmin.sh -f manageQueryTable.py -cluster myCluster 
           -update definition sample_v2.qtd

For Windows operating system输入以下命令:

wsadmin -f manageQueryTable.py -cluster myCluster 
        -update definition sample_v2.qtd