Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1586 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
If I have a cdt eg myCDT with child elements a b c d What is the best way i
joel671
over 9 years ago
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
0
sikhivahans
over 9 years ago
Hi joel671, It would be worth trying this plugin:
forum.appian.com/.../
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
joel671
over 9 years ago
Thanks for the suggestion, I really want to avoid a plug in for it though.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
I'm not aware of a way that doesn't use a type constructor, but you could wrap the type constructor mapping above in a rule with an any type input, so you'd only have to maintain the CDT structure in a single place. Is the CDT structure likely to change a lot?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
joel671
over 9 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel