Skip to Content
avatar image
Former Member

question on element cardinality

Please open following doc and refer to page 14.

FEATURED EVENTS;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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 12, 2009 at 11:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Oct 12, 2009 at 11:59 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2009 at 12:08 PM
    Add comment
    10|10000 characters needed characters exceeded