|
1 | 1 | {
|
2 |
| - "Class definition without superclass": { |
3 |
| - "prefix": "Class", |
4 |
| - "body": [ |
5 |
| - "/// ${1:Description}", |
6 |
| - "Class ${2:PackageName.ClassName}", |
7 |
| - "{", |
8 |
| - "$0", |
9 |
| - "}" |
10 |
| - ] |
11 |
| - }, |
12 |
| - "Class definition with one superclass": { |
13 |
| - "prefix": "Class", |
14 |
| - "body": [ |
15 |
| - "/// ${1:Description}", |
16 |
| - "Class ${2:PackageName.ClassName} Extends ${3|%Persistent,%SerialObject,%RegisteredObject|}", |
17 |
| - "{", |
18 |
| - "$0", |
19 |
| - "}" |
20 |
| - ] |
21 |
| - }, |
22 |
| - "Class definition with multiple superclasses": { |
23 |
| - "prefix": "Class", |
24 |
| - "body": [ |
25 |
| - "/// ${1:Description}", |
26 |
| - "Class ${2:PackageName.ClassName} Extends (${3|%Persistent,%SerialObject,%RegisteredObject|}, ${4:%JSON.Adaptor}, ${5:%XML.Adaptor})", |
27 |
| - "{", |
28 |
| - "$0", |
29 |
| - "}" |
30 |
| - ] |
31 |
| - }, |
32 | 2 | "ClassMethod definition": {
|
33 | 3 | "prefix": "ClassMethod",
|
34 | 4 | "body": [
|
|
191 | 161 | ],
|
192 | 162 | "description": "XData"
|
193 | 163 | },
|
194 |
| - "BusinessService": { |
195 |
| - "prefix": ["BusinessService","Interoperability","ClassService"], |
196 |
| - "body": [ |
197 |
| - "/// ${1:Description}", |
198 |
| - "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService", |
199 |
| - "{", |
200 |
| - "", |
201 |
| - "Property Adapter As ${3:Ens.InboundAdapter};", |
202 |
| - "", |
203 |
| - "Parameter ADAPTER = \"$3\";", |
204 |
| - "", |
205 |
| - "Method OnProcessInput(pInput As %RegisteredObject, pOutput As %RegisteredObject) As %Status", |
206 |
| - "{", |
207 |
| - "\t$0", |
208 |
| - "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
209 |
| - "}", |
210 |
| - "}" |
211 |
| - ], |
212 |
| - "description": "Business Service Definition" |
213 |
| - }, |
214 |
| - "BusinessProcessBPL": { |
215 |
| - "prefix": ["BusinessProcess","Interoperability","ClassProcess"], |
216 |
| - "body": [ |
217 |
| - "/// ${0:Description}", |
218 |
| - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessProcessBPL [ ClassType = persistent, ProcedureBlock ]", |
219 |
| - "{", |
220 |
| - "XData BPL [ XMLNamespace = \"http://www.intersystems.com/bpl\" ]", |
221 |
| - "{", |
222 |
| - "<process language='objectscript' request='Ens.Request' response='Ens.Response' height='2000' width='2000' >", |
223 |
| - "\t<sequence xend='200' yend='350' >", |
224 |
| - "\t\t<trace value='\"test\"' xpos='200' ypos='250' disabled=\"true\"/>", |
225 |
| - "\t</sequence>", |
226 |
| - "</process>", |
227 |
| - "}", |
228 |
| - "}" |
229 |
| - ], |
230 |
| - "description": "Business Process Definition" |
231 |
| - }, |
232 |
| - "BusinessProcess": { |
233 |
| - "prefix": ["BusinessProcess","Interoperability","ClassProcess"], |
234 |
| - "body": [ |
235 |
| - "/// ${1:Description}", |
236 |
| - "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessProcess [ ClassType = persistent, ProcedureBlock ]", |
237 |
| - "{", |
238 |
| - "Method OnRequest(pRequest As Ens.Request, Output pResponse As Ens.Response) As %Status", |
239 |
| - "{", |
240 |
| - "\t$0", |
241 |
| - "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
242 |
| - "}", |
243 |
| - "}" |
244 |
| - ], |
245 |
| - "description": "Business Process Definition" |
246 |
| - }, |
247 |
| - "BusinessOperation": { |
248 |
| - "prefix":["BusinessOperation","Interoperability","ClassOperation"], |
249 |
| - "body": [ |
250 |
| - "/// ${1:Description}", |
251 |
| - "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessOperation", |
252 |
| - "{", |
253 |
| - "", |
254 |
| - "Property Adapter As ${3:Ens.OutboundAdapter};", |
255 |
| - "", |
256 |
| - "Parameter ADAPTER = \"$3\";", |
257 |
| - "", |
258 |
| - "Parameter INVOCATION = \"Queue\";", |
259 |
| - "", |
260 |
| - "Method SampleCall(pRequest As ${4:Ens.Request}, Output pResponse As ${5:Ens.Response} ) As %Status", |
261 |
| - "{", |
262 |
| - "\t$0", |
263 |
| - "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
264 |
| - "}", |
265 |
| - "", |
266 |
| - "XData MessageMap", |
267 |
| - "{", |
268 |
| - "<MapItems>", |
269 |
| - "\t<MapItem MessageType=\"$4\">", |
270 |
| - "\t\t<Method>SampleCall</Method>", |
271 |
| - "\t</MapItem>", |
272 |
| - "</MapItems>", |
273 |
| - "}", |
274 |
| - "}" |
275 |
| - ], |
276 |
| - "description": "Business Operation Definition" |
277 |
| - }, |
278 | 164 | "Production": {
|
279 | 165 | "prefix": ["Production","Interoperability","ClassProduction"],
|
280 | 166 | "body": [
|
|
0 commit comments