Skip to main content
sarathkumr268295
November 10, 2021
Question

Passing CDT as parameter between interfaces

  • November 10, 2021
  • 9 replies
  • 0 views

I have two interfaces. I want to pass CDT rule input of interface 1 to interface 2 as a parameter. Consider CDT rule input as ri!details in interface 1 and ri!bookDetails in interface 2. I tried this code in expresssion mode of interface 1.
"rule!interface2(bookDetails:ri!detiails).

But its showing as error. Can anyone help me?

9 replies

gayathris111098
November 10, 2021

Hi

What is the error you are getting? 

I see some type in rule input(*ri!detiails)

rule!interface2(bookDetails:ri!details)

November 10, 2021

Create a local variable in the Interface1 and get the CDT value
use this local variable as the input parameter of Interface 2 (make sure the data types is same in both Interfaces for that inputs)

by this way you can reuse this local variable as input in multiple interfaces

sanjuktab2257
November 4, 2024

We cannot use local variable of interface 1 in interface 2..right? 

sarathkumr268295
November 4, 2024

You can pass create a rule input in interface 2 and pass the local variable to interface 2 using this rule input

stefanhelzle0001
Brainy
November 4, 2024
But its showing as error.

Which error?

And what exactly do you mean with

I want to pass CDT rule input of interface 1 to interface 2 as a parameter.

Is interface 2 called inside interface 1, or are these two subsequent interfaces in a process flow?

sarathkumr268295
November 4, 2024

Hi Stefan

This is a very old thread from around 3 yrs back. Please ignore my queries since I dont even remember the issue. Seems Sanju is facing similar issue