Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1609

Element of current iteration does not get updated in the Multi-Instance sub process

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 6.0.2
    • jBPM Designer
    • None
    • ER1
    • Hide
      Fixed Issue Summary:

      A process definition error occurred when updating multiple instance subprocesses because the multiple instance outputs needed to be defined; however, Designer did not provide the ability to define output variables for multiple instance subprocesses. Accordingly, whenever the processes were completed, the updated values were lost and reverted back to the original values. This has been fixed by allowing the definition of multiple instance outputs.
      Show
      Fixed Issue Summary: A process definition error occurred when updating multiple instance subprocesses because the multiple instance outputs needed to be defined; however, Designer did not provide the ability to define output variables for multiple instance subprocesses. Accordingly, whenever the processes were completed, the updated values were lost and reverted back to the original values. This has been fixed by allowing the definition of multiple instance outputs.

      Description of problem:

      Let's my Multi-Instance sub process is iterating over List<Person> and I am storing the element of the current iteration in the variable called 'myPerson'.

      In multi-instance sub process, there will be new process created, which will include Human Task with the Data Input which will be mapped by 'myPerson'.

      When you change whatever value of this object it will be updated once the Human Task is completed.

      However, when the the whole multi-instance sub process will be completed (after all sub processes are completed) the updated value is lost and we are back to the 'original' value.

      Version-Release number of selected component (if applicable):
      bpm 6.0.2

      How reproducible:
      always

      Steps to Reproduce:
      1. Clone the git repository, build the project
      2. In CustChildApproval process you need to change "actor" value of the Human Task
      3. Build the project
      4. Start the InvoiceProcessing-CustomerName process
      5. Fill in the following input field 'ccOwners (_Application)' with the comma separated list of values, for example "actor1,actor2,actor3"

      – size of the list will determine number of instance of the the multi-instance sub process

      6. Complete all human tasks, and in each, change the value of ccOwner, for example, from actor1 to actor1-changed

      7. Observe the output

      Actual results:

      Element of the iteration of multi-instance sub process is not updated once the multi-instance sub process joins the main process execution

      Expected results:
      Element of the iteration of multi-instance sub process is updated.

      Additional info:
      This may be related to the https://bugzilla.redhat.com/show_bug.cgi?id=1123855

      As the assignment section of the reusable sub process in the multi-instance subprocess was created using 'hacks'.

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-agiertli Anton Giertli
              Tomáš Livora Tomáš Livora (Inactive)
              Tomáš Livora Tomáš Livora (Inactive)
              Alessandro Lazarotti, Cheng Zhang (Inactive), Maciej Swiderski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: