cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Mapping

Former Member
0 Kudos

Hi All,

I have requirement to have a counter in the mapping. But the problem is that the counter variable should hold the value not just for that instance. it should carry the value to the next instance of mapping.

So please guide me in acheiving this.

Regards

Gopi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gopal,

Next instance of mapping means in the next executioin of the scenario right? I fear thats not possible. Even use of global containers help in communication within a mapping only.

A way to achieve this is to store the "Counter" value in a file using Java code in UserDefinedFunction. Then access the file in UDF for retrieving the value.

Regards,

P.Venkat

prabhu_s2
Active Contributor
0 Kudos

have a field defined in the target strucutre that has holds the counter value. this can be done by using the node function by pointing the source to it. the result of the counter pointed to target. by this we will be able to get the value.

<i><b>But the problem is that the counter variable should hold the value not just for that instance. it should carry the value to the next instance of mapping.</b></i>

not sure abt this req. but u can try with a DB lukup which will store the counter value and again restore the value when u need.