Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2396

Custom Process variables not persisted on every waiting node (human task).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.4.0.GA
    • jBPM Core
    • RHPAM 7.4.0 with persistent DB.

    • Hide

      1) Create two application users with required roles -: "rhAdmin" & "rhpamAdmin"
      2) Build and deploy the attached project to kie-server.
      3) Start the process, with code=="ABC".
      4) 1st DRL should get executed modifying the userName to "rhAdmin" and the process should be waiting on Human Task 1 assigned to the user "rhAdmin".
      5) A new row should be inserted to "User" table with value code=="ABC" and userName == rhAdmin
      6) Log in with user "rhAdmin" and start & complete the human task.
      7) Now the second DRL (second.drl) would be executed modifying the userName to "rhpamAdmin" and the process should be waiting on Human Task 2 assigned to the user "rhpamAdmin".
      8) But this time "User" table is neither updated nor a new row is inserted with changed value.
      9) If you log in with user "rhpamAdmin" and start assigned human task 2, then we can notice that task form is still showing old userName "rhAdmin" although the task got assigned correctly to new user "rhpamAdmin".

      Show
      1) Create two application users with required roles -: "rhAdmin" & "rhpamAdmin" 2) Build and deploy the attached project to kie-server. 3) Start the process, with code=="ABC". 4) 1st DRL should get executed modifying the userName to "rhAdmin" and the process should be waiting on Human Task 1 assigned to the user "rhAdmin". 5) A new row should be inserted to "User" table with value code=="ABC" and userName == rhAdmin 6) Log in with user "rhAdmin" and start & complete the human task. 7) Now the second DRL (second.drl) would be executed modifying the userName to "rhpamAdmin" and the process should be waiting on Human Task 2 assigned to the user "rhpamAdmin". 8) But this time "User" table is neither updated nor a new row is inserted with changed value. 9) If you log in with user "rhpamAdmin" and start assigned human task 2, then we can notice that task form is still showing old userName "rhAdmin" although the task got assigned correctly to new user "rhpamAdmin".
    • 2019 Week 38-40 (from Sep 16)

      For the below process flow.

      Start node -> DRL task 1 --> human task 1> DRL task 2> human task 2-> end node

      In this scenario, if DRL task 1 modifies the value of process variable, then it's persisted in the customer table for the data object (for eg -: Table User) but if the DRL task 2 updates the process variable value then it's not persisted/ Updated in the custom table.

      Also, the task form for human task 2 is still showing old values for process variables, even though these values are modified by DRL task 2.

      I have attached the reproducer to the jira.

        1. testpr.bpmn.png
          16 kB
          Enrique González Martínez

              elguardian@gmail.com Enrique González Martínez (Inactive)
              rhn-support-sudnair Sudhish Nair
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: