flowable / flowable/flowable-engine
"Update variable" feature in flowable-admin doesn't work if value is null
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 9.5k
- Forks
- 2.9k
- Ø Merge
- 7 Std. 8 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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:

- 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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduzieren Sie das Problem in flowable-admin über Process Engine > Instances > Variables, indem Sie eine String-Variable mit einem leeren Wert erstellen und anschließend Update variable verwenden. Verfolgen Sie das Update-Formular und vergleichen Sie sein Verhalten mit dem Add variable-Formular und der Update variable REST API; als erledigt gilt die Aufgabe, wenn einer Variable mit dem Wert null ein Wert zugewiesen werden kann und der angezeigte Typ korrekt aktualisiert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100