Automation Script pseudo-code Instruction
Automation script pseudo-code instruction.I first ran across this about forty years ago when working in a Fortran environment. My team was working on a military contract and to meet a documentation requirement, we were told to use a template for our Fortan code to allow automatic extraction of comments to supply to the customer as part of a way to meet the mil-std 1679 project requirements. One of the gurus there developed the process and program(s) required to do the work and the rest was, in a sense, history.
- Extract all block comments (starting with /* or ending with */
- Extract all single line comments (starting with //)
- Extract all logging statements of interest (starting with service.log)
Note that I created a table to use as the launchpoint named AUTOCOMMENT because I wanted a launchpoint to refer to a button on the autoscript screen but you can't specify that internal table for a launchpoint. This is basically a placeholder that has only a couple of persistent fields to tie it to the autoscript table. A pair of non persistent fields were used for some troubleshooting and alternate processing I explored while assembling this. Here is a dbc for this object and also the setup for its creation:
I developed and ran this on this system:
So I did all this on my VM, exporting the automation script information from my customers system to mine so I could work there. I added a button to the automation script application screen but you could add it anywhere.
This has been done by many people already – I like this other blog and used their method:
In case the link fails in the future, here is a quick overview:
Here is the automation script:
Follow up notes.
In order to move the script exports between the customers system and my vm I used migration manager to create a package to move an external system named 'CONFIG' that was setup to allow this. Note that you need to activate the external system and associate it with your queues on your system before you can import or export launchpoints or scripts. This has been very handy for me.