Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-10066

"kcontext.getProcessInstance()).setDescription" is not updating the description immediately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.12.0.Final
    • KieServer
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • ---
    • ---
    • 2022 Week 17-19 (from Apr 25)

      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.

       

              vmudadla@redhat.com Vani Haripriya Mudadla
              vmudadla@redhat.com Vani Haripriya Mudadla
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: