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
11 replies
Subscribers
4 subscribers
Views
3760 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Active Instances to stick with Old Version of Code - Post Deployment
Karthik
over 7 years ago
I want the newer instances to follow the new code and older to follow older code. Is there a way to make the active instances to follow the older version of the code though the sub-processes are yet to be triggered?
OriginalPostID-256982
Discussion posts and replies are publicly visible
Parents
0
Chris
over 7 years ago
In the situation where you do not have this defined yet, what you can do is define this variable/parameter at the sub process level with a default of 1, older parent processes (after you implement in the parent) will not send this variable, thus the sub will use a default of 1, where new parent processes WILL send in variable with version 2+, so it is achievable to implement this immediately but this method will not work for distinguishing between 2 legacy versions prior to implementation.
For your case, you might be able to achieve this by creating a process report for the parent processes with pp!id (instance ID) and pm!version. In your sub process, you should be able to retrieve the parent process instance id using parent_process_id(). You can then pull the parent version from your new report, based on this instance ID, and direct your sub process accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Chris
over 7 years ago
In the situation where you do not have this defined yet, what you can do is define this variable/parameter at the sub process level with a default of 1, older parent processes (after you implement in the parent) will not send this variable, thus the sub will use a default of 1, where new parent processes WILL send in variable with version 2+, so it is achievable to implement this immediately but this method will not work for distinguishing between 2 legacy versions prior to implementation.
For your case, you might be able to achieve this by creating a process report for the parent processes with pp!id (instance ID) and pm!version. In your sub process, you should be able to retrieve the parent process instance id using parent_process_id(). You can then pull the parent version from your new report, based on this instance ID, and direct your sub process accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data