Hi,
I have a requirement where I am querying a process report to check if an active process exist. If there is an active process which means a task was created and based on that the UI is made read-only. I have to query the process report continuously to check if the task is created until the process is triggered. The UI is editable but as soon as the task is created the UI becomes read-only(by querying process report for active instance). Once its in read-only the query should not happen to check the process report.
EX:
local!editReportdata: a!refreshVariable( value: index( rule!getActiveInstances( pagingInfo: a!pagingInfo(1, 1), workflow: ri!workflow ), "data", {} ), refreshAlways: true() ), local!isInstanceActive:a!isNotNullOrEmpty(local!editReportdata)
Here, once local!isInstanceActive is true it should remain true even though local!editReportData becomes null. if local!isInstanceActive is false it should keep on checking until it gets true().
Or the variable local!editReportData should not become null once it holds a data from the query even after completing the process.
Discussion posts and replies are publicly visible
https://docs.appian.com/suite/help/24.2/Local_Variables.html#refresh-interval