Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 10 Accessing External Routines : Calling the Routine

Calling the Routine
Put the Routine in a Load Library
Before you can call the routine from within TIBCO Object Service Broker you must compile, link-edit, and place the routine in a load library:
If the routine is to run in a CICS environment and the language specified in the Language field of the ROUTINES table is set to CICS, the routine must be placed in the CICS DFHRPL library. Refer to Add an Entry in the ROUTINES Table for information about the ROUTINES table.
Call the Routine From TIBCO Object Service Broker
When the executable code is in an external routine load library, and you made the appropriate entries in the ROUTINES and ARGUMENTS tables, you can call the routine from a TIBCO Object Service Broker rule.
Syntax for Calling the Routine
The external routine can be invoked from within a rule either as a function or explicitly with the CALL statement, as in the following examples:
How are Exceptions Handled?
No exceptions are trapped by TIBCO Object Service Broker during external routine invocation and execution, for example if the external routine is not found or it fails. However, if a failure occurs, a message is returned to the message log.
See Also
TIBCO Object Service Broker Programming in Rules about the rules language and writing rules.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved