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

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.6.0, 7.6.0-alpha3
    • Affects Version/s: None
    • Component/s: 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

              Assignee:
              Thorben Lindhauer
              Reporter:
              Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: