You are viewing limited content. For full access, please sign in.

Question

Question

Forms incorrectly converting negative number variables passed from Workflow to positive amounts

asked on October 7, 2018

Hi guys,

We're using Forms 10.3.1 Update 2.  I've got a Workflow calculating current and future leave balances and passing the values back to Forms for display to the managers in the leave approval form.  The process works without any problem if the staff member's current leave balance is positive, but we've noticed an issue when the balance is negative.  The steps are:

  1. Staff member submits leave request via form
  2. Forms initiates Workflow to check current leave balance in employee folder metadata field
  3. Workflow calculates future leave balance based on the current leave balance and the amount of leave requested
  4. Workflow runs "Set Business Process Variables" activity to update the leave values in the approval form for the managers

 

The fields in the form are number fields, I didn't have the max or min range fields set but have been testing to see if that makes any difference.  It doesn't.  Here's what we are seeing:

The "Set Business Process Variables" activity in the Workflow is configured to pass the "Leave Available" (i.e. the employee's current leave balance) and "New Balance" (i.e. calculated future leave balance) back to the approval form:

 

The fields in the form are standard Number fields, below is the current leave balance field, I've added the range amounts to test but to no effect:

 

Here are the variables being passed from the workflow to the form, these are the Track Tokens values after running a test through the system with negative values - NZ time zone so 8 Oct, not 10 Aug in case you're wondering if it's a current issue :o)  :

 

And these are the variables in the form as soon as they've been populated from the workflow:

 

I've tested entering negative values in the fields in the form in Preview and it doesn't cause any issues or change the values, so I'm not sure where it is the values are being converted.  Any ideas on this one?

Thanks,

Mike

Replies

replied on October 8, 2018

This bug was found in 10.3.1 update 1 and fixed in a hotfix. Please open a support case to receive the patched file. 

You are not allowed to follow up in this post.