Examples of BPELProcessRepository


Examples of configuration.bpel.BPELProcessRepository

    public ProcessParser(String[] args) {
        this.args = args;
    }

    public List<BPELProcess> parse() {
        BPELProcessRepository repository = new BPELProcessRepository();
        if (args.length <= 1) {
            return repository.getByName("ALL");
        } else {
            return repository.getByNames(args[1].split(","));
        }
    }
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

    public void printUsage() {
        String firstLine = "betsy bpel [OPTIONS] <ENGINES> <PROCESSES>";
        String header = "\nOptions:\n";
        String footer = "\nGROUPS for <ENGINES> and <PROCESSES> are in CAPITAL LETTERS.\n" +
                "<ENGINES>: " + new EngineRepository().getNames() + "\n\n\n" +
                "<PROCESSES>: " + new BPELProcessRepository().getNames() + "\n\n\n" +
                "Please report issues at https://github.com/uniba-dsg/betsy/issues";
        new HelpFormatter().printHelp(firstLine,
                header,
                getOptions(),
                footer);
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

*/
public class TestsPerGroup {

    public static void main(String[] args) {

        BPELProcessRepository processRepository = new BPELProcessRepository();
        List<String> names = processRepository.getNames();

        List<String> output = new LinkedList<>();


        for(String name : names) {
            int size = processRepository.getByName(name).size();
            if(size < 10) {
                output.add("00" + size + "\t" + name );
            } else if(size < 100) {
                output.add("0" + size + "\t" + name );
            } else {
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

        }

        Files.createDirectories(outputFolder);

        String[] groups = new String[]{"BASIC_ACTIVITIES", "SCOPES", "STRUCTURED_ACTIVITIES"};
        List<BPELProcess> processes = new BPELProcessRepository().getByNames(groups);

        for (String transformation : CoreBPEL.XSL_SHEETS) {

            Path transformationDirectory = outputFolder.resolve(transformation);
            Files.createDirectories(transformationDirectory);
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

public class DetectUnusedBpelFiles {

    @Test
    public void detectUnusedBpelFiles() throws IOException {
        BPELProcessRepository processRepository = new BPELProcessRepository();
        List<BPELProcess> processed = processRepository.getByName("ALL");

        List<Path> bpelFiles = getBetsyProcessesPaths(processed);
        List<Path> bpelFilesInSrcTestDir = getBpelFiles(Paths.get("src/test"));

        bpelFilesInSrcTestDir.removeAll(bpelFiles);
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

import org.junit.Test;

public class ValidatorTest {
    @Test
    public void testValidityOfAllProcesses() {
        new Validator(new BPELProcessRepository().getByName("ALL")).validate();
    }
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

    @Test
    public void testUniquenessOfShortIds() {
        List<String> shortIds = new LinkedList<>();

        BPELProcessRepository processRepository = new BPELProcessRepository();
        List<BPELProcess> processed = processRepository.getByName("ALL");
        for(BPELProcess process : processed){
            shortIds.add(process.getShortId());
        }

        for(String shortId : shortIds) {
View Full Code Here

Examples of configuration.bpel.BPELProcessRepository

public class BetsyTests {
    @Test
    public void simulateATestRun() throws Exception {
        AbstractEngine engine = new MockEngine();
        List<BPELProcess> processes = new BPELProcessRepository().getByName("ALL");
        BPELBetsy betsy = new BPELBetsy();


        betsy.setEngines(Arrays.asList(engine));
        betsy.setProcesses(processes);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.