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

io.takari.bpm.model.EndEvent Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.takari.bpm.model;

public class EndEvent extends AbstractElement {

    private static final long serialVersionUID = 1L;

    private final String errorRef;
    private final String causeExpression;

    public EndEvent(String id) {
        this(id, null);
    }

    public EndEvent(String id, String errorRef) {
        this(id, errorRef, null);
    }

    public EndEvent(String id, String errorRef, String causeExpression) {
        super(id);
        this.errorRef = errorRef;
        this.causeExpression = causeExpression;
    }

    public String getErrorRef() {
        return errorRef;
    }

    public String getCauseExpression() {
        return causeExpression;
    }

    @Override
    public String toString() {
        return "EndEvent (" + getId() + ") {" +
                "errorRef='" + errorRef + '\'' +
                ", causeExpression='" + causeExpression + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy