on 04-07-2014 5:58 AM
Hello,
below condition i need to apply.
<tag1>
<tag2>.........0..U
<tag3>........1..1
if tag3 dont not exist then tag2 should not pass. <tag2> is 0..u so when i use exist and create if condition the data is coming only once.
can any give me logic for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there is small issue in mapping.... actual i need to check tag 3 exist and if amount is zero then data should not pass to target.
and another issue is.....tag3 is 1..1 and target side root node is 0...999999
so when i check the condition and use remove context till have issue in occurrence.
if i change the occurrence of tag3 to 0....99999 then hope issue will get resloved......let me know if i am correct.
hi thanks for the help.
the standard functions are not working for the number of occurrences.
below is the structure.
Root 0....unbounded Root 0 ...unbounded.
events 0...unbounded
countries 1...1
total 0....unbounded.
amount 1
totals
Now the condition is.....if countries tag is not available and amount is zero and under total tag we have totals.....if the tag not there.......target side root should not come.
i have done mapping.
countries ----exists-------------------------------------
amount-------
equals-----not------ and--------createif----removecontext-----root.
constant------- and ---------------
(0)
totals --------exist------------
regards,
chinna
Hi,
can you try to use Remove context after create if.
tag3-->exists-->createif-->removecontext-->tag2
tag3-->tag3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chinna,
I don't know how clearly I understood your requirement, but based on what I understood, you can try this once and see if it works -
For the target element of tag2:
Use ifWithoutElse where if condition will be on tag3 (tag3 EXISTS)
if this holds true, then pass tag2 forward to the target element.
If this doesn't work out, it would be easy to have a look at the source/target structure, please provide if possible.
Regards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
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.