Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
7.12.0.Final
-
None
-
False
-
None
-
False
-
NEW
-
NEW
-
---
-
---
-
2022 Week 17-19 (from Apr 25)
Description
While trying to update the process instance description via a script task inside process definition, the updated value is not getting reflected immediately.
((org.jbpm.process.instance.impl.ProcessInstanceImpl)kcontext.getProcessInstance()).setDescription("updated::" + kcontext.getVariable("pid"));
Although the updated value is printed if we fetch "kcontext.getProcessInstance().getDescription()", but this updated value is not refleted in business-central UI or fetched with REST API.
GET /kie-server/services/rest/server/queries/processes/instances/1
Update value is only reflected after the process is completed or aborted.
Sharing the reproducer for reference.