Posted: 7 Jul 2016 14:23 EDT Last activity: 6 Mar 2017 3:14 EST
Multi-threading or Parallel Processing in Pega 7 using CaseType
We have a requirement to call 3 processes in parallel. To achieve this, we have configured case type rule to have 3 steps in a stage with step behavior as "Start upon Stage entry". Our expectation is all of these 3 steps should be started in parallel at the nth second. However, they are kickstarted only in a sequential manner. We have also enabled Multi-threading at prconfig.xml as per below article:
Creating cases have nothing to do with threads. "Parallel" in case type, used is funtional terminology not technical. Technically, they'll be sequential. It doesn't matter if cases are created sequentially. Who wants to have the cases created at the same time? Is that the requirement? If yes, it's absurd. I don't know why someone would come up with this kind of requirement. If they want same timestamp on three cases, just update pxCreateDateTime with same date time.
Amanullah what it looks like you need would be a sub case to setup the product. Yould could easily do that at the first flow in the Account Opening stage. If you needed to wait to continue to the next flow or stage you could add the wait shape to make sure all child cases have completed.