Skip to main content
Question

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

  • January 4, 2024
  • 1 reply
  • 57 views

Forum|alt.badge.img+8

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?

1 reply

SAMLK
Hero (Partner)
Forum|alt.badge.img+13
  • Hero (Partner)
  • 225 replies
  • January 5, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings