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

com.netgrif.application.engine.history.domain.baseevent.EventLog 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.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