01: /*
02: * Wilos Is a cLever process Orchestration Software - http://www.wilos-project.org
03: * Copyright (C) 2006-2007 Paul Sabatier University, IUP ISI (Toulouse, France) <massie@irit.fr>
04: *
05: * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
06: * General Public License as published by the Free Software Foundation; either version 2 of the License,
07: * or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU General Public License for more details.
12: *
13: * You should have received a copy of the GNU General Public License along with this program; if not,
14: * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15: */
16:
17: package wilos.application.console;
18:
19: import java.io.File;
20:
21: import org.springframework.context.ApplicationContext;
22: import org.springframework.context.support.ClassPathXmlApplicationContext;
23:
24: import wilos.business.services.spem2.process.ProcessService;
25:
26: public class ProcessImportTest {
27: public static void main(String[] args) {
28: // Getback the application context from the spring configuration file
29: ApplicationContext ctx = new ClassPathXmlApplicationContext(
30: "applicationContext.xml");
31:
32: ProcessService am = (ProcessService) ctx
33: .getBean("ProcessService");
34: am.importProcessFromEpfComposer(new File(
35: "applitest/wilos/application/console/scrum.xml"));
36: //Process scrum = am.importProcessFromEpfComposer(new File(
37: // "applitest/wilos/application/console/scrum.xml"));
38: // am.saveProcess(scrum);
39:
40: am.importProcessFromEpfComposer(new File(
41: "applitest/wilos/application/console/openUP.xml"));
42: //Process openup = am.importProcessFromEpfComposer(new File(
43: // "applitest/wilos/application/console/openUP.xml"));
44: // Process openup = am.spelpParsingXML(new
45: // File("applitest/wilos/application/console/openup.zip"));
46: // am.saveProcess(openup);
47: }
48: }
|