Skip to content

Commit 2bd0f26

Browse files
Merge pull request #601 from IRISMeister/master
add snippet for business process
2 parents 2742634 + 418bc3e commit 2bd0f26

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

snippets/objectscript-class.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,39 @@
186186
],
187187
"description": "Business Service Definition"
188188
},
189+
"BusinessProcessBPL": {
190+
"prefix": ["BusinessProcess","Interoperability","ClassProcess"],
191+
"body": [
192+
"/// ${0:Description}",
193+
"Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessProcessBPL [ ClassType = persistent, ProcedureBlock ]",
194+
"{",
195+
"XData BPL [ XMLNamespace = \"http://www.intersystems.com/bpl\" ]",
196+
"{",
197+
"<process language='objectscript' request='Ens.Request' response='Ens.Response' height='2000' width='2000' >",
198+
"\t<sequence xend='200' yend='350' >",
199+
"\t\t<trace value='\"test\"' xpos='200' ypos='250' disabled=\"true\"/>",
200+
"\t</sequence>",
201+
"</process>",
202+
"}",
203+
"}"
204+
],
205+
"description": "Business Process Definition"
206+
},
207+
"BusinessProcess": {
208+
"prefix": ["BusinessProcess","Interoperability","ClassProcess"],
209+
"body": [
210+
"/// ${1:Description}",
211+
"Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessProcess [ ClassType = persistent, ProcedureBlock ]",
212+
"{",
213+
"Method OnRequest(pRequest As Ens.Request, Output pResponse As Ens.Response) As %Status",
214+
"{",
215+
"\t$0",
216+
"\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)",
217+
"}",
218+
"}"
219+
],
220+
"description": "Business Process Definition"
221+
},
189222
"BusinessOperation": {
190223
"prefix":["BusinessOperation","Interoperability","ClassOperation"],
191224
"body": [

0 commit comments

Comments
 (0)