Examples of BPMNProcessRepository


Examples of configuration.bpmn.BPMNProcessRepository

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

    public List<BPMNProcess> parse() {
        BPMNProcessRepository repository = new BPMNProcessRepository();
        if (args.length <= 1) {
            return repository.getByName("ALL");
        } else {
            return repository.getByNames(args[1].split(","));
        }

    }
View Full Code Here

Examples of configuration.bpmn.BPMNProcessRepository

    public void printUsage() {
        String firstLine = "betsy bpmn [OPTIONS] <ENGINES> <PROCESSES>";
        String header = "\nOptions:\n";
        String footer = "\nGROUPS for <ENGINES> and <PROCESSES> are in CAPITAL LETTERS.\n" +
                "<ENGINES>: " + new BPMNEngineRepository().getNames() + "\n\n\n" +
                "<PROCESSES>: " + new BPMNProcessRepository().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.bpmn.BPMNProcessRepository

    private XPath xpath;

    public static final String[] ALLOWED_LOG_MESSAGES = getAllowedLogMessages();

    public void validate() {
        processes = new BPMNProcessRepository().getByName("ALL");

        setUpXmlObjects();
        assertNamingConventionsCorrect();
        assertLogMessagesCorrect();
    }
View Full Code Here

Examples of configuration.bpmn.BPMNProcessRepository

public class BPMNProcessAssertions {

    @Test
    public void test() {
        BPMNProcess process = new BPMNProcessRepository().getByName("SequenceFlow").get(0);
        assertEquals("basics", process.getGroup());
    }
View Full Code Here

Examples of configuration.bpmn.BPMNProcessRepository

public class BPMNBetsyTests {
    @Test
    public void simulateATestRun() throws Exception {
        AbstractBPMNEngine engine = new MockEngine();

        List<BPMNProcess> processes = new BPMNProcessRepository().getByName("ALL");

        BPMNBetsy betsy = new BPMNBetsy();

        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.