Author |
Message
|
anandsitha |
Posted: Tue Sep 20, 2011 10:14 pm Post subject: Validation In File Input Node |
|
|
Acolyte
Joined: 26 Jul 2011 Posts: 59
|
Hi
My msgflow will be
File Input Node ---->ComputeNode------>File Output Node
I want to read a particular file in the pickup directory file format is (*.txt). In the Pickup directory there are several files with *.txt . But I want to pick up files which is having the content CKS all other files will be present in the same directory. How to do this validation in File Input Node.
Regards
Sithanandam.V |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Sep 20, 2011 11:05 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Possibly with a MessageSet?
you know the section in the Node Properties that deals with parsing and validation? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 21, 2011 2:51 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
But I want to pick up files which is having the content CKS |
What is 'CKS'? Please explain. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Sep 21, 2011 3:37 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
kimbert wrote: |
Quote: |
But I want to pick up files which is having the content CKS |
What is 'CKS'? Please explain. |
It is obviously 'Clay Kitten Shooting' http://www.richsalter.btinternet.co.uk/cks2/index.html.  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
anandsitha |
Posted: Mon Sep 26, 2011 10:48 pm Post subject: |
|
|
Acolyte
Joined: 26 Jul 2011 Posts: 59
|
Hi-
I have changed the message set for that particular element
<xsd:pattern value="CKS"/>
Now in my file input node File name pattern is
*.EDI
If I am placing 2 different *.EDI files one is perfectly processing but the other is moving to archieve directory (the file which is not having CKS).
But I dont want the second file should be picked by WMB.
It should be consumed by different application.
Regards
Sithanandam.V |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 27, 2011 2:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
anandsitha wrote: |
But I dont want the second file should be picked by WMB.
It should be consumed by different application. |
So you want Broker to pick up all files in a given directory that end in .EDI - except for some files that end in .EDI that broker is NOT supposed to pick up.
You can't do that.
You can a) make sure the sending application puts the right files in different places or with different extensions, OR b) have broker read ALL files, and put some in another directory for another program to read, or C) have some other program read ALL files and put SOME files in a directory for broker to read.
You're asking Broker to decide whether or not to read files based on contents, but you want it to do so BEFORE it's read the contents. |
|
Back to top |
|
 |
|