flowable / flowable/flowable-engine
Incorrect variable setting
- Vorherrschende Sprache
- Java
- Sterne
- 9.5k
- Forks
- 2.9k
- Ø Merge
- 7 Std. 8 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
**Describe the bug**
Hello,
I found an error with saving some variable values in Script Tasks. We use Groovy as the language for the Script Task. When setting the value of a variable through the execution.setVariable(), some values are replaced with null. These values are 0, " (empty string), false.
**Code**
execution.setVariable('test0', 0);
execution.setVariable('testFalse', false);
execution.setVariable('testEmptyString', '');
**Expected behavior**
test0 == 0
testFalse == false
testEmptyString == ''
**Real behavior**
test0 == null
testFalse == null
testEmptyString == null
**Additional context**
Flowable 6.7.2, PostgreSQL 13.0, Spring Boot.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by reproducing a Groovy Script Task using execution.setVariable() with 0, false, and an empty string on the reported Flowable 6.7.2 setup. Trace the execution.setVariable() entry point through variable persistence and add or run a regression test covering these values; done means each value is retrieved unchanged rather than as null.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- groovy, java, postgresql, spring-boot
- Bereich
- backend, databases
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100