In this section we automate the build process of a model in an MCP platform using a Perlscript responder.
Using Builder Application
Create a host responder class and save the code file (for example Responder.pl) in the Bin directory of the AB Suite installation (C:\Program Files\Unisys\NGEN\Bin). Refer to Examples: Host Responder Class for a sample Perl responder class.
Copy the file MSBuildSettings.xml located in the Bin directory and save it in a temporary folder, for example in C:\Temp.
Open the MSBuildSettings.xml file from C:\Temp in a notepad and edit the tags in the MCP platform as follows:
<ResponderAssembly>Perl.exel</ResponderAssembly> <ResponderClass>Responder.pl</ResponderClass>
Follow steps 1 to 5 from Build the System, Reports and Component Enabler User Interfaces to configure a deployable Element folder for MCP.
Open the Developer Command Prompt for Visual Studio, change the directory to C:\Program Files\Unisys\NGEN\Bin, then and type the following command:
MSBuild /p:d=Meta /p:el=MetaFolder /p:configuration="Release” /p:platform=MCP /p:sf="C:\Temp\MSBuildSettings.xml"
Where
Meta is the model name
MetaFolder is the deployable Element name
Release is the configuration name
MCP is the platform we are building to
C:\Temp\MSBuildSettings.xml is the path of the MSBuildSettings.xml file
Using Visual Studio Environment
Create a host responder class and save the code file (for example Responder.pl) in the Bin directory of the AB Suite installation (C:\Program Files\Unisys\NGEN\Bin). Refer to Examples: Host Responder Class for a sample Perl responder class.
Open Registry Editor.
Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Unisys\System Modeler\Features\Builder and add two String Value keys and enter the values as follows:
ResponderClass – Enter Responder.pl in the Value data field
ResponderAssembly – Enter perl.exe in the Value data field
Follow steps 1 to 6 from section Build the system, reports and Component Enabler user interfaces only to build an MCP application.