Forum Discussion
FabioG
4 months agoContributor II
ExecuteCustomCalculateBusinessRule in parallel
Hi all, so I'm running a Finance Business Rule through BRApi's ExecuteCustomCalculateBusinessRule method, passing a POV through its nameValuePairs parameter. Since I need to run it from a WorkSpace...
- 4 months ago
Hi db_pdx ,
thanks for your answer.
Your suggestion is good (actually I don't see other ways, at the moment), but I was looking for something less "tricky". I mean, I am looking for a way to run them directly from code, without having to implement Data Managements or other "external" (from a code perspective) stuff.
Anyway, thanks a lot for Your suggestion, I'll definitely try it !
FabioG
sameburn
OneStream Employee
4 months agoHi FabioG
I have achieved something similar before. In my use case I setup my Parallel.ForEach in an extensibility rule (where i was looping through datatable rows e.g. my source) and used the BRApi below to call my Finance Rule from the Extensibility rule (I passed in my variables using nameValuePairs dictionary)
BRApi.Finance.Calculate.ExecuteCustomCalculateBusinessRule(si, brName, functionName, nameValuePairs, timeType);
In my case it got more complicated as I was hitting the same data unit > once (so i needed some kind of balancing buffer)
But maybe this helps :)
Sam
Related Content
- 3 years ago
- 3 years ago