Package betsy.bpel.cli

Source Code of betsy.bpel.cli.ProcessParser

package betsy.bpel.cli;

import betsy.bpel.model.BPELProcess;
import configuration.bpel.BPELProcessRepository;

import java.util.List;

public class ProcessParser {

    private final String[] args;

    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(","));
        }
    }

}
TOP

Related Classes of betsy.bpel.cli.ProcessParser

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.