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


Chapter 3 Tools : $RULE_EXISTS

$RULE_EXISTS
Checks whether a rule with the given name would be a candidate for execution. The rule can be a rule in the current search path, a TIBCO Object Service Broker routine, or an external routine with an available and executable load module. (F)
Invocation
result = $RULE_EXISTS(rulename)
 
Exceptions
None.
Example
The following example uses $RULE_EXISTS to check whether a rule or routine exists and put out an appropriate message.

 
EXISTS(NAME);
- LOCAL T;
---------------------------------------------------------------------------------
- $RULE_EXISTS(NAME) = 'Y'; | Y N
------------------------------------------------------------+-------------------
- T = ''; | 1
- T = 'not '; | 1
- T = 'Rule or routine "' || NAME || '" is currently '|| T | 2 2
- || 'available for execution.'; |
- CALL ENDMSG(T); | 3 3
---------------------------------------------------------------------------------

 

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