Starting process with contract input using external java gives "Unable to deserialize object <object-stream>" error

Hi, 

 

Im trying to make a java application in spring boot that can start a process, without contract input it works fine. 

However after i try to pass contract input i get this error:

org.bonitasoft.engine.exception.BonitaRuntimeException: Unable to deserialize object <object-stream>
  <object-array>
    <long>8195767441274829446</long>
    <map>
      <entry>
        <string>szamlafejInput</string> <-----------this is the contract input complex objects name in studio
        <com.example.SZf>
          <ugyfelnev>Peti</ugyfelnev> <------------this is the only variable of the object (String)
        </com.example.SZf>
      </entry>
    </map>
  </object-array>
</object-stream>

This is the class im trying to pass within the Map object:

import java.io.Serializable;

public class SZf implements Serializable{
    private String ugyfelnev;

    public String getUgyfelnev() {
        return ugyfelnev;
    }

    public void setUgyfelnev(String ugyfelnev) {
        this.ugyfelnev = ugyfelnev;
    }

    public SZf(String ugyfelnev) {
        super();
        this.ugyfelnev = ugyfelnev;
    }
    
}

 

Im using:  apiClient.getProcessAPI().startProcessWithInputs(id, myMap);

What could be the problem?

Okay the error is messed up…

8195767441274829446 szamlafejInput Peti

Sorry cant show you the structure after the error, cause it is an xml like structure and after saving it it dissapears...