Calling interface rules on my interface

Certified Associate Developer

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.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    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?

Reply
  • 0
    Certified Lead Developer

    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?

Children