It is necessary to call activity outside the case. More precisely, I need to call in the form of the Data-Portal class.
In the Data-Portal there is a section that contains Repeating Dinamic Layout. Activity should be called every n seconds. It makes calculations. Depending on the result, either an element is added to Repeating Dinamic Layout, or nothing.
Moreover, the form of the class Data-Portal is available to many users.