If I have a cdt eg myCDT with child elements a b c d What is the best way i

If I have a cdt eg myCDT with child elements a b c d
What is the best way in a rule to update several of the child elements?
I know I can do type!myCDT(
a: ri!input.a,
b: ri!input.b,
c: ri!input.c,
d: ri!input.d
)

This requires maintaining the definition when the cdt changes. Is there any other ways of doing this? I really want to do it within a rule and will need to do it over an array using apply so the more efficient it is the better.

OriginalPostID-143827

OriginalPostID-143827

  Discussion posts and replies are publicly visible

Parents
  • Yeah I have done a single rule which maintains a single type constructor. It isn't that my CDT is going to change regularly, it is just a matter of ensuring someone updates the definitions any time the CDT is changed.

    I was just hoping there was a better way than relying on someone doing the right thing later down the line rather that them just being able to update the xsd in a single place.
Reply
  • Yeah I have done a single rule which maintains a single type constructor. It isn't that my CDT is going to change regularly, it is just a matter of ensuring someone updates the definitions any time the CDT is changed.

    I was just hoping there was a better way than relying on someone doing the right thing later down the line rather that them just being able to update the xsd in a single place.
Children
No Data