How to get and work with user variable in transitions raw expression?


#1

:slight_smile:
Hi all,
For example in getUserVariables, I assigned value to state.$r
And I tried to use like below in transitions raw expression but it doesn’t redirect to node I wanted. I don’t know what I am doing wrong here. Please help!!. I attached the screenshots here.

state.$r==“MALE”

EDITED : This issue has been solved. :slight_smile:

Solution:
Finally It was about the sequence of the function in onReceive. We need to add getUserVariable at the bottom, just before passing over to the transitions tab as shown below:

Hope this helps someone else. :slight_smile: