Accessing external DBMS data using the rules language is similar to accessing TIBCO Object Service Broker data. The following sections outline the specifics encountered while using rules, and also point out normal TIBCO Object Service Broker behavior that you must consider when building applications.
Use the following sections in conjunction with TIBCO Object Service Broker Programming in Rules, which describes TIBCO Object Service Broker rules language statements and coding.
A FORALL statement is a looping construct that processes a set of occurrences. The body of the loop consists of the statements to be executed for each occurrence satisfying the selection criteria. FORALL statements can be nested provided that they refer to different TIBCO Object Service Broker table parameter instances.
Occurrences are returned to TIBCO Object Service Broker in the order in which the Gateway passes them. If you require a different order, you must include an ORDERED clause in your FORALL statement or mark the relevant fields via the Table Definer.
For the TIBCO Object Service Broker occurrence being replaced, all parameters and primary keys, with the AND logical operator between them, are used to make up the criterion describing the rows to replace in the external DBMS.
At insert time, all parameters and fields of the SLK definition except for those marked with VRT=V, W, M, 1, 2, or 4 are part of the column list of the INSERT statements submitted to the external DBMS.
If you issue a TIBCO Object Service Broker EXECUTE statement within a parent transaction, a child transaction stream is created. The number of streams allowed in a TIBCO Object Service Broker transaction depends on the TRANMAXNUM Execution Environment parameter. Each transaction stream accessing SLK data requires its own gateway.
TIBCO Object Service Broker Parameters for your operating environment for information about the TRANMAXNUM Execution Environment parameter.