org.kie.kogito.examples.OrdersModel 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;
import java.util.Map;
import java.util.HashMap;
@org.kie.internal.kogito.codegen.Generated(value = "kogit-codegen", reference = "demo.orders", name = "Orders")
public class OrdersModel 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("approver", this.approver);
params.put("order", this.order);
return params;
}
@Override
public void fromMap(Map params) {
fromMap(null, params);
}
public void fromMap(String id, Map params) {
this.id = id;
this.approver = (java.lang.String) params.get("approver");
this.order = (org.kie.kogito.examples.demo.Order) params.get("order");
}
private java.lang.String approver;
public java.lang.String getApprover() {
return approver;
}
public void setApprover(java.lang.String approver) {
this.approver = approver;
}
private org.kie.kogito.examples.demo.Order order;
public org.kie.kogito.examples.demo.Order getOrder() {
return order;
}
public void setOrder(org.kie.kogito.examples.demo.Order order) {
this.order = order;
}
}