Skip to Content
0
Former Member
Jul 22, 2008 at 09:48 AM

Problem to map conditional tag deep in Graphical mapping

45 Views

Hi expert,

I have a problem to map the following:

Source

OrderTag 1..1

OperationTag 0..unbounded

StatusTag 0..unbounded

User 1..1

Target

OrderTag 1..1

OperationTag 0..unbounded

UserStatusTag 0..unbounded

SystemStatusTag 0..unbounded.

For each StatusTag with field User=X in Target XML has to be UserStatusTag otherwise SystemStatusTag.

The following mapping doesn't work because Operationtag is 0..unbounded:

( StatusTag=>SplitByValue(EachValue)=>exists ) AND

( Status = X ) =>removecontext => CreateIf =>UserStatusTag

This one also does not work:

User=>RemoveContext=> Equals( with Constant(X))

=>CreateIf=>UserStatusTag.

How to get User or SystemStatusTag onder right OperationTag???

Anyone to help with this mapping?

Thank you.

Kind regards,

Danijela Zivanovic