io.takari.bpm.testkit.TestProcessDefinitionProvider Maven / Gradle / Ivy
package io.takari.bpm.testkit;
import io.takari.bpm.ProcessDefinitionProvider;
import io.takari.bpm.api.ExecutionException;
import io.takari.bpm.model.ProcessDefinition;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class TestProcessDefinitionProvider implements ProcessDefinitionProvider {
private final Map m = new ConcurrentHashMap<>();
public void add(ProcessDefinition d) {
m.put(d.getId(), d);
}
@Override
public ProcessDefinition getById(String id) throws ExecutionException {
return m.get(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy