on 09-20-2016 8:26 AM
Hi All.
need your help in one mapping logic. Based on the sender field value i want to repeat target field. if suppose sender field value is 100 then target field should create 100 times.
Regards,
Janardhan
Try this :
Execution type : All values of Queue/Context.
Input : var1
for(int i=0 ; i<var1[0] ; i++)
{
result.addValue("");
}
Map this UDF as SourceFiled---->UDF---->TargetNode.
But make sure you have target node occurrence to 0..N.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Janardhan!
Maybe you could tell us more about your mapping logic? I just try to understand the aim of simple repeating the node n times. I guess that next question will be about filling that cloned nodes with some data.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share your structure of the surce message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Janaradhan,
Create
Source(0-Unbounded)----createif-------Target(O-unbounded)
Hope this will repeat the target based on source.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Raghu,
I have been following your answers for a while now. Before I comment anything further let me confess that I know very little of PI and I am sure my knowledge of the subject is less than most members in the forum.Therefore when ever i try to respond to a thread, I ensure practically my solution works. To increase quality of content in each thread of the forum it is essential that we test each solution our self and then respond to the thread. Guess work and assumptions do not work in projects as well as in forum. I support what Praveen Gandepalli is trying to convey to you. Please do not see this as if we are trying to correct you. This is a forum and we are trying to increase quality of content within forum. People open threads only when they are in trouble , so let us try to provide solution which will help them and not waste their time depending on guess work. Please do not take this as a criticism, we are here to help each other. keep smiling and keep posting
Regards
Anupam
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.