Focal Point
[SOLVED] Service Manager

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/340107212

August 17, 2009, 10:26 PM
ray_In_Vancouver
[SOLVED] Service Manager
Trying to get the name of the file that was just picked up by process.

When a user drops a file in a folder, I need to validate it befor a transform in Iway service Manager 5.6

This message has been edited. Last edited by: Kerry,


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
August 18, 2009, 05:58 AM
RivoU
Hi,

You should use Special Registers which are populated during runtime on a file listener and you can access them via SREG() call - like SREG(filename):

basename - file name without extension
extension - file extension
filename - has the value of basename.extension


Very simple example scenario: create and copy test xml file with name t1.xml to file listener folder which activates the following process:

1) Start:
2) Decision Test Object
* Operand One: SREG(filename)
* Operation: Equal To
* Operand Two: t1.xml
3) According to results
a) TRUE - File Write
* Target Directory [drive]:\yourdir\pos
* File Pattern: _Concat(_SREG(basename), _*.xml)
b) FALSE - File Write
* Target Directory [drive]:\yourdir\neg
* File Pattern: _Concat(_SREG(basename), _*.xml)
4) End

In the following process the value for filename is t1.xml and for basename just t1.

Regards,
Rivo


iSM 6.0
iDM 7.6.5 - 7702
WF 7.6.4 - 7702

All output formats
August 18, 2009, 01:14 PM
ray_In_Vancouver
that did it thanks


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server