Hi @amulpuru , I think you are referring the rule Libraries . Basically in IIQ , Common methods can be defined in one rule and that particular rule can be referenced in multiple places .
Think as of Java class . You write the methods in Java class and then you import that class and use the methods .
In IIQ to use Rule Library we need to use the ReferenceRules tag . These objects will be available in same object type “Rule” .
Open Debug → select object type “Rule” and search the same with ID or Name.
To reference a rule library from another rule, include a <ReferencedRules> element in the rule XML, naming the rule library in the <Reference>. The methods within the library can then be invoked from within the rule’s Source element.
<Rule…>
<ReferencedRules>
<Reference class='Rule' name='My Library'/>
</ReferencedRules>
<Source>
doSomething(); //invokes the doSomething method in My Library
</Source>
</Rule>
<Rule name="B"...>
<ReferencedRules>
<!-- This will be IGNORED! -->
<Reference class=... name="C"/>
</ReferencedRules>
<Source>
void doSomething() {
// When B is loaded from A, C is not loaded, so this will throw
// an Exception because `reallyDoSomething` is not found.
reallyDoSomething();
}
</Source>
<Rule name="C"...>
<Source>
void reallyDoSomething() {
System.out.println("You'll never see this");
}
</Source>