calling interface inside another interface with parameters

Hi All,

i have 2 interface, interface1 and interface2

am calling interface2 in interface1 which is working great(using rul!interface2() in interface1),

but am using a CDT inside interface2 as a Rule Input,

now if i call interface2 in interface1 it shows and error,

can anyone please let me know how to call interface2 (which is having a rule input as CDT) inside interface1.

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • Hi Vineeth

    If your interface2() rule takes as a rule input a CDT then you need to provide a reference to a variable in interface1() that holds a value of that type.

    So:

    • in interface1() declare a local! variable and set it to the value you want to pass to interface2()
    • in interface1() in the call to interface2() pass that variable e.g. rule!interface2(cdt: local!variable)

    Stewart

Reply
  • Hi Vineeth

    If your interface2() rule takes as a rule input a CDT then you need to provide a reference to a variable in interface1() that holds a value of that type.

    So:

    • in interface1() declare a local! variable and set it to the value you want to pass to interface2()
    • in interface1() in the call to interface2() pass that variable e.g. rule!interface2(cdt: local!variable)

    Stewart

Children