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.utils;
18:
19: import java.text.SimpleDateFormat;
20:
21: public class Constantes {
22:
23: public static final String DATE_PATTERN = "dd/MM/yyyy hh:mm";
24:
25: public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(
26: DATE_PATTERN);
27:
28: public static class State {
29:
30: public static final String CREATED = "Created";
31:
32: public static final String READY = "Ready";
33:
34: public static final String STARTED = "Started";
35:
36: public static final String SUSPENDED = "Suspended";
37:
38: public static final String FINISHED = "Finished";
39: }
40:
41: public static final String[] WorkOrderTypes = {
42: WorkOrderType.START_TO_START,
43: WorkOrderType.START_TO_FINISH,
44: WorkOrderType.FINISH_TO_START,
45: WorkOrderType.FINISH_TO_FINISH };
46:
47: public static class WorkOrderType {
48:
49: public static final String START_TO_START = "startToStart";
50:
51: public static final String START_TO_FINISH = "startToFinish";
52:
53: public static final String FINISH_TO_START = "finishToStart";
54:
55: public static final String FINISH_TO_FINISH = "finishToFinish";
56: }
57: }
|