io.automatiko.engine.addons.persistence.AbstractProcessInstancesFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automatiko-filesystem-persistence-addon Show documentation
Show all versions of automatiko-filesystem-persistence-addon Show documentation
File System based persistence for Automatiko Engine
package io.automatiko.engine.addons.persistence;
import java.nio.file.Paths;
import io.automatiko.engine.addons.persistence.filesystem.FileSystemProcessInstances;
import io.automatiko.engine.api.workflow.Process;
import io.automatiko.engine.api.workflow.ProcessInstancesFactory;
/**
* This class must always have exact FQCN as
* io.automatiko.engine.addons.persistence.AbstractProcessInstancesFactory
*
*/
public abstract class AbstractProcessInstancesFactory implements ProcessInstancesFactory {
public FileSystemProcessInstances createProcessInstances(Process> process) {
return new FileSystemProcessInstances(process, Paths.get(path()), codec());
}
public abstract String path();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy