jeudi 12 octobre 2017

Need help in selecting the right design pattern

We are into the lead business. We capture leads and pass it on to the clients based on some rules. integration to each client very in nature like nature of the API and in some cases, data mapping is also required. We perform the following steps in order to route leads to the client.

  1. Select the client
  2. Check if any client-specific mapping(master data) is required.
  3. Send Lead to nearest available dealer(optional step)
  4. Call client api to send lead
  5. Update push status of the lead to database

Note that some of the steps can be optional.

Which design pattern would be suitable to solve this problem. The motive is to simplify integration to each client.

Aucun commentaire:

Enregistrer un commentaire