cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Question (File - XI - File )

Former Member
0 Kudos

I have a typical situation where I like to make use of the BPM functionality.

I have 7 different Files( FileA,FileB,FileC,FileD,FileE,FileF,FIleG)

I need to start BPM when File A arrives.

Aftger FileA arrives, I need to get all remaining 6 files. I need to send these 6 files to ftp server on 3rd party application. These 6 files may or may not be there. If Files are not there I should ignore.

Once all 6 files sent to ftp folder

I have to send FileA.

Then I have to trigger a SOAP message on 3rd party application.

Get the SOAP response

Send the SOAP response via email to User.

I dont have to transform files. They can be sent as is.

Will someone give me a optimum solution for this situation..

Thank you for your time..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hints...

From,

Yallabandi...

bhavesh_kantilal
Active Contributor
0 Kudos

ST,

sorry for the confusion here. You do need a Correlation in your case.

Whatr format is your source files gonna be? IS it XML or TEXT files?

Regards,

Bhavesh

Former Member
0 Kudos

All of them are Text Files. If correlation is must then how Can I do my scenario ? Any workaround on my situation ?

I still dont understand why I need to use coorelation in my situation. All 6 files are not related each other but they must be processed on the target application before Product file processing.

Each of these 6 files using correlation no matter what where you put them in the Integration process.

Former Member
0 Kudos

Hi ,

Check this weblog for correlation....

/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi

sekhar

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You will need Deadline Monitoring for your scenario.

1. Receive File A

2. In a block , with deadline montiroing , receiver rest of files

3. Send Step to send the files.

4. Send Synch SOAP request

5. Map the SOAP response to the Mail.

Regards,

Bhavesh

Former Member
0 Kudos

Hi, Lookslike I must use correlation here. Since I DO NOT have have access to payload how can I do BPM receive steps ( In my situation I donot have mapping whatsoever since mapping is not needed). Since mapping is not needed I dont have to convert to XML back and forth when file enters and leaves XI. I just want to pass file as is ( like flat file format even within XI ).

Any ideas provided will be greately appreciated..

bhavesh_kantilal
Active Contributor
0 Kudos

ST,

How wil your SOAP request message be constructed? Will it be done on the basis of the FILE A 's contents or the contents of rest of files?

If it is based on FILE A contents alone, no need of CORRELATION. Just have the RECEIVE step's in a deadline monitoring branch and then SEND step.

AS you just want to use XI as an FTP service, no need for maaping for files except FILE A . Just Receive and SEND.

Regards,

Bhavesh

Former Member
0 Kudos

Iam using XI as FTP service to pass all these 7 files.

Basically

Product File should start BPM service

Then receive all 6 files and send them as is ( I may or may not have all these files. if I get files then send it across otherwise ignore )

Finally send Product File originally received. After sending Product file, I should call SOAP ( we are yet to determine this ) to trigger a script ( which will process all the files originally sent including Product File ). After Script runs, response will be passed back to BPM which will then be forwarded via email to User.

bhavesh_kantilal
Active Contributor
0 Kudos

ST,

http://help.sap.com/saphelp_nw04/helpdata/en/c5/582541019fa52fe10000000a155106/content.htm

Like I mentioned, in this case, you will have a receive Step, and then multiple Receiver Steps with Deadline Monitoring. SHould work fine.

Regards,

Bhavesh

Former Member
0 Kudos

Test

Former Member
0 Kudos

How can I avoid Correlations. In all scenarios in the link provided I

must use Correlation. Would you please eloborate how I can do.

What I did is

Receive step - Receive Product File

then Fork with 3 branches. Each branch will have Receive and step

After Fork, Send Product File.

Send Synch Soap message

My problem is all these receive steps are expecting correlation ID.

moorthy
Active Contributor
0 Kudos

Hi,

As is you can do this using bpm with correlation for all 7 files. once all all 6 files sent , then based on Transport acknowledgement, you can call the Webservice.

If you want to get the response, you need to execute the mapping outside the bpm. you can execute your logic of 6 files etc inside the bpm

for this , you can ceck bpm pattern available in the sap basis component.

regards,

moorthy