Forum Discussion

FabioG's avatar
FabioG
Contributor II
1 day ago

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:

  1. The first launch runs with a POV passed in parameters (let's call it POV-A)
  2. The second launch sets its own POV (let's call it POV-B)
    1. 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

No RepliesBe the first to reply