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

com.netgrif.application.engine.petrinet.web.responsebodies.PetriNetReferenceWithMessage Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.petrinet.web.responsebodies;

import com.netgrif.application.engine.petrinet.domain.PetriNet;
import com.netgrif.application.engine.workflow.web.responsebodies.ResponseMessage;
import lombok.Data;

import java.util.Locale;

@Data
public class PetriNetReferenceWithMessage extends ResponseMessage {

    private PetriNetReference net;

    public PetriNetReferenceWithMessage(String msg) {
        super();
        setError(msg);
    }

    public PetriNetReferenceWithMessage(String msg, PetriNet net, Locale locale) {
        super();
        setSuccess(msg);
        setNet(new PetriNetReference(net, locale));
    }

    public PetriNetReference getNet() {
        return net;
    }

    public void setNet(PetriNetReference net) {
        this.net = net;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy