Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to keep a variable in memory between automation script runs?

Solved635 views12th July 2024automation scipt Memory
2
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K 11th July 2024 0 Comments

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

Tom Waterbley [SLC] [DevOps Catalyst] Answered question 12th July 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
6
Dominik Kosteletzky [DevOps Advocate]783 Posted 11th July 2024 0 Comments

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

Ben Vandenberghe [SLC] [DevOps Enabler] Selected answer as best 11th July 2024
6
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 12th July 2024 0 Comments

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.

Tom Waterbley [SLC] [DevOps Catalyst] Answered question 12th July 2024
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs