cancel
Showing results for 
Search instead for 
Did you mean: 

question on element cardinality

Former Member
0 Kudos

Please open following doc and refer to page 14.

;jsessionid=%28J2EE3417800%29ID0601227750DB00651747582433322980End?rid=/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd&overridelayout=true

it says....


 Element cardinality : Fixed Occurrences (minOccurs == maxOccurs)
Exceptions: Nodes with fixed occurrences(minOccurs=maxOccurs)

Nodes are automatically marked as green
Mapping is not mandatory<minOccurs> nodes are created automatically.

I did not understand this at all. Can someone please explain me?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Venkat,

No, this is applicable only to target structure.

It means that, when there is a fixed Occurence for a 'Node', then that node always exists,

and important thing is, as node does not contain any value, we don't have to map anything to such a node.

But same is not the case with an "Element". If it has a fixed occurence, that means, it will be generated in the target node

and as element contains some value, it has to have some mapping.

Regards,

Supriya.

former_member187339
Active Contributor
0 Kudos

Hi Venkat

It means when the minOccurence of a node is 1 and maxOccurence of a node is 1, then we dont have to map it since it will always be created. Thsi node will always be created in target structure

But when the minOccurs and maxOccurec of an element is 1 then we need to map it else it will be in red color. This field will always be created in target and hence mapping logic needs to be defined

Regards

Suraj

Former Member
0 Kudos

hmmm unfortunatley not clear.

how does this work ?

does this apply to source, target structures with same cardinality and same names? ( like we do interfaces without MM )?

Thanks,

Venkat.

former_member187339
Active Contributor
0 Kudos

Hi Venkat,

>>does this apply to source, target structures with same cardinality and same names? ( like we do interfaces without MM )?

Think like this if you have a source with a mandatory node/field (minOccur=maxOccur =1) and you are not providing what will happen. Actually if you not doing any XMLvalidation in sender agreement the payload for mapping will be incorrect and eventually the target can not be created

But this is not the case with target creation. IF you have not mapped a mandatory field you cannot activate teh mapping itself. And if the node is mandatory then you dont have to map it (as it will be created automatically)

Regards

Suraj