Drive rule not able to find method defined in the referenced rule

Which IIQ version are you inquiring about?

Unsure

Share all details related to your problem, including any error messages you may have received.

Driver Rule references library rules A, B. Library rule A references library rule B and library rule E. Library rule B references library rule E.

When the driver rule is executed in the actual workflow, it encounters the error that the command was not found: Method-In-E. Method-In-E is defined in library rule E.

Drive rule does not use Method-In-E directly, but the referenced rules(rule A & rule B) in drive rule uses Method-In-E.

Should I reference rule E in the driver rule as well? (Driver rule does not use Method-In-E directly)

What might be the problem and how can it be resolved? Thank you.

Your references are bit confusing but what I understood is you are calling a method in a Rule which is referenced in workflow and there are sub-references present in that rule and you are getting an error of method not found.
You can go ahead and add the Rule E as reference and check your functionalities are working without any impact.

Sometimes there might be methods that are having dependencies, so it shouldn’t be a issue having the references.

Hi @neelpatel4,

Even if your Rule Library is referencing methods from other Rules, you can add those rules to Workflow Rule Libraries. This should fix your issue.

With your example the RuleLibrary in the workflow should be something like below

  <RuleLibraries>
    <Reference class="sailpoint.object.Rule" name="Rule A" />
    <Reference class="sailpoint.object.Rule" name="Rule B" />
    <Reference class="sailpoint.object.Rule" name="Rule E" />
  </RuleLibraries>

Basically, Rule Library inclusion is not recursive.

A Rule will include all of its referenced Rule Libraries, but those will not in turn include all of their referenced Rule Libraries. The top-level Rule needs to reference all relevant rules or they won’t be in the namespace.

(I agree that this is annoying, but I suspect Sailpoint probably had issues with infinite recursion.)

1 Like

Thank you Satish. let me try.

Thank you Jarin James.

Absolutely right, thanks Devin.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.