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

io.automatiko.engine.addons.persistence.AbstractProcessInstancesFactory Maven / Gradle / Ivy

There is a newer version: 0.39.0
Show newest version

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