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
6 replies
Subscribers
9 subscribers
Views
4753 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Related Action
best
Certified Lead Developer
over 8 years ago
Hi All,
When user accidentally double clicks on a related action shortcut , two instance is getting generated. Is there any way to avoid this ?
Thanks in advance
OriginalPostID-265571
Discussion posts and replies are publicly visible
Parents
0
Poorna Guduri
A Score Level 1
over 8 years ago
Hi bestlinl, There are 2 ways you can go with:
1. Disabling the Related Action - Build a Process Report with the context of the Target Process Model, in such a way that it captures every process instance detail. Build an Expression Rule with a!queryAnalytics() function through which you will be able to capture the process instance details as a data subset. Build another expression rule for the visibility of the Related Action which returns true if there is no active instance otherwise false. This will disable the related action if there is an active instance for that process model. Configure this expression rule at the Visibility for the related action.
2. Handling in Process Model - Keep the Related Action always visible. Build a Process Report with the context of the Target Process Model, in such a way that it captures every process instance detail. Build an Expression Rule with a!queryAnalytics() function through which you will be able to capture the process instance details as a data subset. Inside the process model add an XOR gateway at the very beginning in order to verify whether there is any active instance for the process model at that moment (call the expression rule to fetch the process instance details). If there is any, end up the flow otherwise let the execution follow the normal flow.
If there are more number of users for whom the related action is available, you might need to add some more factor/factors (like the user/group context) to find more accurate details about the process instances.
Hope this helps!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Poorna Guduri
A Score Level 1
over 8 years ago
Hi bestlinl, There are 2 ways you can go with:
1. Disabling the Related Action - Build a Process Report with the context of the Target Process Model, in such a way that it captures every process instance detail. Build an Expression Rule with a!queryAnalytics() function through which you will be able to capture the process instance details as a data subset. Build another expression rule for the visibility of the Related Action which returns true if there is no active instance otherwise false. This will disable the related action if there is an active instance for that process model. Configure this expression rule at the Visibility for the related action.
2. Handling in Process Model - Keep the Related Action always visible. Build a Process Report with the context of the Target Process Model, in such a way that it captures every process instance detail. Build an Expression Rule with a!queryAnalytics() function through which you will be able to capture the process instance details as a data subset. Inside the process model add an XOR gateway at the very beginning in order to verify whether there is any active instance for the process model at that moment (call the expression rule to fetch the process instance details). If there is any, end up the flow otherwise let the execution follow the normal flow.
If there are more number of users for whom the related action is available, you might need to add some more factor/factors (like the user/group context) to find more accurate details about the process instances.
Hope this helps!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data