Hello, Bonita noob here. I have a XOR gateway that decides the path a process will take using scripts as follows:
if an amount is less than 250,000 the task is forwarded to a certain level financial officer
if ranging between 250k and 1m, it's sent to a higher level FO,
if greater than 1 million, it's sent to the highest level FO.
This is done by comparing the value from the field invoice_amount in a form, to these values and storing the boolean result in a process variable (sadly, the transient variables are not available to use in the XOR paths :( )