01: package org.enhydra.jawe.components.graph;
02:
03: import java.util.Arrays;
04: import java.util.List;
05:
06: /**
07: * Used to hold various static variables to be easily acessed
08: * from anywhere.
09: */
10: public class GraphEAConstants {
11:
12: // ****** WORKFLOW PROCESSS
13: public static final String EA_JAWE_GRAPH_WORKFLOW_PARTICIPANT_ORIENTATION = "JaWE_GRAPH_WORKFLOW_PARTICIPANT_ORIENTATION";
14: public static final String EA_JAWE_GRAPH_BLOCK_PARTICIPANT_ORIENTATION = "JaWE_GRAPH_BLOCK_PARTICIPANT_ORIENTATION";
15: public static final String EA_JAWE_GRAPH_PARTICIPANT_ORIENTATION_VALUE_HORIZONTAL = "HORIZONTAL";
16: public static final String EA_JAWE_GRAPH_PARTICIPANT_ORIENTATION_VALUE_VERTICAL = "VERTICAL";
17:
18: public static final String EA_JAWE_GRAPH_WORKFLOW_PARTICIPANT_ORDER = "JaWE_GRAPH_WORKFLOW_PARTICIPANT_ORDER";
19: public static final String EA_JAWE_GRAPH_BLOCK_PARTICIPANT_ORDER = "JaWE_GRAPH_BLOCK_PARTICIPANT_ORDER";
20:
21: public static final String EA_JAWE_GRAPH_START_OF_WORKFLOW = "JaWE_GRAPH_START_OF_WORKFLOW";
22: public static final String EA_JAWE_GRAPH_END_OF_WORKFLOW = "JaWE_GRAPH_END_OF_WORKFLOW";
23: public static final String EA_JAWE_GRAPH_START_OF_BLOCK = "JaWE_GRAPH_START_OF_BLOCK";
24: public static final String EA_JAWE_GRAPH_END_OF_BLOCK = "JaWE_GRAPH_END_OF_BLOCK";
25:
26: public static final String EA_JAWE_GRAPH_WORKFLOW_PARTICIPANT_ORDER_OLD = "ParticipantVisualOrder";
27: public static final String EA_JAWE_GRAPH_BLOCK_PARTICIPANT_ORDER_OLD = "ParticipantVisualOrder";
28:
29: public static final String EA_JAWE_GRAPH_START_OF_WORKFLOW_OLD = "StartOfWorkflow";
30: public static final String EA_JAWE_GRAPH_END_OF_WORKFLOW_OLD = "EndOfWorkflow";
31: public static final String EA_JAWE_GRAPH_START_OF_BLOCK_OLD = "StartOfBlock";
32: public static final String EA_JAWE_GRAPH_END_OF_BLOCK_OLD = "EndOfBlock";
33:
34: // ****** PARTICIPANT
35: public static final String PARTICIPANT_TYPE_FREE_TEXT_EXPRESSION = "PARTICIPANT_FREE_TEXT_EXPRESSION";
36: public static final String PARTICIPANT_TYPE_COMMON_EXPRESSION = "PARTICIPANT_COMMON_EXPRESSION";
37: public static final String COMMON_EXPRESSION_PARTICIPANT_PREFIX = "### CEP -> ";
38: public static final String COMMON_EXPRESSION_PARTICIPANT_SUFIX = " <- CEP ###";
39:
40: // ****** ACTIVITY
41: public static final String EA_JAWE_GRAPH_PARTICIPANT_ID = "JaWE_GRAPH_PARTICIPANT_ID";
42: public static final String EA_JAWE_GRAPH_OFFSET = "JaWE_GRAPH_OFFSET";
43:
44: public static final String EA_JAWE_GRAPH_PARTICIPANT_ID_OLD = "ParticipantID";
45: public static final String EA_JAWE_GRAPH_OFFSET_OLD_X = "XOffset";
46: public static final String EA_JAWE_GRAPH_OFFSET_OLD_Y = "YOffset";
47:
48: // ****** TRANSITION
49: public static final String EA_JAWE_GRAPH_BREAK_POINTS = "JaWE_GRAPH_BREAK_POINTS";
50: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE = "JaWE_GRAPH_TRANSITION_STYLE";
51: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_BEZIER = "NO_ROUTING_BEZIER";
52: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_ORTHOGONAL = "NO_ROUTING_ORTHOGONAL";
53: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_SPLINE = "NO_ROUTING_SPLINE";
54: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_BEZIER = "SIMPLE_ROUTING_BEZIER";
55: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_ORTHOGONAL = "SIMPLE_ROUTING_ORTHOGONAL";
56: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_SPLINE = "SIMPLE_ROUTING_SPLINE";
57:
58: public static final String EA_JAWE_GRAPH_TRANSITION_STYLE_OLD = "RoutingType";
59: public static final String EA_JAWE_GRAPH_BREAK_POINTS_OLD = "BreakPoint";
60:
61: // ****** EXTENDED ATTRIBUTE PARTS
62: public static final String EA_PART_ACTIVITY_SET_ID = "ACTIVITY_SET_ID";
63: public static final String EA_PART_CONNECTING_ACTIVITY_ID = "CONNECTING_ACTIVITY_ID";
64: public static final String EA_PART_GRAPH_OFFSET_X = "X_OFFSET";
65: public static final String EA_PART_GRAPH_OFFSET_Y = "Y_OFFSET";
66: public static final String EA_PART_TYPE = "TYPE";
67:
68: // ******** BUBBLES
69: public static final String START_TYPE = "START";
70: public static final String START_TYPE_DEFAULT = "START_DEFAULT";
71:
72: public static final String END_TYPE = "END";
73: public static final String END_TYPE_DEFAULT = "END_DEFAULT";
74:
75: // ******** SELECT
76: public static final String SELECT_TYPE = "SELECT";
77: public static final String SELECT_TYPE_DEFAULT = "SELECT_DEFAULT";
78:
79: // ******* PORT
80: public static final String PORT_TYPE_DEFAULT = "DEFAULT";
81:
82: public static List transitionStyles = Arrays
83: .asList(new Object[] {
84: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_BEZIER,
85: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_ORTHOGONAL,
86: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_NO_ROUTING_SPLINE,
87: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_BEZIER,
88: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_ORTHOGONAL,
89: GraphEAConstants.EA_JAWE_GRAPH_TRANSITION_STYLE_VALUE_SIMPLE_ROUTING_SPLINE });
90:
91: }
|