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
3 replies
Subscribers
7 subscribers
Views
2826 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I'm looking for a simple, clean way of displaying a 'percentage complete
adrianu
over 12 years ago
I'm looking for a simple, clean way of displaying a 'percentage complete' for a CDT using a progress bar. The CDT has X number of attributes that need to be populated with data to be considered 100% complete. I believe I just need to interrogate those attributes, determine if they contain data and then do the division manually in an expression rule. Are there any built in functions to accomplish this or has anyone had success with this scenario?...
OriginalPostID-41268
OriginalPostID-41268
Discussion posts and replies are publicly visible
Parents
0
Sathya Srinivasan
Appian Employee
over 12 years ago
You can do that as well. I think we are talking about the looping logic. If you want it dynamic, then you need to interrogate the CDT at any given time and get the values. If I were to design your logic, I would have a separate variable holding the % complete as I dont see CDT the right place to store % complete as it doesnt really form part of the data model which CDT's are suppose to be. And in the logic where you do the looping, you would update the process variable. The advantage here is that the lifecycle of the process variable is now controlled by the lifecycle of the process instance and this in turn lines up nicely with the lifecycle of the instance dashboard and secondly and most importantly, updating the value and storing it back into the DB means that you now have to do two writes and two reads to the database which again can add overhead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 12 years ago
You can do that as well. I think we are talking about the looping logic. If you want it dynamic, then you need to interrogate the CDT at any given time and get the values. If I were to design your logic, I would have a separate variable holding the % complete as I dont see CDT the right place to store % complete as it doesnt really form part of the data model which CDT's are suppose to be. And in the logic where you do the looping, you would update the process variable. The advantage here is that the lifecycle of the process variable is now controlled by the lifecycle of the process instance and this in turn lines up nicely with the lifecycle of the instance dashboard and secondly and most importantly, updating the value and storing it back into the DB means that you now have to do two writes and two reads to the database which again can add overhead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data