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

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

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

public class BoundaryEvent extends AbstractElement {
	
	private static final long serialVersionUID = 1L;

    private final String attachedToRef;
    private final String errorRef;
    private final String timeDuration;

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

    public BoundaryEvent(String id, String attachedToRef, String errorRef, String timeDuration) {
        super(id);
        this.attachedToRef = attachedToRef;
        this.errorRef = errorRef;
        this.timeDuration = timeDuration;
    }

    public String getAttachedToRef() {
        return attachedToRef;
    }

    public String getErrorRef() {
        return errorRef;
    }

    public String getTimeDuration() {
        return timeDuration;
    }

    @Override
    public String toString() {
        return "BoundaryEvent (" + getId() + ") {" +
                "attachedToRef='" + attachedToRef + '\'' +
                ", errorRef='" + errorRef + '\'' +
                ", timeDuration='" + timeDuration + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy