Calling a Rule from an Extended Rule Library in a Map

Sterling B2B Integrator allows you to call a rule in any extended rule in your map. The syntax you use to call a rule from a library is:


call library_name.rule_name parameter1, parameter2, parameter3

In this syntax, library_name is the name of the extended rule library. For example, if the library is FEDWIRE_01.erl, the library_name is FEDWIRE. And the rule_name is the name of the rule that you defined in the Library Rule dialog box. There is no limit on the number of parameters you can use.

Note: You can have multiple rule libraries with the same name and different version numbers, but you can only use one rule library of the same name in a map (the last version of that rule library that was checked in to the system).

The syntax you use to call a rule with a return value set is:


integer i;

i = call library_name.rule_name parameter1

In this syntax, i is the return value set.