Skip to main content
January 24, 2022
Solved

Dynamic type rule input

  • January 24, 2022
  • 3 replies
  • 0 views

Is it possible to set dynamically the type of the rule input?

(The general type is supposed to be CDT)

Best answer by harshitb6843

No. We cannot do that. Rather what you can do is to use the "Any" or "Map" type. Any will accept any type of data. A map will accept key, value pair data. 

3 replies

harshitb6843
January 24, 2022

No. We cannot do that. Rather what you can do is to use the "Any" or "Map" type. Any will accept any type of data. A map will accept key, value pair data. 

barmAuthor
January 24, 2022

I have changed to "Any", and it works perfectly.

Thank you very much

mikes0011
Brainy
January 24, 2022

Hi Barm - I'm Glad Harshit's suggestion worked for you - for his sake I'd ask that you click "vote up" and/or "verify answer" on his comment (it seems like you may have accidentally voted up your own comment instead, which isn't against any rule, but doesn't help Harshit with his personal feedback ranking).

The Expression Guru