All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.kogito.examples.OrdersModel Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy