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
7 replies
Subscribers
10 subscribers
Views
6632 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Best Practices
Calling an older version of expression rule or interface ?
ovidiubalan
over 7 years ago
Hello !
Is it possible that in a process model, expression rule or interface to call an older version of another expression rule ?
Thanks in advance !
Ovidiu
OriginalPostID-265993
Discussion posts and replies are publicly visible
0
mohammedz
Certified Associate Developer
over 7 years ago
@ovidiub
AFAIK always an expression rule will take the latest version.
Coz one expression rule or interface can have more than 50 old version
So in your case it is practically difficult as let say u have 70 version if u change anything to existing rule ur version will become 71
So referencing to any particular old version of exp rule or interface is not possible. In that case you can create new rule of the old version and call it
That would be consider as an best reliable practice
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ovidiubalan
over 7 years ago
@mohammedz Thanks !
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 7 years ago
Try to make passing arguments by keyword as a hard best practice. Then modifying the interface of an expression will not break when called by older code. See
docs.appian.com/.../Expressions.html
.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ovidiubalan
over 7 years ago
@stefanh791 Thank you ! That is a good practice indeed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm377
over 7 years ago
To add on -- if you rename/add/remove rule inputs from your expression rule/interface, you should make this update in the process model as well if needed since AFAIK, this is not done automatically.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 7 years ago
@stefanh791 Agreed - but whilst it may not break, it might behave unpredictably depending on how it's written! :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jamalc8231
over 7 years ago
Passing arguments by keyword is the best practice and its good for error handling
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel