spacer
cornerspacercorner
Reply
Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos

Sample script to use variable substitution in filenames

[ Edited ]

Use the attached sample exit. It shows how you can dynamically set the file name.

 

Below is the example MIM request.

 

<?xml version="1.0" encoding="UTF-8"?>

<!--MIM version='8.5.1.0.20100315' vendor='Metastorm Inc'-->

<XMOFTSReq>

      <label>LOCALTEST1</label>

      <lqm>FSPOD</lqm>

      <sqm>FSPOD</sqm>

      <dqm>FSPOD</dqm>

      <oqm>FSPOD</oqm>

      <spath>C:\program files\metastorm\mim\userdata\demodata\Demo.txt</spath>

      <dpath>C:\TEMP\JUNK${gmtDate}${gmtTime}.TXT</dpath>

      <compressionLevel>5</compressionLevel>

   <ControlCenter>

         <doStatus>1</doStatus>

   </ControlCenter>

   <XMOFTSPreSendList>

      <XMOFTSExit>

            <exit>5</exit>

            <exitdll>replaceFileName</exitdll>

            <exitentry>replaceFileName</exitentry>

            <exitqm>FSPOD</exitqm>

            <exitdata></exitdata>

      </XMOFTSExit>

   </XMOFTSPreSendList>

      <username>admin</username>

</XMOFTSReq>

 

Ethan Beisher

Senior Integration Consultant

Metastorm, Inc.

 

See. Think. Do. Business to the Power of 3™  

 

 

 

Ethan Beisher
Solutions Engineer
Business Process Solutions
line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line