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

com.netgrif.application.engine.petrinet.domain.Function 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.petrinet.domain;


import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Function extends PetriNetObject {

    @Getter
    @Setter
    private String definition;

    @Getter
    @Setter
    private String name;

    @Getter
    @Setter
    private FunctionScope scope;

    public Function() {
        this.setObjectId(new ObjectId());
        this.setImportId(this.getObjectId().toString());
    }

    public Function clone() {
        Function clone = new Function();
        clone.setObjectId(this.getObjectId());
        clone.setImportId(this.importId);
        clone.setDefinition(this.definition);
        clone.setName(this.name);
        clone.setScope(this.scope);
        return clone;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy