Please help describe how to use the BPM or DMN to describe an MLM business where
- Each sales can gain commission on each sale. When they hit certain targets, their status and commission changes
- When they recruit a new sales to the company, they get a commission
- When that new recruit performs a sale, their ‘upstream’ gets 3% of the sale.
3b. If the sales member recruits 5 members AND the new recruit performs a sale they get 4%
- If the new recruit recruits a new sales, and the new sales performs a sale, the level 1 gets 1% and the level 2 upstream gets 3%
4b if the level 1recruited 5 members, and the level 3 performs a sale, level 1 gets 1.5% and the level 2 gets 3%.
This goes on for 7 levels, level 1 is the top upstream level 7 is the lowest downstream
There are other complications and conditions as well, but too long to describe here.
I need help on 3 and 4.
Can camunda do this, if so, please explain the setup including business logic, engine rules that we should apply.