Specifying Post-Processing Options

FlexNet Manager for Engineering Applications provides the ability to configure a script that can be called when a report completes. The post-processing scripting (also known as command-line option) support provides a way to enter a single scripting expression in the FlexNet Manager for Engineering Applications interface. This allows typical post-generation steps (such as user ID replacement and customized formatting) to be directly invoked after the report has been produced.

Report post-processing options are available in the Raw Report Output Properties page of the Report Configuration Wizard.

The last three settings on this page (Report Output Directory, Output Directory Options, and Post-Processing Command) are relevant for post-processing functionality. The first two settings—Report Output Directory and Output Directory Options—deal with the configuration of the external copy of the generated report, and the Post-processing Command setting is where you specify post-processing command-line parameters.

The external report copy is independent of the post processing, but if in reaction to the completed and copied report, you want to execute a script or some other program, you can populate the Post-Processing Command field. In this field, you can specify the command that FlexNet Manager for Engineering Applications should execute after the report has been generated. This command typically includes the path of an executable (which can be a script processor) together with some input to properly process the report.

In many cases, the post-processing script needs additional input parameters to efficiently process the report. This input can include the location of the output directory, the list of files produced for the report, the type of report produced, and so on.

FlexNet Manager for Engineering Applications provides a number of command-line parameters that you can use for post processing. These input parameters are added to the script with a dollar sign ($) prepended to the keyword and at run time replaced by the real values. For example, the expression—

/usr/bin/perl /opt/scripts/postproc.pl $outputDir $outputFiles

—will be emitted to the command line—

/usr/bin/perl /opt/scripts/postproc.pl /opt/reportOut MonthlyRaw.rif

—if the output directory is set to “/opt/reportOut” and the report is a raw report named “MonthlyRaw.”

See Also