Hi everyone,
I’m working on a large and complex process where we are not using User Input Tasks. Instead, we implemented a pool-based approach, where each group has its own pool of requests.
All request data is stored in the database. We also have an Admin Configuration interface that allows the admin to enable or disable certain tasks for specific groups.
For example, in the database we store a boolean flag:
true → the request/task should appear in the pool
false → the request/task should no longer appear
On the interface side, we are using a grid that queries the database and filters the tasks based on this flag to display the pool for each group.
The issue we are facing is the following:
When the admin disables a task (changing the flag from true to false), the request still appears in the pool grid. It only disappears after performing a hard browser refresh. The standard refresh mechanisms in the interface do not update the grid immediately.
My questions are:
Is there a recommended way to force the grid/pool to refresh immediately when the admin disables the task?
Are there any best practices for implementing pool-based task management like this in Appian?
Is there a better architectural approach for handling this scenario?
Any suggestions or best practices would be greatly appreciated.
Thanks!
Discussion posts and replies are publicly visible
You can't update **instantaneously** on the parent grid interface, however it's pretty trivial to use a!refreshVariable() along with a refresh interval of 0.5 (30 seconds) to refresh the displayed tasks pretty often.
In the case that someone clicks on one of the "Tasks" in their list that has already been removed by an admin but was still showing up on their interface - at the beginning of the process, simply re-query by the "task ID" to double check its removal status, and if it is removed, route the user to a dummy interface informing them that the task is no longer available.
Not a PERFECTLY seamless solution, but it should easily satisfy >99% of use cases.