Answer the question
In order to leave comments, you need to log in
What is the best way to transform an object?
My object is an instance of the Port class that contains the desired portNumber field inside .
public class Port implements Serializable {
@JsonProperty("portNumber")
private String portNumber = null;
...
}
// Возвращается инстанс Port
runtimeService.getVariable(task.getExecutionId(), "port");
(Port) variables.get(Variable.PORT.getName())).getPortNumber()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question