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    Method for determining the extension of a file.
Go
New
Search
Notify
Tools
Reply
  
Method for determining the extension of a file.
 Login/Join
 
Member
posted
Hi everyone,

Is there a common method for determining the extension of a file for use in a process flow or route? What I would like to do is be able to pass in several types of files to a process flow (e.g. filename.ex1, filename2.ex2, filename3.xml, etc.), determine and store the extension of a file in a runtime variable, and then have a Decision Switch object use that variable to route the file/document down the correct path in the process flow. Any suggestions for how to accomplish this would be appreciated. Thanks in advance for your help.


iWay Service Manager 5.6
WebFOCUS 7.6.7
Windows, All Outputs
 
Posts: 5 | Registered: May 03, 2011Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi,
What kind of listener are you using?
Have you tried puttting a QAAgent at the start of the pflow, and seeing if the file extension is available as a system SREG?
Regards,
AdeH


iWay 5.5 SMSP1 and 6.0.1 on Intel/Linux
 
Posts: 59 | Location: Birmingham, Blighty | Registered: October 30, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
If you have a file listener, then the system SREG extension should be populated and available when the pflow picks up the document. Similarly, SREG basename will contain the file name without extension, and SREG filename contains basename.extension

HTH


iWay 5.5 SMSP1 and 6.0.1 on Intel/Linux
 
Posts: 59 | Location: Birmingham, Blighty | Registered: October 30, 2007Reply With QuoteReport This Post
Member
posted Hide Post
Thanks, AdeH! SREG(extension) works great as the value of a runtime variable in my Decision Switch object. Is there a list of these types of SREG's available somewhere? I've looked through the user guides, but didn't see anything. I'll also have to do some research on how to use the QA Agent, like you suggested. Thanks, again.
 
Posts: 5 | Registered: May 03, 2011Reply With QuoteReport This Post
Member
posted Hide Post
If you don't have an sreg, try
_token('filename', '\\.', _count('filename',all,'\\.') )


iWay Service Manager (6.0.1 - patch.62627)
DMC Version 7 Release 7
 
Posts: 12 | Registered: January 24, 2011Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi Chuck,
Search for 'file listener special registers' in Infocentre, they are detailed there.

AdeH


iWay 5.5 SMSP1 and 6.0.1 on Intel/Linux
 
Posts: 59 | Location: Birmingham, Blighty | Registered: October 30, 2007Reply With QuoteReport This Post
Member
posted Hide Post
Thanks, AdeH. I have been looking for a good resource/reference for the iWay tools. I haven't found much information on the Web, though. It's not like Java where you can do a quick Google search to answer your own question or figure out how to make something work, so I really appreciate your feedback.
 
Posts: 5 | Registered: May 03, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Method for determining the extension of a file.

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