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

Cannot Pass Variable to Reusable Sub Process using Web Designer

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      found a workaround for this
      seems like the Assignments field in the Reusable Subprocess need to be assigned like this:
      item->varMap
      instead of
      varMap=item or varMap=#

      {item}

      but the problem is assigning value like this is not always possible if we use the assignment dialog (by clicking on the dropdown field's down arrow) because the first column "From Object" validate the input, if we write something that is not available in the dropdown list of the "From Object" then it will be cleared.

      The only way to do this now is to write directly to the Assignments field in the property panel

      Show
      found a workaround for this seems like the Assignments field in the Reusable Subprocess need to be assigned like this: item->varMap instead of varMap=item or varMap=# {item} but the problem is assigning value like this is not always possible if we use the assignment dialog (by clicking on the dropdown field's down arrow) because the first column "From Object" validate the input, if we write something that is not available in the dropdown list of the "From Object" then it will be cleared. The only way to do this now is to write directly to the Assignments field in the property panel
    • Hide

      Start the parent process, "test multiple instance", at least fill in the "papvData1" process variable's value and then see the server.log

      Show
      Start the parent process, "test multiple instance", at least fill in the "papvData1" process variable's value and then see the server.log

    Description

      I have two Processes:
      1. test.SimpleApproval
      2. test.testMultipleInstance

      in test.testMultipleInstance, I have a Multiple Instance Node, inside the Multiple Instance Node, I have a Reusable Sub Process that invoke test.SimpleApproval

      The Problem is I can't pass in input variable to the Reusable sub process.

      the error is

      Could not find variable scope for variable _AC2D2281-2882-4B44-BCED-62D5DBF6C2C4_varMapInput

      where varMap is the name for input variable in Reusable Sub Process..

      what could have gone wrong?

      Then I try to simplify my process to just start - reusable Sub Process - end

      and i got the same error in the log

      Could not find variable scope for variable _E55BD645-C28C-4394-98D6-906EF811F97F_pvData1Input

      What may be the cause?

      Is it an issue with the Web Designer?

      I attach the process definition and error log

      Note:
      1. I Use JBPM 5.4 Final fron JBPM5.4 Final Full Installer
      2. I Use the Web Designer that comes with JBPM5.4 Final Full Installer to create the process definition

      Attachments

        1. opened in eclipse designer.png
          opened in eclipse designer.png
          181 kB
        2. opened in web designer.png
          opened in web designer.png
          54 kB
        3. process var.png
          process var.png
          54 kB
        4. server.log
          3 kB
        5. server.log
          0.4 kB
        6. test.SimpleApproval.v2.bpmn2
          18 kB
        7. test.testMultipleInstance.v5.bpmn2
          8 kB
        8. test.testMultipleInstance.v6.bpmn2
          23 kB
        9. use hash tag.png
          use hash tag.png
          67 kB

        Activity

          People

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            thomas.setiabudi Thomas Setiabudi (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: