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 set the functionDVE name?

Solved1.13K views24th January 2022development functions SRM resources
1
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K 21st January 2022 0 Comments

Hi,

I’m creating FunctionResources by code.

On the system, the resource name is filled in with the value I want, for example “My Coffee Machine”
However the functionDVE name is using the Id. for example: “Kitchen.1” “Kitchen” being my Element name that has the function for which I’m making resources.

So how do I get “Kitchen.My Coffee Machine” as functionDVE name?

Here is a snippet of the code I use:

FunctionResource functionResource = new FunctionResource(protocol.DataMinerID, protocol.ElementID)
{
Name = Convert.ToString(row.Profileinstancesname_202),
PoolGUIDs = new List<Guid> { resourcePoolGuid },
FunctionGUID = functionDefinitionGuid,
LinkerTableEntries = new[] { linkerTableEntry },
MaxConcurrency = maxConcurrency,
};

This function resource will eventually get stored via the SrmManagers.ResourceManager.AddOrUpdateResources method.

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 24th January 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
5
Ive Herreman [SLC] [DevOps Enabler]13.59K Posted 21st January 2022 0 Comments

Hi Mieke,

This can be achieved by setting the FunctionName in your constructor.

e.g.

FunctionResource functionResource = new FunctionResource()
{
Name = Convert.ToString(row.Profileinstancesname_202),
PoolGUIDs = new List<Guid> { resourcePoolGuid },
FunctionGUID = functionDefinitionGuid,
LinkerTableEntries = new[] { linkerTableEntry },
MaxConcurrency = maxConcurrency,
FunctionName = “My Coffee Machine”
};

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 24th January 2022
-2
David Pernes [SLC]90 Posted 21st January 2022 0 Comments

Hi Mieke,

I’m unsure if the end goal is to present a nicer description of the resource in the resulting booking Service that holds all your resources but you might want to consider the “Use Node Label as Alias” feature in Booking Manager.

This feature allows your resources to show up in the Booking Service with the very same names present in your Service Definition Node Labels.

If you happen to be building a Kitchen Service Definition and have a node named “My Coffe Machine” you’ll always get an Element with an Alias of “My Coffee Machine” regardless of which Resource you choose.

David Pernes [SLC] Answered question 21st January 2022
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