FabioG
1 day 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 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