cancel
Showing results for 
Search instead for 
Did you mean: 

Counter

Former Member
0 Kudos

Hi,

I have the Following Structures

Sender

Node1---- 0...Unbounded

A1 --1.1

A2---1..1

Node2---- 0...Unbounded

B1 --1.1

B2---1..1

Node3---- 0...Unbounded

C1 --1.1

C2---1..1

Receiver

Node11---- 0...Unbounded

X --1.1

Node21---- 0...Unbounded

Y --1.1

Node31---- 0...Unbounded

Z --1.1

Mapping:

X-----Counter of Node1 ( if the Node repeats 3 , it should display 1 ,2 ,3 )

Y----Counter of Node2 starting from Next to X Counter ( eg if X ends with 3 then it should starts from 4 till it ends )

Z---Counter of Node 3 starting from Next to XYCounter ( eg if Y ends with6 then it should starts from 7 till it ends )

Can Any one help in Designing the Graphical mapping Logic or UDF..

Accepted Solutions (0)

Answers (1)

Answers (1)

shweta_walaskar2
Contributor
0 Kudos

Hello,

Does this help you?

X Node1->index(No change in properties)-> X

Y UDF getY type Context

arguments:

a: Node1-> counter*

b: Node2-> counter*

for(int i=a1;i<=(a.lengthb.length);i++)

result.addValue(i);

Z UDF getZ type Context

arguments:

a: Node2-> counter*

b: Node3-> counter*

for(int i=a1;i<=(a.lengthb.length);i++)

result.addValue(i);

Do let us know.

Regards,

Shweta