I have added "XOR" Gate to my PM and in that i have added a condition like "if( totime(local(now(), "IST")) = cons!IT_TIME_CONSTANTS_FOR_VERSE, true(), false())
Where The constant holds time of 12:30 PM,but even though that expression is true the Pm is returning false because of which XOR is failing.Can anyone suggest what's wrong hereThanks in advance,SSP
Discussion posts and replies are publicly visible
It is because it is also considering seconds I guess. You might have to cast it in just the Hr and Min using text() function and then compare it.
Like this
text(totime(local(now(), "IST")),"hh:mm") = text(totime("12:58 PM"),"hh:mm")
Hi Harshit,But the values and type is same in the PV's ,then how come comparison is failing?
I have added a screenshot. In that, if you look at the output, you'll realize how these values are converted to integer values for comparision.
My best guess here is that what is being displayed in the Appian process monitor UI (where you're viewing the values of the pv!s) is a user-friendly rendering of the value, not the actual value (as is illustrated in 's post above