com.netgrif.application.engine.history.domain.baseevent.EventLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.history.domain.baseevent;
import com.netgrif.application.engine.petrinet.domain.events.EventPhase;
import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Document(collection = "eventLogs")
public abstract class EventLog {
@Id
@Getter
protected ObjectId id;
@Getter
protected ObjectId triggerId;
@Getter
protected EventPhase eventPhase;
@Getter
@Setter
protected List triggeredEvents;
protected EventLog() {
this.id = new ObjectId();
}
protected EventLog(ObjectId triggerId, EventPhase eventPhase) {
this();
this.triggerId = triggerId;
this.eventPhase = eventPhase;
}
protected EventLog(ObjectId triggerId, EventPhase eventPhase, List triggeredEvents) {
this(triggerId, eventPhase);
this.triggeredEvents = triggeredEvents;
}
public String getStringId() {
return id.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy