I have six Business Rules that I want to apply to an Account Record when it is updated.
What is the best practice for applying multiple rules? Do I set up a parallel gateway or apply them in a sequence?
I would think if you are applying multiply Process Business rules to an account record, you would want to use a parallel gateway, instead of sequentially evaluating the PBRs. Each business rule will return a value back to the Process definition. In order to handle that returned value, you must follow the PBR with a gateway. Then, you would converge all the parallel threads after the business rules have processed.
That's my initial thought, but maybe you can provide more information about your PBRs. Does each Process Business Rule have multiple rules in the rules set? Or do you just have 1 rule per rule set?
The BPRs basically copy fields from a "Bill-To" account to the associated "Ship-To" account. Each BPR deals with one field in the record knowing that once a rule fires the BPR stopps looking. Specifically, things like the date the account was opened, the credit status, the credit code, the credit limit, the assigned sales territory code, and the assigned sales rep (record owner). I'd really like to also populate the Team, but that is a known requirement that we may see in Sugar 8.
Originally, I set the six BPRs up out of a single gateway, and tied hem all together before moving to the next step. As I looked at it, I was wondering if it might be a better practice to run the credit status, credit code, and credit limit in serial before converging with date opened, and the two sales rep field updates.
While waiting for the community to respond, I changed the flow to make those three credit related ones run serially - I don't see a difference in the execution speed - it's still slow :-)
From a readability standpoint, maybe they should all run in parallel.
Perhaps I should look at writing a single line that updates all of the fields... That thought just occurred to me - maybe that's the best practice!
Hi Bud Hartley,
In response to, "I'd really like to also populate the Team, but that is a known requirement that we may see in Sugar 8."
From 7.7 Release Notes:
"Configuring team sets in process definitions : Administrators can now append and replace teams via Change Fields and Add Related Record actions."
I had to abort my migration to 7.7 over the Memorial Day weekend after I found Defect #75853 I'm waiting for 7.7.2 so I can make that move. It is GREAT to know that Teams can be altered starting with 7.7 I'm hoping we see the ability to use Teams in the Business Process Rules soon.
Retrieving data ...