flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

"Update variable" feature in flowable-admin doesn't work if value is null

Open verheyenkoen opened this issue 2 years ago • 0 comments

Describe the bug In the flowable-admin app:

  • Go to "Process Engine" > "Instances"
  • Select an active instance (in the runtime)
  • Go to the "Variables" tab in the bottom
  • Click "Add variable", select type string but leave the value field empty. This will create a variable with type "null" and the value column is empty:
    image
  • Select the variable line
  • Click "Update variable"
  • Enter a value
  • Click the "Update" button.

The value (and type) doesn't change. Probably because of the type set to null even though it was first selected as "string". It is however possible to change the value through the update variable REST API.

Expected behavior The value should update. Maybe in case of a current type/value "null", the type select field should also be displayed in the "Update variable" form first as it is in the "Add variable" form.

Code n/a

Additional context Tested in Flowable v6.7.2 and v6.5.0

verheyenkoen avatar Feb 11 '22 09:02 verheyenkoen