flowable / flowable/flowable-engine

Incorrect variable setting

Open
#3,249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.