Skip to main content
Inspiring
May 16, 2021
Question

Call interface in another interface with group and user type

  • May 16, 2021
  • 4 replies
  • 0 views

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

    4 replies

    harshitb6843
    Brainy
    May 16, 2021

    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

    Inspiring
    May 16, 2021

    Thanks

    mikes0011
    Brainy
    May 16, 2021

    [mention:ef600ff8f5d2497eb2def2126dc89484:e9ed411860ed4f2ba0265705b8793d05]'s answer is exactly right with regards to calling an interface from another interface.

    However I'm a little confused as to what exactly you mean by:

    an interface with 6 user type and 2 group type

    Could you clarify as to what your needs are with the users/groups (types) in question?

    The Expression Guru
    Inspiring
    May 16, 2021

    Mike I was able to solve