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

Custom bean exported by a module can not be passed using ServiceContext between different states in a workflow

    Details

      Description

      When we export a serialized bean by a module and we create a new workflow that use this bean in more than one states, we realize that we are losing some ServiceContext information and we can not access to this bean.

      Steps to reproduce in master/70x:

      1. Start a master/70x platform.
      2. Deploy 'chem.bean.7010-1.0.0.jar', this module export a bean (source chem-bean-7010.zip is attached too).
      3. Create new workflow using 'custom-single-approver-bean-definition.xml' by "Control Panel" > Configuration > "Workflow"
      4. Create new "Dinamic Data List" in "Site Menu" > Content > "Dynamic Data Lists" using workflow created in step 3 and with any 'Data Definition' (e.g. Contacts).
      5. After created this DDL, create a new registry of this DDL.
      6. Go to "User Menu" > "My Account" > Notifications, open Dynamic Data Lists Notification and do next actions:
        • "Assign to Me" + "Done" in comment.
        • "Approve" + "Done" in comment.

      Expected behavior
      Traces should be shown with information about 'chemBean' used (Those traces are 'println' in the 'approve' action inside the 'approved' state).
      Current behavior
      Log does not show workflow script prints on action 'Approve' because workflow procces can not find 'chemBean' classloader.

      Looking deeply, the problem is on account of the jabsorb library that does not know the classloader of the custom bean when unmarshall the JSON object.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 35 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP45
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 M2
                7.1.X
                Master