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
  • Blog
  • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

[SRM] – How to add capabilities to generated contributing resource

Solved1.93K views17th July 2023development SRM SRM resources
2
Mieke Dryepondt [SLC] [DevOps Advocate]3.58K 21st February 2022 0 Comments

We would like to search specific contributing resources. To do this we like to use the same mechanism as to search (eligible) normal resources by mapping capabilities.

This means we need to add capabilities + set the value to the contributing resource.

How can this be done?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 17th July 2023

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
José Silva [SLC] [DevOps Catalyst]1.32K Posted 26th June 2023 2 Comments

Hi Mieke,
I attempted to implement your solution, but I encountered a problem. The reservation takes a few seconds to be created, and as a result, the script that attempts to retrieve the reservation and set the capability is failing. I'm observing the message "Reservation not found for Reservation ID..." in the information events.

Therefore, this solution is not ideal. Additionally, it introduces complexity as it requires adding another script in the service definition.

I have implemented a better solution. After creating a reservation for my reusable resource (and before creating the reservation of my regular booking), I can retrieve the resource and update it using the following code:

// Generate the reservation.
var rxReusableReservation = srmInteractions.CreateReservation(rxReusable) as ServiceReservationInstance;

// Get the contributing resource.
if (rxReusableReservation.TryGetContributingResource(out Resource contributingResource))
{
AddOrUpdateCapabilityOnResource(contributingResource, resourceCapability);
}

José Silva [SLC] [DevOps Catalyst] Posted new comment 26th June 2023
Mieke Dryepondt [SLC] [DevOps Advocate] commented 26th June 2023

Please add the minimum DMA version + minimum SRM version where these methods are available.

José Silva [SLC] [DevOps Catalyst] commented 26th June 2023

Hi Mieke,
I’m using SRM package version 1.2.28 and my DMA version is 10.3.5

You are viewing 1 out of 4 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin