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 for a bunch of different DataUnitPK, I'd like to run them in parallel.
Unfortunately it doesn't work. It seems to me that:
- The first launch runs with a POV passed in parameters (let's call it POV-A)
- The second launch sets its own POV (let's call it POV-B)
- if the first launch is still running - and that's natural for parallel execution - every reference to api object seems broken, since it refers now to POV-B
Does someone was able to parallelize the above mentioned method ?
Thanks in advance for Your help
Regards
FabioG
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