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
1587 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
Parents
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
Reply
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
Children
No Data