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


Chapter 4 Rules and Functions : Rule Functions

Rule Functions
A rule function is a function written in the TIBCO BusinessEvents rule language. All rule functions created for a project are available project-wide.
Rule functions can take arguments and can return a value. The return type can be set to void, indicating that the rule function does not return anything.
Like other types of functions, you can use rule functions in rule conditions and rule actions.
You can use project settings to use rule functions as preprocessors (see Event Preprocessors and as startup and shutdown actions.
Virtual Rule Functions and Decision Tables
Decision tables are available with TIBCO BusinessEvents Decision Manager add-on software.
A virtual rule function (VRF) has arguments but no body or return type. The implementation of a virtual rule function is a decision table. Business users can create decision tables in the TIBCO BusinessEvents Decision Manager stand-alone business user interface. Decision tables can also be created in the TIBCO BusinessEvents user interface.
Users start by selecting a VRF. They drag and drop entities from an argument explorer to form rows in a decision table. Each row forms a business rule, for example the condition area might specify that age is less than 18, and the action area might specify that credit is refused. More technical users can use the TIBCO BusinessEvents rule language to create more complex rules.
One VRF can have multiple implementations. You can set a priority that determines the order of execution for multiple implementations of a VRF. Functions are also available for choosing an implementation to execute (and other actions specific to decision tables). If there is just one implementation, you can call the virtual rule function in the same way you call any other rule function.

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