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

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.6.0, 7.6.0-alpha3
    • None
    • engine
    • None

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: