on 04-25-2007 6:17 AM
HI all,
I have a requirement in which the file name is generating dynamically. Using this filename, I have to pick the corresponding filename.
Say suppose, the file name is ABCxxxxx, here xxxxx is some characters that generates dynamically. Now I have get the acutal characters of xxxxx and have to pick the corresponding file say DEFxxxxx, here xxxxx in both the files are same.
Up to my knowledge, we can not use java code in BPM and the above scenario can be done using java code.
Can it be done using BPM without using java code?
Please guide me.
Thanks,
anil.
HI,
not java code, in BPM , use receive step to recieve the file name and now once again the use the recieve with the new file name , configure accordingly .
also good option said by Michal , use java proxy to check the file name and pick the respective file ..
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chilla ,
>>>>use receive step to recieve the file name and now once again the use the recieve with the new file name , configure accordingly .
with his requirement (to pick up the file by it's name)
it's not possible to use a receive step
he needs to use a send step (with java proxy for example)
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
HI All
Thank you for replies.
So what I understand is that it can not be done without using java code. Nor it can not be done directly using BPM.
Here can I do like this:
Write a java code to pick the corresponding files from source system and place in xi server. From xi server, file adapter will send the files to target system. Here I need not use BPM.
Please validate this solution, suggest me the better way if any.
Thanks,
Anil.
Satish / Anil,
If you need to get the filename dynamically in the sender file adapter, you can use wildcard characters , filename. etc in the sender file adapter.
But, if the requirement is that on the basis of the source file picked up by the sender file adapter another file needs to be picked dynamically, you need to select / pick another file , then you can use Sender File adapter to pick up the source file and in the mapping use can wrtie a UDF to perfrom a IO to pick up the other file and so on.
Or, you can use a BPM with Java Proxies as suggested by Michal. Doing direct IO is not recommeneded in XI but if ineveitable can be done.
Regards
Bhavesh
HI Bhavesh,
Correct me, if i am wrong
Michal suggested to go with java proxy to pick the file. But he has not suggested BPM wiht Java proxies.
What I understood from michal explanation is, write java proxy to pick the files dynamically and then use file adapter to send files to target system.
Please correct me if i went wrong anywhere.
Thanks,
Anil.
If you do guarantee that both ABCxxx and DEFxxx files will be eventually created, you could create a new field in message types of both ABC and DEF files. This new field would hold the xxx value for both messages (you can fill it by reading filename with dynamic configuration in a message mapping) and then you could use this field as a correlation in BPM.
Avoid using dynamic configurated context objects in BPM correlations though. I have had problems with them.
Regards,
Henrique.
Hi,
>>>>Can it be done using BPM without using java code?
no it cannot
one way to achive your scenario (which I did in my projects)
was to create a java proxy that picks the file
you cannot use standard file adapter as it does not allow a work in this mode
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not possible wiothout using java IO.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.