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

com.netgrif.application.engine.importer.service.FunctionFactory Maven / Gradle / Ivy

package com.netgrif.application.engine.importer.service;

import com.netgrif.application.engine.petrinet.domain.Function;
import com.netgrif.application.engine.petrinet.domain.FunctionScope;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public final class FunctionFactory {

    public Function getFunction(com.netgrif.application.engine.importer.model.Function function) {
        Function function1 = new Function();

        function1.setDefinition(function.getValue());
        function1.setName(function.getName());
        function1.setScope(FunctionScope.valueOf(function.getScope().name()));

        return function1;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy