org.kie.kogito.examples.demo.PersonsModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbpm-quarkus-example
Show all versions of jbpm-quarkus-example
Order management service
package org.kie.kogito.examples.demo;
import java.util.Map;
import java.util.HashMap;
@org.kie.internal.kogito.codegen.Generated(value = "kogit-codegen", reference = "persons", name = "Persons")
public class PersonsModel implements org.kie.kogito.Model {
private String id;
public void setId(String id) {
this.id = id;
}
public String getId() {
return this.id;
}
@Override
public Map toMap() {
Map params = new HashMap();
params.put("person", this.person);
return params;
}
@Override
public void fromMap(Map params) {
fromMap(null, params);
}
public void fromMap(String id, Map params) {
this.id = id;
this.person = (org.kie.kogito.examples.demo.Person) params.get("person");
}
private org.kie.kogito.examples.demo.Person person;
public org.kie.kogito.examples.demo.Person getPerson() {
return person;
}
public void setPerson(org.kie.kogito.examples.demo.Person person) {
this.person = person;
}
}