Skip to main content

How to use conditional operator in output parameter expression of a business rule.

 

I use the conditional operator like “task.user_def8!=6883?KABEL_C:FIBERKABEL_C”. But getting the error

“The expression 'task.user_def8!=6883?KABEL_C:FIBERKABEL_C' contains unexpected syntax. The operation '!=' cannot be performed between operands 6883 and 6883.”

 

 

Any idea why it is failing?

Hi @TDCMANIRUL 

You should wrap your user_def8 value within double quotes as the user_def8 is a string property in the metadata. 

Expression should be:

task.user_def8 != “6883” ? “KABLE_C” : “FIBERKABLE_C”

 


Reply