on 06-23-2009 4:48 PM
I have this question in mappnig:
Source Structure:
-> A(NODE) 0- unbounded
->B(NODE) 0-unbounded
Target Structure
-> K NODE(0-unbounded)
i need to create K when ever A / B is created, at a given instant (In one messge either A/B will occur both can't occur)
but the target should always occur and it shoud b based on A/B
Thanks for the help
Will follow up on your suggestions thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you need to do (nearly) nothing:
Just map A to K AND B to K (by doublicating K).
If either A or B occurs you always get a K.
Regards,
Udo
Edited by: Udo Martens on Jun 23, 2009 5:56 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>but the target should always occur and it should b based on A/B
Means occurence of K is same as occurence of either A or B?
If yes,then you can implement this via If-Else standard function.
If A Exist,Map A to K
Else If B Exist,Map B to K
Else Map Constant to K
Note:The above is Not a UDF,its a logic to implement If-Else via standard functions.
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aamir,
I use the if - else std function like this:
if A exists then map a to K
else map B to K ,
Now when i do a test with only B's in the message: only 1st value of B gets created. ie only value in 1st context
i see only 1 K for the first value of B.
Whereas, with the same logic when i test only with 2 A;s i get 2 Ks
Aamir,
I quite understand what u are saying,
I have used the If-Else function in PI, (K needs to occur as many # of times as A/B)
A-> EXISTS? (YES) A->K
-> (NO) B->K
Contexts of A and B are the same,
Test Case
1. 2 A's no Bs output is 2 Ks
2. 2 B's no As output is 1 K only the first B value is shown here...
Aamir,
Please help me understand:
u have posted:
If A Exist,Map A to K
Else If B Exist,Map B to K
Else Map Constant to K
Here is what i have done can you tellme if this implements your logic? If not can you tellme how i can implement yourlogic?
Now i use the function If-Then Else , i chck if A exists? if yes in the then i map A to K and in the else i put B.
A and B are both in the same contexts.
Hello,
Use he 'exist' and 'createIf' in the Node functions. If any of the source node exists, then create the target node using creatif.
Regards,
Akshay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.