Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 87 | Registered: February 27, 2009Report 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, 2009Report 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: 87 | Registered: February 27, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders