All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.takari.bpm.model.IntermediateCatchEvent Maven / Gradle / Ivy
package io.takari.bpm.model;
public class IntermediateCatchEvent extends AbstractElement {
public static IntermediateCatchEvent message(String id, String messageRef) {
return new IntermediateCatchEvent(id, messageRef, null, null, null);
}
public static IntermediateCatchEvent messageExpr(String id, String messageRefExpression) {
return new IntermediateCatchEvent(id, null, messageRefExpression, null, null);
}
public static IntermediateCatchEvent timeDate(String id, String timeDate) {
return new IntermediateCatchEvent(id, null, null, timeDate, null);
}
public static IntermediateCatchEvent timeDuration(String id, String timeDuration) {
return new IntermediateCatchEvent(id, null, null, null, timeDuration);
}
private static final long serialVersionUID = 1L;
private final String messageRef;
private final String messageRefExpression;
private final String timeDate;
private final String timeDuration;
public IntermediateCatchEvent(String id) {
this(id, null, null, null);
}
public IntermediateCatchEvent(String id, String messageRef) {
this(id, messageRef, null, null);
}
public IntermediateCatchEvent(String id, String messageRef, String timeDate, String timeDuration) {
this(id, messageRef, null, timeDate, timeDuration);
}
public IntermediateCatchEvent(String id, String messageRef, String messageRefExpression, String timeDate, String timeDuration) {
super(id);
this.messageRef = messageRef;
this.messageRefExpression = messageRefExpression;
this.timeDate = timeDate;
this.timeDuration = timeDuration;
}
public String getMessageRef() {
return messageRef;
}
public String getMessageRefExpression() {
return messageRefExpression;
}
public String getTimeDate() {
return timeDate;
}
public String getTimeDuration() {
return timeDuration;
}
@Override
public String toString() {
return "IntermediateCatchEvent (" + getId() + ") {" +
"messageRef='" + messageRef + '\'' +
", messageRefExpression='" + messageRefExpression + '\'' +
", timeDate='" + timeDate + '\'' +
", timeDuration='" + timeDuration + '\'' +
'}';
}
}