cancel
Showing results for 
Search instead for 
Did you mean: 

File scenario

Former Member
0 Kudos

Can anybody suggest a solution for following:

1) This is a FILE-XI-FILE scenario.

2) I need to create one new file everyday that gets appended every 15 minutes as per design.

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Venu,

Prakash has given you a few options, but , can you actually give us the entire requirements?

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

One option would be to use BPM, where you check the conition that if the date is current and you are receiving the first file then you create else you append for that day.

you will just have to do some twist for creating the flag and two file adapters one with option of create and other for append.

Regards

Vijaya

Former Member
0 Kudos

Vijaya,

How to do the current date test in BPM?

former_member206604
Active Contributor
0 Kudos

Hi,

Method 1: Using BPM you can keep collecting the files and accumulate it and then save it.

Method 2: You need to have 2 scenario

Let assume you wanted to fetch the file from folder "Source" and place it in folder "Target"

Scenario 1 : Fetch the every 15 min and append it in with a file in the "temp" folder

Scenario 2 : Will keep polling a dummy file in Test mode. In the Receiver adapter call using OS commands call a batch file.

In Batch file

1. Rename the file in the "temp" folder say from temp.txt to temp_1.txt

2. Create a empty file with the same name temp.txt

3. Copy the temp_1.txt to the "Target" folder

Configure this scenario in such a way that this is executing once a day.

Note : In case if you have XML files then go with Method 1.

Thanks,

Prakash