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
6 subscribers
Views
2208 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
We have been taught that we should use byreference() function to pass pvs from p
Keith
over 11 years ago
We have been taught that we should use byreference() function to pass pvs from process to process. This saves memory. As it relates to a CDT, we are being instructed not to pass a CDT to a sub process as a byreference() function. 1. Why is this? 2. If we do not use byreference() then additional memory will be used in the sub process - this defeats the memory savings.
After reading on the forum it seems that many will create a CDT with many fields in them and then processes using the CDT will only use some of the fields. If you create a CDT specific for a process, wouldn't it make send to pass the CDT to the sub processes as a byreference()?
Keith...
OriginalPostID-83512
OriginalPostID-83512
Discussion posts and replies are publicly visible
Parents
0
nathan.schmitz
Certified Associate Developer
over 11 years ago
Passing CDTs byreference() will cause errors to occur when the version of the CDT is different between the two processes. Thus if you pass CDTs by reference in long running processes, and you update the CDT, the inflight processes will throw an error when it triggers a new sub process that attempts to use the newest version of the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
nathan.schmitz
Certified Associate Developer
over 11 years ago
Passing CDTs byreference() will cause errors to occur when the version of the CDT is different between the two processes. Thus if you pass CDTs by reference in long running processes, and you update the CDT, the inflight processes will throw an error when it triggers a new sub process that attempts to use the newest version of the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data