What can I do in Commando Script? |
Top Previous Next |
In a word, anything you like. Commando Script is just a custom IDE (Integrated Development Environment) for MicroSoft VBScript. Anything that you can do in VBScript you can do in your CommandoScript projects. VBScript is an incredibly powerful programming language, made even more powerful with Commando's built-in objects that help you process and manipulate your HL7 messages directly.
Commando HL7 Message Processors use the VBScript in a Commando Script project to do one of two (or both) things:
1. Preprocessing: If your processor profile indicates that you wish to do preprocessing then you will need to make sure that your Commando Script project has a Public Function called PREPROCESS() that takes no parameters and returns either True or False. When running as a preprocessor, your message processor profile will call the PREPROCESS() function every <polling interval> seconds (see the Commando HL7 help for more information on the polling interval). You can write VBScript code in the PREPROCESS() function to:
2. Message Processing: When working as a message processor, your Commando Script project must have a Public Function Called MESSAGEIN() that takes no parameters and returns either True or False. If this is configured correctly, the running commando profile will do the following:
Typically you would write VBScript code into your MESSAGEIN() function to do things like:
See the Commando HL7 documentation for further information on how to use Commando HL7:
http://www.hermetechnz.com/documentation/Commando/V1/index.html
|