Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] Service Manager
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Service Manager
 Login/Join
 
Gold member
posted
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
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 23 | Location: Tallinn, Estonia | Registered: July 31, 2009Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] Service Manager

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.