forked from aiska/BpmNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableConfigElement.cs
More file actions
196 lines (177 loc) · 7.91 KB
/
Copy pathTableConfigElement.cs
File metadata and controls
196 lines (177 loc) · 7.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
using System.Configuration;
namespace BPMNET.Configuration
{
public sealed class TableConfigElement : ConfigurationElement
{
private const string INVALID_CHARACTER = "~!@#$%^&*(){}/;'\"|\\";
private const string DEPLOYMENT = "Deployment";
private const string DEFINITION = "Definition";
private const string DEFINITION_ITEM = "DefinitionItem";
private const string PROCESS_INSTANCE = "ProcessInstance";
private const string PROCESS_TASK = "ProcessTask";
private const string BPMN_PROCESS = "BpmnProcess";
private const string PROCESS_VARIABLES = "ProcessVariables";
private const string DEFINITION_VARIABLES = "DefinitionVariable";
private const string COMMENT = "Comment";
private const string SEQUENCE_FLOW = "SequenceFlow";
private const string DATA_OBJECT = "DataObject";
private const string FLOW_NODE = "FlowNode";
private const string APPROVAL = "Approval";
private const string ACTIVITY = "Activity";
private const string PROCESS_FLOW = "ProcessFlow";
private const string DEPLOYMENT_TABLE = "AP_DEPLOYMENT";
private const string DEFINITION_TABLE = "AP_DEFINITION";
private const string DEFINITION_ITEM_TABLE = "AP_DEFINITION_ITEM";
private const string DEFINITION_VARIABLES_TABLE = "AP_DEFINITION_VARIABLE";
private const string DEFAULT_PROCESS_INSTANCE_TABLE = "AP_PROCESS_INSTANCE";
private const string DEFAULT_PROCESS_TASK_TABLE = "AP_PROCESS_TASK";
private const string COMMENT_TABLE = "AP_COMMENT";
private const string DEFINITION_VARIABLE = "AP_DEFINITION_VARIABLE";
private const string PROCESS_TABLE = "AP_PROCESS";
private const string PROCESS_VARIABLES_TABLE = "AP_VARIABLES";
private const string SEQUENCE_FLOW_TABLE = "AP_SEQUENCE_FLOW";
private const string DATA_OBJECT_TABLE = "AP_DATA_OBJECT";
private const string FLOW_NODE_TABLE = "AP_FLOW_NODE";
private const string APPROVAL_TABLE = "AP_APPROVAL";
private const string ACTIVITY_TABLE = "AP_ACTIVITY";
private const string PROCESS_FLOW_TABLE = "AP_PROCESS_FLOW";
public TableConfigElement()
{
}
[ConfigurationProperty(DEPLOYMENT, DefaultValue = DEPLOYMENT_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string Deployment
{
get
{ return (string)this[DEPLOYMENT]; }
//set
//{ this[DEPLOYMENT] = value; }
}
[ConfigurationProperty(DEFINITION, DefaultValue = DEFINITION_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string Definition
{
get
{ return (string)this[DEFINITION]; }
//set
//{ this[DEFINITION] = value; }
}
[ConfigurationProperty(DEFINITION_ITEM, DefaultValue = DEFINITION_ITEM_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string DefinitionItem
{
get
{ return (string)this[DEFINITION_ITEM]; }
//set
//{ this[DEFINITION_ITEM] = value; }
}
[ConfigurationProperty(PROCESS_INSTANCE, DefaultValue = DEFAULT_PROCESS_INSTANCE_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string ProcessInstance
{
get
{ return (string)this[PROCESS_INSTANCE]; }
//set
//{ this[PROCESS_INSTANCE] = value; }
}
[ConfigurationProperty(PROCESS_TASK, DefaultValue = DEFAULT_PROCESS_TASK_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string ProcessTask
{
get
{ return (string)this[PROCESS_TASK]; }
//set
//{ this[PROCESS_TASK] = value; }
}
[ConfigurationProperty(BPMN_PROCESS, DefaultValue = PROCESS_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string BpmnProcess
{
get
{ return (string)this[BPMN_PROCESS]; }
//set
//{ this[BPMN_PROCESS] = value; }
}
[ConfigurationProperty(PROCESS_VARIABLES, DefaultValue = PROCESS_VARIABLES_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string ProcessVariables
{
get
{ return (string)this[PROCESS_VARIABLES]; }
//set
//{ this[PROCESS_VARIABLES] = value; }
}
//[ConfigurationProperty(DEFINITION_VARIABLES, DefaultValue = DEFINITION_VARIABLES_TABLE, IsRequired = false)]
//[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
//public string DefinitionVariable
//{
// get
// { return (string)this[DEFINITION_VARIABLES]; }
// set
// { this[DEFINITION_VARIABLES] = value; }
//}
[ConfigurationProperty(COMMENT, DefaultValue = COMMENT_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string Comment
{
get
{ return (string)this[COMMENT]; }
//set
//{ this[COMMENT] = value; }
}
[ConfigurationProperty(SEQUENCE_FLOW, DefaultValue = SEQUENCE_FLOW_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string SequenceFlow
{
get
{ return (string)this[SEQUENCE_FLOW]; }
//set
//{ this[SEQUENCE_FLOW] = value; }
}
//[ConfigurationProperty(DATA_OBJECT, DefaultValue = DATA_OBJECT_TABLE, IsRequired = false)]
//[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
//public string DataObject
//{
// get
// { return (string)this[DATA_OBJECT]; }
// set
// { this[DATA_OBJECT] = value; }
//}
[ConfigurationProperty(FLOW_NODE, DefaultValue = FLOW_NODE_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string FlowNode
{
get
{ return (string)this[FLOW_NODE]; }
//set
//{ this[FLOW_NODE] = value; }
}
//[ConfigurationProperty(APPROVAL, DefaultValue = APPROVAL_TABLE, IsRequired = false)]
//[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
//public string Approval
//{
// get
// { return (string)this[APPROVAL]; }
// set
// { this[APPROVAL] = value; }
//}
//[ConfigurationProperty(ACTIVITY, DefaultValue = ACTIVITY_TABLE, IsRequired = false)]
//[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
//public string Activity
//{
// get
// { return (string)this[ACTIVITY]; }
// set
// { this[ACTIVITY] = value; }
//}
[ConfigurationProperty(PROCESS_FLOW, DefaultValue = PROCESS_FLOW_TABLE, IsRequired = false)]
[StringValidator(InvalidCharacters = INVALID_CHARACTER, MinLength = 1, MaxLength = 60)]
public string ProcessFlow
{
get
{ return (string)this[PROCESS_FLOW]; }
//set
//{ this[PROCESS_FLOW] = value; }
}
}
}