Workflow Bug – not possible to use two or more variables from same struct

  • Toby
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the online course Advanced (320)
      1 year ago #38655

      Hello simplifier users and team,

      I’ve tried to use a struct in the new workflow component on the preview system. Sadly there seems to be an issue when using struct inside a user tasks. When selecting two variables from the same struct for the automatically generated UI it creates an error. An example would be to have a struct for “procurement request” which contains a article name (string) and a price (string). I can select both variables in the workflow designer but when deploying it creates an error:

       

      Message: Internal Error: Workflow graph contains validation errors: User Task with ID c8f4d4a5-4e3c-434f-8aa3-460589ed88de has a variable mapping (Beschaffungsantrag without path) that overlaps with another variable mapping (Beschaffungsantrag without path)

       

      Its working fine, if I just select the struct as a whole, with all variables inside.

      But there are certain use cases where only displaying certain variables of a struct would be needed. For example when I would want to show the article to the user but hide the actual price of the article later in the process.

      Am I doing something wrong or is there currently a way to workaround this issue?

      Many thanks,

      Toby

       

      P.S. since there is currently no speperate space for the workflow component in the forum, I’ve decided to post ist here under process designer. Feel free to tell me to if there is a better place for this topic.

      Attachments:
      You must be logged in to view attached files.
      Toby
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (310)
          Has successfully completed the online course Advanced (320)
        1 year ago #38665
        Up
        0
        Down
        ::

        Update: The whole seems not to be working as I was expecting. Even when using just a single variable from a struct or using the struct as a whole ist not working later in the UI. It doesn’t render the data field from the struct in the Workflow UI.

        This is the output when trying to use a string variable from a struct called “Beschaffungsantrag” a string variable declared locally in the WF. The latter one seems to be working fine, while the first variable isn’t displayed.

        Is using structs in the workflow engine currently even a intended feature?

         

        Attachments:
        You must be logged in to view attached files.
        Toby
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
            Has successfully completed the online course Advanced (310)
            Has successfully completed the online course Advanced (320)
          1 year ago #38667
          Up
          0
          Down
          ::

          Update 2: seems to be working as long as you don’t use nested structs. It renders the variable if it’s directly under the struct used in the WF and not nested into a second struct which is part of a parent struct.

          But only when you select the struct as a whole and not the variables individually.

          Attachments:
          You must be logged in to view attached files.
          Jennifer Häfner
              Has successfully completed the online course Intermediate (200)
              Has successfully completed the online course Advanced (300)
              Has successfully completed the online course Basics (100)
              Has successfully completed the online course Advanced (310)
              Has successfully completed the online course Advanced (320)
              Has successfully completed the Intermediate Certification
              Has successfully completed the Advanced Certification
            1 year ago #38743
            Up
            0
            Down
            ::

            Hi Toby,

            The issues with using structs in workflows will be resolved with the next update of the preview instance. The expected time of the update will be next week. I’ll let you know when the update is available on preview, then you can test your workflow again.

          Viewing 4 posts - 1 through 4 (of 4 total)

          You must be logged in to reply to this topic.