Skip to main content
February 26, 2025
Question

Calling interface rules on my interface

  • February 26, 2025
  • 8 replies
  • 0 views

Hi there.

Related to the best practices, wich is the best way to call to an interface rules on my interface? Calling the interface rule on a rule input, Using keyword syntax or Always use consistent ordering of rule parameters?

Thanks in advance.

    8 replies

    mikes0011
    Brainy
    February 26, 2025

    Definitely go with keyword syntax when calling any interface from anywhere else.  The only exception is when an interface has zero parameters (and you can be pretty sure it never will).  The other approach breaks, instantly, as soon as the the number of parameters changes.

    Separately, I'm not sure what you mean by "calling the interface rule on a rule input" - can you clarify?

    February 26, 2025

    I mean setting a rule input in an interface pointing to another interface but I thing it's not possible, right?

    mikes0011
    Brainy
    February 26, 2025
    setting a rule input in an interface pointing to another interface

    Generally speaking, this isn't really a thing.  What are you hoping to accomplish?

    karumurua531442
    February 26, 2025

    hi [mention:8cdd6119fd07485ea8670348a7dd2045:e9ed411860ed4f2ba0265705b8793d05] To call your interface, use the format rule!your_Interface(). If you need to pass any parameters to that interface, use the following format: rule!your_Interface(parameter1: ri!input1, parameter2: ri!input2).

    February 26, 2025

    Thanks Abhishek!