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 read selected data from booking wizard in profileLoadScript?

Solved1.69K views10th December 2020process automation SRM
2
Mieke Dryepondt [SLC] [DevOps Advocate]3.60K 10th December 2020 0 Comments

How to get the data written by user in wizard in profile load script of an activity running in Process Automation.

The Default instance has the following data:

In the profile load I would like to get the "Stop" value as event type as this is what I selected in the wizard.

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 10th December 2020

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Robin Meurisse [SLC] [DevOps Enabler]1.15K Posted 10th December 2020 3 Comments

Hi,
As the input is coming from the Booking wizard rather then the passed volatile profile instances, there is another way to read the actual values from the booking wizard:

1. Your automation script should receive as input 3 values: "Info", "ProfileInstance" and "ProcessInfo".
2. Deserialize the input "Info" to have a SrmResourceConfigurationInfo object and the input "ProfileInstance" to have a Dictionary containing all the profile instances.
3. Create a new instance of ProfileParameterEntryHelper(Engine engine) and collect all the parameters with .GetNodeProfileParameterEntries().

I've included a small code snipped that should let you receive the list of parameters with the values you've specified in the booking wizard.

ScriptParam paramInfo = engine.GetScriptParam("Info");
ScriptParam paramProfileInstance = engine.GetScriptParam("ProfileInstance");
ScriptParam paramProcessInfo = engine.GetScriptParam("ProcessInfo");

var srmInfo = JsonConvert.DeserializeObject<SrmResourceConfigurationInfo>(paramInfo.Value);
if (srmInfo == null)
{
throw new ScriptInputValueNullException("SRM Info is null or is not in the correct format (Serialize SrmResourceConfigurationInfo to JSON).");
}

var srmNodeProfileConfiguration = JsonConvert.DeserializeObject<Dictionary<string, Guid>>(paramProfileInstance.Value);
if (srmNodeProfileConfiguration == null || !srmNodeProfileConfiguration.Any())
{
throw new ScriptInputValueNullException("ProfileInstance is null or is not in the correct format (Serialize Dictionary<string, string> to JSON).");
}

var helper = new ProfileParameterEntryHelper(engine);
List<ProfileParameterEntry> parameters = helper.GetNodeProfileParameterEntries(srmInfo, new NodeProfileConfiguration(srmNodeProfileConfiguration), true).ToList();

Robin Meurisse [SLC] [DevOps Enabler] Posted new comment 10th December 2020
Mieke Dryepondt [SLC] [DevOps Advocate] commented 10th December 2020

Hello Robin,
I’ve tried this, but it gets the default value that is filled in the profile instance definition. In this example = “Start”
I’ve also tried this witht he same result:
helper.GetNodeSrmParametersConfiguration(configurationInfo, nodeProfileConfiguration).ToList();

João Severino [SLC] [DevOps Catalyst] commented 10th December 2020

Hi Mieke,
Process Automation behaves slightly different from “regular” SRM and I do believe you need to always use the “By Reference” option.
Which means you must have a different Profile Instance for your “Stop” value.

Robin Meurisse [SLC] [DevOps Enabler] commented 10th December 2020

After a quick test, Process automation indeed takes the reference value. The solution then would be to create a new Profile Instance with the new value like João mentioned.
My code snippet can then be ignored as it not applicable for process automation.

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