on 11-12-2010 12:28 PM
Can we write a condition,where in if the files are coming from the specific folder it has to be recieved by a particular service and if its coming from a diff folder it has to be recieved by another service
Yes, it is possible.
In the receiver agreement, when you define condition for receivers, click on
Condition --> Condition Editor, Left Operand --> Expression editor, Context Object ---> Directory
You will get one the technical context object for file adapter, click on 'Directory'
And now you put the condition based on which you want to route the file, it will be delivered to the respective target based on the source directory
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm No use..
let me give the condition in detail what i have made so that you can be clear..
directory=d:/out/xmin int_bpm
its the condition in the receiver determintaion..is this rite way to give a condition ? as most of the times we give condition basing on some payload value so am not sure wit these folder things
hi Salvi,
//If you are using the Context Object then it should be Directory //
Yes it is Directory
///did you trying checking the ASMA for Directory in sender channel?///
No its not checked will check it and try
///Check what is the value of Directory in the Message header....if it is not d:/out/xmin int_bpm then the condition is bound to fail.////
i didnt get this.can you elaborate please. message header in the sense u mean in the xml file?
not the XML message....since you are making use of the header parameter Directory you should be checking the message header (message consists of Payload (the XML which you place in the folder) and a header section (which contains the fields like Directory, File Name))
If not able to see in channel monitoring.....then remove the condition in RD --> include a small UDF in mapping which will get the Directory value in some target node....check what is the value you are getting.
Regards,
Abhishek.
Hmm of no use..
its not recognising the condition for the folder
Ex:
The Requirement is we have 4 input folders which sends the file .we are using bpm to process them.
The reqrmnt is now that we want the same bpm to run independently for each folder.so we have imported the same bpm in the configuration scenario with four different names.and in the receiver determination we gave the condition like u201Cdirectory=D:/out/xminu201D int_bpm1 and u201Cdirectory=D:/out/xmaxu201D int_bpm2
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.