user variable set by the groovy rule that runs on form load doesn't reflect till form refresh twice
We are using operation.application.setUserVariableValue() method in EPM Cloud Groovy rules Java API, to update one of the user variable 'Prior Scenario' which is used in web form definition.
This groovy rule is attached to a webform where this user variable is defined and it runs before load. On load if rule updates this user variable value to a new value and in webform this new value will reflect only after form was reloaded twice.
This is what happening:
1. While loading form for the first time, groovy rule run and updates user variable with new value(let's say earlier it is S1 and we are updating it to S2) and on the form we have defined this user variable to displayed in one of the column which shows as S1 for the first time
1