cancel
Showing results for 
Search instead for 
Did you mean: 

Create a file for each node

Former Member
0 Kudos

Hi Gurus,

I have to create a single file for each record in the table. My scenario is i have to get the details of the student from the table based on the class and then i have to create a file for each student. how can i acehieve this.

The input is file contains class names for ex. 1,2,3,4..

I am fetching the student details from the table based on this class names. i have done this in the UDF.

Now my output contains multiple nodes which has each node for each student. How can i create a file for each student.

My output format is

MT_Student_Details

Student_Det

Student

Name: Ragu

Mark: 90

Student

Name: Ragul

Mark: 80

Like this..

I have explained the scenario. Kindly help me to resolve this

Regards,

Ramalakshmi.G

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Change the occurance of the target structure to 0...Unbounded. After that your message will appear something like this

Message1...

Target Structure

Message1

I hope this should do.

Regards

Ramesh

PriyankaAnagani
Active Contributor
0 Kudos

Hi,

Use multimapping...change the occurrence of target message to 0...unbounded in processing tab of messagemapping. Use unique id to identify each student record(like rollNum) and map it to target message type.

Ex:

RollNum>removeContext>sort>SplitByValueChange>collapseContext--->Mt_Target

Please refer this for multimapping

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards,

Priyanka