Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-100019

JournalFolder import: a non-existant workflow definition causes following workflow definitions to not be imported

    Details

      Description

      JournalFolder import: a non-existant workflow definition causes following workflow definitions to not be imported

      Attached LAR file Web_Content-201908201022.portlet.lar has three <StagedGroupedWorkflowDefinitionLink> entries:

      <StagedGroupedWorkflowDefinitionLink>
      <staged-model group-id="37501" uuid="37527" version="2" type-pk="37507" referrer-class-name="com.liferay.journal.model.JournalFolder" referrer-class-pk="37522" display-name="967f1509-4325-7a00-d635-1c45dceec807"/>
      <staged-model group-id="37501" uuid="37528" version="1" type-pk="37513" referrer-class-name="com.liferay.journal.model.JournalFolder" referrer-class-pk="37522" display-name="Single Approver"/>
      <staged-model group-id="37501" uuid="37529" version="1" type-pk="37518" referrer-class-name="com.liferay.journal.model.JournalFolder" referrer-class-pk="37522" display-name="Single Approver"/>
      </StagedGroupedWorkflowDefinitionLink>

      In case first "967f1509-4325-7a00-d635-1c45dceec807" entry fails, second and third entries with "Single Approver" will be ignored

      Steps to reproduce

      1. Create Site1
      2. Go to Content => Webcontent section
      3. Import attached LAR file: Web_Content-201908201022.portlet.lar
      4. Check configured workflows in Webcontent folder
        • Expected behaviour: "Single approver" configurations are correct, "WFTest1" is missing as it was deleted
        • Wrong behaviour: Both "Single approver" and "WFTest1" aren't configured correctly

      Steps to reproduce (full, with LAR creation)

      1. Go to "Control Panel" => "Workflow" => "Process Builder"
      2. Create one copy of "Single approver" workflow and call it "WFTest1"
      3. Create Site1
      4. Go to Content => Webcontent section
      5. Create two Webcontent structures: Str1, Str2 and Str3
      6. Create a Webcontent folder
      7. Edit created Webcontent folder and setup Str1, Str2 and Str3 structures with "WFTest1", "Single approver", "Single approver" workflows
      8. Export to LAR file
      9. Delete Site1
      10. Go to "Control Panel" => "Workflow" => "Process Builder"
      11. Unpublish and delete "WFTest1"
      12. Create Site2
      13. Go to Content => Webcontent section
      14. Import previous exported LAR
      15. Check configured workflows in Webcontent folder
        • Expected behaviour: "Single approver" configurations are correct, "WFTest1" is missing as it was deleted
        • Wrong behaviour: Both "Single approver" and "WFTest1" aren't configured correctly

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 21 weeks, 4 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master