Copying of Exported JAR to Another Location

The metadata migration workflow wfin26dataservicev2.xml has a copy activity ComputeExportFileDirectory that can be configured to copy the exported JAR to a required location. By default, the export is relocated to $MQ_COMMON_DIR/enterprisename/metadata/export/data.

You can change the location by modifying the workflow XML for the activity as shown in the following example:

<Activity Name="ComputeExportFileDirectory">
<Action>InterpretCommand</Action>
<Description lang="en">Determine the enterprise-specific directory to store the export file</Description>
<Parameter direction="in" eval="xpath" type="string" name="EnterpriseShortName" source="/Message/Header/MessageHeader[@origin='Receiver']/Enterprise/PartyID/ShortName/text()">inDoc</Parameter>
<Parameter direction="out" name="ExportFileDirectory" type="string" eval="variable">ExportFileDirectory</Parameter>
<Script format="bsh"><![CDATA[
<!-- change the location here-->
String ExportFileDirectory = EnterpriseShortName + "/metadata/export/data";
</Script>
</Activity>
<Activity Name="CopyResponseFile">
<Action>Exec</Action>
<Description>Copy the response message</Description>
<Execution>SYNCHR</Execution>
<Parameter direction="in" type="string" eval="constant" name="eventState">COPYFILE</Parameter>
<Parameter direction="in" eval="constant" type="string" name="Command">copy</Parameter>
<Parameter direction="in" eval="property" type="string" name="File">workDoc.FileName</Parameter>
<Parameter direction="in" eval="constant" type="string" name="TofilePrefix">ServiceResponse</Parameter>
<!--Parameter direction="in" eval="constant" type="string" name="TofileExt">xml</Parameter-->
<Parameter direction="in" eval="variable" type="string" name="Todir">ExportFileDirectory</Parameter>
<Parameter direction="in" eval="constant" type="string" name="Torelative">MQ_COMMON_DIR</Parameter>
<Parameter direction="out" name="OutDocument" type="document">responseDoc</Parameter>
</Activity>