Hi,
With connectors - qactions it is possible to keep a variable in memory between 2 executions of the qaction.
This is also possible for ad-hoc datasources.
How can we do this for Automation scripts?
And when there is no built-in mechanism by DataMiner, could this still be accomplished somehow?
E.g. a static concurrent (thread-safe) dictionary or something alike
You can use MEMORY FILES to store values, which will also survive reboots.
https://docs.dataminer.services/user-guide/Advanced_Modules/Automation_module/Designing_Automation_scripts/Script_variables.html#creating-a-memory-file
Hi Mieke, in automation scripts you can also use the same method to store data in memory as in QActions. Static fields and properties of classes are kept in memory during the lifetime of the SLAutomation process. When the process restarts, that data will be gone. This is a great way though to cache data that can easily be retrieved back after a DMA restart.