flowable / flowable/flowable-engine

Incorrect variable setting

Aperta
#3,249 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.5k
Fork
2.9k
Merge medio
7h 8m
PR unite (30g)
2

Descrizione

**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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
groovy, java, postgresql, spring-boot
Ambito
backend, databases
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.