com.netgrif.application.engine.importer.service.FunctionFactory 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.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