The SQL Server Adapter uses a number operations to query the SQL Server database. Within a BPEL business process, the SQL Server Adapter uses BPEL Activities to perform basic outbound database operations, including:
Insert
Update
Delete
SelectOne
SelectMultiple
SelectAll
In addition to these outbound operations, the SQL Server Adapter also employs the inbound Activity ReceiveOne within a Prepared Statement OTD.
The Sun SeeBeyond Enterprise Designer– Business Rules Designer includes Input and Output columns to map and transform data between Activities displayed on the Business Process Canvas.
Figure 1–4 displays the business rules between the FileClient.write and otdSQLServer.Db_employeeDelete Activities. In this example, the whereClause appears on the Input side.
The following table lists the expected Input and Output of each database operation Activity.
Table 1–4 SQL Server Operations
eInsight Operations |
Activity Input |
Activity Output |
---|---|---|
SelectAll |
where() clause (optional) |
Returns all rows that fit the condition of the where() clause. |
SelectMultiple |
number of rows where() clause (optional) |
Returns the number of rows specified that fit the condition of the where() clause, and the number of rows to be returned. For example: If the number of rows that meet the condition are 5 and the number of available rows are 10, then only 5 rows will be returned. Alternately, if the number of rows that meet the condition are 20, but if the number of available rows are 10, then only 10 rows are returned. |
SelectOne |
where() clause (optional) |
Returns the first row that fits the condition of the where() clause. |
Insert |
definition of new item to be inserted |
Returns status. |
Update |
where() clause |
Returns status. |
Delete |
where() clause |
Returns status. |