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

In the REST API, starting a process instance should always return its serialized variables

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.0, 7.6.0-alpha3
    • Component/s: engine
    • Labels:
      None

      Description

      The Java API for starting a process instance with variables in return (ProcessInstantiationBuilder#executeWithVariablesInReturn may return deserialized or serialized variables, depending on what was put in.

      The REST API should always return the serialized value. In its current implementation, it returns the deserialized value (and serializes it via Jackson) if the variable is deserialized, and else it uses the serialized value (https://github.com/camunda/camunda-bpm-platform/blob/7.6.0-alpha1/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/VariableValueDto.java#L170-L175). For the sake of consistency, the REST API should always return the serialized variable value, regardless whether the value returned by the Java API is deserialized.

        Issue Links

          Activity

          Hide
          thorben.lindhauer Thorben Lindhauer added a comment -

          This is a direct follow-up of the new feature CAM-6072. We should fix this in 7.6.0.

          Show
          thorben.lindhauer Thorben Lindhauer added a comment - This is a direct follow-up of the new feature CAM-6072 . We should fix this in 7.6.0.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: