Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13357

#getWorkflowContext should not trigger a Session#save, but it does

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.3.0
    • repository
    • None

    Description

      Problem description

      If a workflow instance w1 has made changes on node n1 and another workflow instance w2 wants to make changes as well, the save action of the session s2 of w2 can fail. ( javax.jcr.InvalidItemStateException: property /content/documents/hap/xmas-tree/xmas-tree[3]/hippostd:transferable: the property cannot be saved because it has been modified externally. )

      In order to synchronize the s2, the DocumentWorkflow#getWorkflowContent#getInternalWorfklowSession can be refreshed. However calling #getWorkflowContext triggers a Session#save ( that will throw and InvalidItemStateException ) .

      Solution

      #hints does not trigger a Session#save. Add #getWorkflowContext to the list.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrop Michiel Rop
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: