-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
7.7.0.GA
-
Fedora 30
Business Central with KIE Server, internal H2 database
-
CR1
-
-
In the beginning I create:
- A data object Person with one field called name of type String and I also override the toString() method so I can easily inspect the variable log
- A Start-End process definition with a process variable of type Person
Then I generate all forms automatically. When I try to run the process instance, everything works as expected.
After that, I want to add another field called age of type int. So I add it into the Person data object. Then I save it and go back to the process definition where I regenerate all forms. The first issue is that until I delete the Person form, it won't be regenerated. But maybe that is expected behaviour.
After the form is regenerated, I redeploy the project and try to run the new process instance. Process start form correctly displays also the age input field, so I fill the name and age and I start a process instance. Then I inspect the variable logs of the process instance and I find that the value of the age field is null.
Originally I found this when using the data object inside of a human task where I didn't have the newly added field populated. It appeared just blank.
There are 2 possible workarounds right now:
- Restart Business Central.
- Raise the version from 1.0.0-SNAPSHOT to another version like 1.0.1-SNAPSHOT and redeploy.
I believe it is connected with incorrect handling of the snapshot versions as it works when the version is raised or when Business Central is restarted. I remember that approximately a year ago when we introduced the development and production modes we had similar issue with the same workarounds. So it may be connected to that.