Dear fellow Debuggers,
Last week I came accross an interesting issue and I thought I would share my findings with you.
In BPM version 8.5.5 the new Client-Side Human Service (CSHS) was introduced.
The Service looked like this:
It is important to understand, that the validation step was a script named "Validation Script" by the user. The validation service has a green icon (V) leading to the script step. If you don't see it, this is just a regular script step (not true validation). See this Knowledge Center link.
From the Knowledge Center:
Please note the green checkmarks or Vs.
However, to configure this validation service, you would have to set the "fire validation property" to "before" for the line to the boundary event. But the CSHS does not support this kind of validation. This is only available for Heritage Coaches in v8.5.5.
In our usecase, when we clicked the button the values of the variables should have been changed when the validation error was triggered, however, the variables still showed the "old" values.
So why was that?
Well, in v8.5.5 for the CSHS, when validation errors occur, ONLY the validation errors info is returned back to Coach for display. Any changed variables are NOT returned to the Coach. This explains why our variables showed the old values, and not the ones we assigned to them in our Client-Side Script.
Note that this behavior will be enhanced in v8.5.6 where both validation errors AND changed variables are to be returned.
With this in mind, we can now understand why our variables remained unchanged.
And if this does not help, take two of these and call me in the morning.