Call interface in another interface with group and user type

How do we call an interface with 6 user type and 2 group type in another interface.

  Discussion posts and replies are publicly visible

Parents
  • Hi Radha,

    You can call an interface inside another interface using 'rule!' followed by the interface name. e.g. rule!anotherInterface() and then within its brackets, you can map the rule inputs of interface with the literal values or another set of rule inputs or local variables present on the parent interface. 

    Adding a code snippet below for your ease. 

    rule!anotherInterface(
        group1: ri!group,
        group2: local!group,
        group3: cons!ADMIN_GROUP,
        user1: loggedInUser(),
        user2: touser("harshit.bumb")
    )

    I hope that helps.

    Thanks,
    Harshit

Reply
  • Hi Radha,

    You can call an interface inside another interface using 'rule!' followed by the interface name. e.g. rule!anotherInterface() and then within its brackets, you can map the rule inputs of interface with the literal values or another set of rule inputs or local variables present on the parent interface. 

    Adding a code snippet below for your ease. 

    rule!anotherInterface(
        group1: ri!group,
        group2: local!group,
        group3: cons!ADMIN_GROUP,
        user1: loggedInUser(),
        user2: touser("harshit.bumb")
    )

    I hope that helps.

    Thanks,
    Harshit

Children