package betsy.bpmn;
import betsy.bpmn.engines.AbstractBPMNEngine;
import betsy.bpmn.model.BPMNProcess;
import betsy.bpmn.model.BPMNTestSuite;
import betsy.bpmn.validation.ProcessValidator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class BPMNBetsy {
public void execute() {
new ProcessValidator().validate();
Collections.sort(processes);
BPMNTestSuite testSuite = BPMNTestSuite.createTests(engines, processes);
composite.setTestSuite(testSuite);
composite.execute();
}
public List<AbstractBPMNEngine> getEngines() {
return engines;
}
public void setEngines(List<AbstractBPMNEngine> engines) {
this.engines = engines;
}
public List<BPMNProcess> getProcesses() {
return processes;
}
public void setProcesses(List<BPMNProcess> processes) {
this.processes = processes;
}
public BPMNComposite getComposite() {
return composite;
}
public void setComposite(BPMNComposite composite) {
this.composite = composite;
}
private List<AbstractBPMNEngine> engines = new ArrayList<>();
private List<BPMNProcess> processes = new ArrayList<>();
private BPMNComposite composite = new BPMNComposite();
}