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
5 replies
Subscribers
8 subscribers
Views
5196 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Nested CDT and type() function
georgej
over 8 years ago
Hi Team,
I have defined a CDT by importing XSD. There are some complex types defined and appropriate references are given in XSD to define the type. When I try to do type!mynestedCDT() --This element refers to another complex type , is returning invalid data type ,although I am able to see them properly defined in the Data Management tab
OriginalPostID-261026
Discussion posts and replies are publicly visible
0
sparshs
over 8 years ago
I think if it is nested in a datatype you cannot just say type!mynestedCDT() , it should be type!parent.nestedCDT().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rajasekhar Pamidipati
A Score Level 2
over 8 years ago
Hi Georgej,
I did not get exactly what you are trying to say, But if the type!mynestedCDT() is returning wrong type as output then try to use type!{namespace}mynestedCDT(). Hope it will solve your problem.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm377
over 8 years ago
@georgej to verify, are you saying when you use type! constructor, it results in a completely different and unrelated complex type?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
If you're looking to define the value of a nested CDT within a type constructor, The correct format is:
type!myParentCDT(
aTextField: "Some value",
anIntegerField: 12345,
myChildCDT: type!myChildCDT(
aDecimalField: 12345.67
)
)
...where "myChildCDT" is the name given to the reference to type!myChildCDT within the parent CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
georgej
over 8 years ago
Thanks for the help extended...let me re-phrase this question a bit for clarity. What I am trying to do is to use "torecord" in an expression rule. The second parameter for this function is the variable defined as the CDT Type ,in rule expression what I am trying to do is 1.declare a local variable of type!mynestedCDT and use this local variable as second parameter for torecord() . But it seems torecord can be used only from inside PM and not expression rules
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel