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

Script Condition using DateTime

Solved673 views5th June 2024Correlation Correlation rule Script Condition
1
Pedro Sánchez [DevOps Advocate]239 19th March 2024 2 Comments

Hi Dojo!

We want to execute an automation script using a correlation rule but checking first a property from our service to know when the automation has been executed last time.

We trying to use in script condition:

property(Service.Service_LastUpdate)<value(DateTime.Now.AddMinutes(-1))

Where Service.Service_LastUpdate is set by previous automation execution to DateTime.Now.

We are trying to avoid a new execution if it has been run 1 minute before the current check at correlation.

Is this possible?

Thank you in advance!

Pedro Sánchez [DevOps Advocate] Posted new comment 5th June 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 4th June 2024

Hi Pedro,
I see that this question has been inactive for some time. Do you still need help with this? If you’ve been able to resolve this in the meantime, could you select the answer to indicate that the question is resolved, or provide an answer of your own for the reference of other users?

Pedro Sánchez [DevOps Advocate] commented 5th June 2024

Hi Marieke, we finally execute the automation every time we need and then we are checking the property. I didn’t find the way to check it using correlation script filter. (João’s answer marked)

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
João Severino [SLC] [DevOps Catalyst]13.02K Posted 19th March 2024 1 Comment

Hi Pedro,

Probably the easiest way would be to check that right at the beginning of the script since from there you should be able to access all the info you need.

Alternatively, you could look into leveraging the grouping feature and the collection of events for a period of time to achieve something similar.

Pedro Sánchez [DevOps Advocate] Selected answer as best 5th June 2024
Pedro Sánchez [DevOps Advocate] commented 19th March 2024

Thank you João,
Regarding your fist solution… we want to avoid starting the automation script (we are already working as you described)
About the second one, we need to use the persistent event feature so we can’t use both, persistent and collect (hysteresis in alarm template for the alarm is not valid to avoid “persistent” due to another features in the system).
I’m trying to use the alarm time instead DateTime.Now but I can’t retrieved it (I guess because it still not working)
Anyway, thank you very much for your help!

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