
配置流程应用程序数据源和集合引用设置
您可能需要为特定数据库基础结构配置运行 SQL 语句的流程应用程序。 这些 SQL 语句可以来自信息服务活动,也可以是流程部署或实例启动期间运行的语句。
关于本任务
当您部署应用程序时,可以指定以下类型的数据源:
- 要在流程部署期间运行 SQL 语句的数据源
- 要在启动流程实例期间运行 SQL 语句的数据源
- 要运行 SQL 片段活动的数据源
运行 SQL 片段活动所需的数据源是在 tDataSource 类型的 BPEL 变量中定义的。 SQL 片段活动所需的数据库模式和表名在 tSetReference 类型的 BPEL 变量中定义。 您可以配置这两个变量的初始值。
可以使用 wsadmin 工具来指定数据源。
过程
示例:使用 wsadmin 工具更新数据源和集合引用
在更新数据源任务中,您可以更改流程部署期间或流程启动时使用的初始变量值和语句的数据源值。 在更新集合引用任务中,可以配置与数据库模式和表名相关的设置。
Task [24]: Updating data sources
//Change data source values for initial variable values at process start
Process name: Test
// Name of the process template
Process start or installation time: Process start
// Indicates whether the specified value is evaluated
//at process startup or process installation
Statement or variable: Variable
// Indicates that a data source variable is to be changed
Data source name: MyDataSource
// Name of the variable
JNDI name:[jdbc/sample]:jdbc/newName
// Sets the JNDI name to jdbc/newName
Task [25]: Updating set references
// Change set reference values that are used as initial values for BPEL variables
Process name: Test
// Name of the process template
Variable: SetRef
// The BPEL variable name
JNDI name:[jdbc/sample]:jdbc/newName
// Sets the JNDI name of the data source of the set reference to jdbc/newName
Schema name: [IISAMPLE]
// The name of the database schema
Schema prefix: []:
// The schema name prefix.
// This setting applies only if the schema name is generated.
Table name: [SETREFTAB]: NEWTABLE
// Sets the name of the database table to NEWTABLE
Table prefix: []:
// The table name prefix.
// This setting applies only if the prefix name is generated.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38