Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-8482

Form Values Serialization with the DDM IO API: DDMFormValueSerializer Extension point

    Details

    • Type: New Article
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: 7.3.x
    • Component/s: Forms
    • Labels:
      None
    • Type of Documentation:
      Developer

      Description

      (No message of "coming soon!")

      This ticket is for an article not yet on the LRL site: https://learn.liferay.com/dxp/7.x/en/process-automation/forms.html

      This ticket was created to document (measure) the the docs' team progress towards completing DXP docs.

      Details

      Related Liferay Learn content: DDM Storage Adapter
      No existing Help Center Content

      Summary of need for this content (copied directly from the liferay learn link above):

      The default format for serializing and deserializing form records is JSON. The example project demonstrates the use of this default format. Storing DDMContent in a different format requires implementing additional interfaces.

      Serialization: When you’re saving DDMcontent, you must transform the DDMFormValues object it into the target storage format.

      Deserialization: When reading DDMContent (in the get method of the storage adapter), it must be transformed from the storage format back into a DDMFormValues object that the DDMStorageAdapterGetResponse’s Builder constructor requires.

      There’s a DDMFormValuesSerializer interface to implement for this serialization logic and a DDMFormValuesDeserializer interface to implement for the deserialization logic. Liferay’s default implementations, which support transforming the DDMFormValues object to JSON and vice versa, can be found here and here, respectively.

      For a complete example, see Writing a Form Storage Adapter.

        Attachments

          Activity

            People

            Assignee:
            russell.bohl Russell Bohl
            Reporter:
            andrew.wilkinson Andrew Wilkinson
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support

                  Packages

                  Version Package
                  7.3.x