Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Using the BP Server admin utility : BP Server admin commands : Command parsing
 

Command parsing

In pre-7.5 Business Process Server versions, BP Server Admin used to do command parsing by using the StringTokenizier with double quotes and space as the delimiters. Therefore, whenever a double quote was used in an argument, pre-7.5 BP Server Admin treated it as the end of that argument. From 7.5, you can use double quotes in an argument for a BP Server command by using back-slash (\) as an escape character.
For example, if you want to enter argument jst.writeLog("Testing Log");, then it should be entered as jst.writeLog(\"Testing Log\");
The actual command would look like
setPreFunction Approval NotifyApprove "jst.writeLog(\"Testing Log\");"
The third argument would be taken as jst.writeLog("Testing Log");
Only the double quotes which are part of the argument must be escaped by a back-slash (\).
Similarly, if you want to enter a multiline input, then you can do so using a back-slash (\) at the end of each line.
For example,
setPreFunction Approval NotifyApprove "jst.writeLog(\"This is first line\");"\
jst.writeLog(\"This is second line\");\
jst.writeLog(\"This is second line\");"
Here, the third argument would be taken as:
jst.writeLog("This is first line");
jst.writeLog("This is second line");
jst.writeLog("This is third line");