AnsweredAssumed Answered

Integer operations in policy assertion?

Question asked by czhou_abc on Nov 2, 2015
Latest reply on Mar 23, 2018 by Bill_Peterson

I'm writing a new policy assertion that requires integer manipulation. None of my attempts have yielded any success. Here's what I'm trying to do:


Screen Shot 2015-11-02 at 09.53.05.png


If either assertion 2 or 3 are set to Integer, then I get an error along the lines of "Unable to parse integer string" (I'm assuming because in assertion 2, the gateway.time.millis exceeds Integer.MAX_VALUE)


I can have integer values that are smaller, but still can't make integer math work

Screen Shot 2015-11-02 at 09.55.54.png

Assertion 3 still gives me the Unable to parse integer string.


So is there a way to get integer math to work in a policy through stock assertions? If so, how?