com.netgrif.application.engine.history.domain.caseevents.CaseEventLog 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.caseevents;
import com.netgrif.application.engine.history.domain.petrinetevents.PetriNetEventLog;
import com.netgrif.application.engine.petrinet.domain.events.EventPhase;
import com.netgrif.application.engine.workflow.domain.Case;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.bson.types.ObjectId;
import java.util.Map;
@Data
@EqualsAndHashCode(callSuper = true)
public abstract class CaseEventLog extends PetriNetEventLog {
protected String caseId;
protected String caseTitle;
private Map activePlaces;
private Map consumedTokens;
protected CaseEventLog() {
super();
}
protected CaseEventLog(Case useCase, EventPhase eventPhase) {
this(useCase.get_id(), useCase, eventPhase);
}
protected CaseEventLog(ObjectId triggerId, Case useCase, EventPhase eventPhase) {
super(triggerId, eventPhase, useCase.getPetriNetObjectId());
this.caseId = useCase.getStringId();
this.caseTitle = useCase.getTitle();
this.activePlaces = useCase.getActivePlaces();
this.consumedTokens = useCase.getConsumedTokens();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy