Forum Discussion
11 Replies
- MarkBirdContributor III
Hi Sandeep
I haven't tried to run data management steps in parallel before, but what you could try is to put each step in it's own sequence and then kick them all off at once using a business rule:
BRApi.Utilities.StartDataMgmtSequence(si, "Sequence 1", Nothing) BRApi.Utilities.StartDataMgmtSequence(si, "Sequence 2", Nothing) BRApi.Utilities.StartDataMgmtSequence(si, "Sequence 3", Nothing) BRApi.Utilities.StartDataMgmtSequence(si, "Sequence 4", Nothing)This should start each of them in the background, so I think it will effectively run them in parallel.
Regards,
Mark
- drgerrowNew Contributor III
This solution seems a little klunky to me for the average user and normal use case, I'm wondering if an easier option might be that the Data Management Sequence could have a checkbox upfront that prompts whether the Steps can be run in parallel or not, similar to how it prompts today what servers to run on.
- BoscoBear21New Contributor
Hi Mark, How would I pass a variable (user selection from a parameter) from the initial Data Management Sequence to the next DM step?
I am running into errors when using the code when trying to pass the Entity and Scenario variables.
Thanks, Stephen
- BoscoBear21New Contributor
- BoscoBear21New Contributor
- MarkBirdContributor III
Hi Stephen
In order to pass parameters to the sequence you need to create a Dictionary (Of String, String). See below:
'Prepare Parameters Dim params As New Dictionary(Of String, String) params.Add("Paramter1Name", "Paramter1Value") params.Add("Paramter2Name2", "Paramter2Value") 'Execute Sequence BRApi.Utilities.StartDataMgmtSequence(si, "DataMgmtSequenceName", params)
Related Content
- 3 years ago
- 1 year ago
- 2 years ago