The Execute operation is used to run stored procedures and stored functions, as well as wrapper stored procedures and stored functions. The external service wizard generates the required stored procedure business object that corresponds to the stored procedure or stored function definition in the database. The adapter uses the Execute operation to process the stored procedure business object.
The following information provides a simple example of a stored procedure, the business object that is constructed from it, and the steps used by the adapter to process the stored procedure business object with an Execute operation.
PROCEDURE testSP(IN int x,INOUT VARCHAR(10) msgSTR, OUT int status,
OUT struct outrec, OUT array retArr)
The procedure returns two result sets.
BOLevel ASI
SPName=testSP
ResultSet=true
MaxNumberOfResultSets=2
ReturnValue = propName
Returned if the stored procedure is a function. function).
Will be property name corresponding to the child business
object if returned value is complex type(array/struct/resultset)
Defined only if it is a Function
Properties
x Type=IP
msgStr Type=IO
status Type=OP
outrec Type OP - Child BO for outrec, ASI ChildBOType = struct
retarr Type OP - n cardinality child BO for retArr, ASI ChildBOType = array
childBOName1 - Child BO for 1st result set, ASI ChildBOType = resultset
childBOName2 - Child BO for 2nd result set, ASI ChildBOType = resultset