Template Files Associated With Automations
When Clarity LIMS is running scripts via the External Program Plugin mechanism, it is not uncommon for these scripts to rely upon a file that contains information germane to the script. A common example would be using the sample input file generator script that is part of the Lab Instrument Toolkit. This script merges runtime information within a Clarity step into a file whose format is directed by a 'template' file.
Old Methods (all versions)
Under the old method, template files must be saved to a folder accessible to the automation worker node. Typically
/opt/gls/clarity/customextensions/folderName/templateFileNameIf a script needs a template file, the file is specified by including its full path in the syntax that invokes the script.
Methods (Clarity LIMS v5.1 and later)
As of Clarity LIMS v5.1, template files can (optionally) be attached directly to an automation via the GUI.
Which Method to Use
We recommend that you use a combination of both methods, as follows.
Use the embedded template while developing the template. During this process, having the template file easily available for editing is helpful. After the template is finalized, move it to the server and adjust the automation command line to use the server path/filename instead of the file token.
This method allows for easy, iterative testing and precise traceability for production work. This method also facilitates reliable migrations involving the config-slicer tool and coordinated movement of associated /customextensions/ files.
Last updated
Was this helpful?