Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-5006

For a decision table, I can define a default serialization format for historic object values

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • dmn-engine
    • None

      The chain of interaction when evaluating a DMN table in BPMN is as follows:

      1. BPMN engine calls DMN engine to evaluate a decision table; hands in a couple of Object-type variables
      2. DMN engine works with deserialized object value (e.g. to be able to resolve properties in expressions)
      3. DMN engine hands Java objects to the history listeners for historic decision input and output instances. The listeners conver the value to an untyped value.
      4. BPMN engine looks up a serializer for untyped values and writes value to database

      The above interaction may be undesired behavior, because the serialization information is lost in steps 2 and 3. A JSON-serialized process variable can end up XML-serialized in the decision history (since the XML serializer attempts to serialize any object). There are cases in which the XML serializer claims to be able to serialize a value, but actually is not.

      To avoid such issues, it should be possible to define the serialization data format for object values returned by the DMN engine (or persisted by history listeners). This could go as a custom extension into the decision table XML.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: