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

com.netgrif.application.engine.workflow.domain.eventoutcomes.EventOutcome 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.workflow.domain.eventoutcomes;

import com.netgrif.application.engine.petrinet.domain.I18nString;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public abstract class EventOutcome {

//    todo doplnenie referencie na event po implementácii event loggingu

    private I18nString message;

    private List outcomes = new ArrayList<>();

    protected EventOutcome() {
    }

    protected EventOutcome(I18nString message) {
        this();
        this.message = message;
    }

    protected EventOutcome(I18nString message, List outcomes) {
        this(message);
        this.outcomes = outcomes;
    }

    public void addOutcome(EventOutcome eventOutcome) {
        this.outcomes.add(eventOutcome);
    }

    public void addOutcomes(List outcomes){
        this.outcomes.addAll(outcomes);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy