cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping depending on content

ronnypol
Explorer
0 Kudos

Hi

I have the following source:

<record> (0..unbound)

<localDmdUnit>0899878244</localDmdUnit> (0..1)

<localPackSize>1</localPackSize> (0..1)

<markForDeletion>1</markForDeletion> (0..1)

</record>

and the target

<LoadEntityLoekz> (0..unbound) mapped with record

<EntityLoekz action="UPDATE_INSERT">

<table>STSC.ENTITYLOEKZ</table>

<access>

<ITEM></ITEM>

<LOC></LOC>

</access>

<key>

<ITEM></ITEM>

</key>

</EntityLoekz>

</LoadEntityLoekz>

In the source the <markForDeletion> can be 0 or 1. If it is 1 the <record> should be mapped with the target, otherwise <LoadEntityLoekz> should not be created.

i've tried with this mapping but it doesn' work:

record -> exists \

-> AND -> createIf -> LoadEntityLoekz

if (markForDeletion == 1) /

Nothing will be mapped

Any idea?

Thanks

Ronny

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

You may use this mapping:

markForDeletion --> removeContext --> equalsS: 1 --> ifWithoutElse --> LoadEntityLoekz

record -


> removeContext -


> /

Hope this helps,

ronnypol
Explorer
0 Kudos

Hi Mark

Your solution works.

Thank you

Answers (1)

Answers (1)

Former Member
0 Kudos

Ronny,

I'd say the IF without Else function should work, as long as the loop determination is correct.

I currently don't have a PI system which i can test this in but as far as i can remember the IFWithoutElse should do the trick