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

1
0
-1

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



8195767441274829446


szamlafejInput <-----------this is the contract input complex objects name in studio

Peti <------------this is the only variable of the object (String)




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?

Comments

Submitted by kurucsai.zoltan... on Mon, 08/17/2020 - 12:21

Okay the error is messed up..

8195767441274829446 szamlafejInput <com.example.SZf> Peti </com.example.SZf>

Submitted by kurucsai.zoltan... on Mon, 08/17/2020 - 12:49

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

No answers yet.
Notifications