Hello.
Another mystery… I have two KPI’s and one HtmlAdvanced portlet whose data sources are workflows that call a rest API to retrieve data. I would swear that until 2 or 3 days ago they were working fine, but maybe I hadn’t noticed the behavior they are having now. I never had any error running the current version of the workflows used by the KPI’s and the HtmlAdvanced portlet in Flow Studio and the execution is practically instantaneous.
Both KPI’s show a number or a question mark (?). The latter should only show up if there was an error on executing the API or an error was returned. Typically, when the question mark is shown it is not due exactly to an error, but because the name of the user logged in the portal doesn’t match an user that exists in the other application whose API is called.
The value is the KPI’s should be same as the one that appears in red and in parentheses in the line of the HtmlAdvanced “WORKFLOWS” portlet with the same name (either “as minhas tarefas” or “caixa de entrada”).
The KPI’s have “Initialize load” enabled, and according to the help website, that means that they should be refreshed every time the page is loaded, which is what happens with other portlets in the page. I have also tried various refresh intervals or just disable the autorefresh.
Most of the times everything works fine and the misbehaviors seem to occur much more when one does logout and login again with another user, specially if one of the users exists in the other application (of the API) and the other doesn’t.
The Html portlet seems to behave well most of the times, ie, it shows the correct values, but on a few occasions it simply shows up blank after the page was loaded.
However, most of the times the KPI’s show a wrong value until a refresh is forced. When autorefresh is enabled, most of the times no refresh is done and in a few occasions, the “wait” circle that appears during the refresh never stops.
Any hints on what may be happening or on how to solve this situation?
Thank you.
Regards.
Example of the situation after logging with a user that exists in the application of the API, just after having being logged in with a user that exist. Note that in the lower portlet are shown question marks, which is correct, but in the KPI’s are shown 0, which is wrong.
Example of the situation after logging with a user that doesn’t exists in the application of the API, just after having being logged in with a user that don’t exist. In this case,both KPI’s should show 0.
I am not able to reproduce other behaviors now (as I wrote above, the errors don’t occur every time).