Interface IFastJsonUpdateTransition

All Known Subinterfaces:
IBuiltinWorkflowUpdate, IUpdateTransition
All Known Implementing Classes:
EFcChangeFormRecordActivenessHandler, EFcCompressAsZipUpdates, EFcCreateTextFilePropsUpdate, EFcDecodeBase64PropsUpdate, EFcEmailUpdates, EFcExportToPersistencePropsUpdate, EFcExportToXmlPropsUpdate, EFcFillPdfPropsUpdate, EFcFillWordPropsUpdate, EFcHttpRequestPropsUpdate, EFcProcessLogPdfPropsUpdate, EFcProvideResourcePropsUpdate, EFcSendFormRecordMessagePropsUpdate, ListUpdateTransition

public interface IFastJsonUpdateTransition
Performs an upgrade of a JSONObject from a previous version to a newer version or downgrade of a JSONObject from a newer version to a previous version.
Since:
8.4.0
Author:
XIMA MEDIA GmbH
  • Method Summary

    Modifier and Type
    Method
    Description
    com.alibaba.fastjson.JSONObject
    downgrade(com.alibaba.fastjson.JSONObject json)
    Performs a downgrade from a newer version to a previous version.
    com.alibaba.fastjson.JSONObject
    upgrade(com.alibaba.fastjson.JSONObject json)
    Performs an upgrade from a previous version to a newer version.
  • Method Details

    • downgrade

      com.alibaba.fastjson.JSONObject downgrade(com.alibaba.fastjson.JSONObject json)
      Performs a downgrade from a newer version to a previous version.
      Parameters:
      json - The JSON from the newer version.
      Returns:
      The downgraded JSON. If this returns null, the JSON as passed to this method is used instead - given the assumption that the given JSON was mutated so that it reflects the newer version.
    • upgrade

      com.alibaba.fastjson.JSONObject upgrade(com.alibaba.fastjson.JSONObject json)
      Performs an upgrade from a previous version to a newer version.
      Parameters:
      json - The JSON from the previous version.
      Returns:
      The upgraded JSON. If this returns null, the JSON as passed to this method is used instead - given the assumption that the given JSON was mutated so that it reflects the newer version.