Our team is building a insurance suite digital web application for customer to purchase policies. We have state and policy coverage related requirements where
- we need to dynamically ask customer questions based on the state or policy coverage
- we need to validate customer input based on state or policy coverage rules
- we need to dynamically transform/update/set the the data object values based on customer input during the workflow
Currently team is hardcoding all this logic in the front end NextJS application to handle the above scenarios and are concerned on the maintenance and scalability with more app deployments in the new state.
We are looking to into possibility of building json driven rules per state or coverage which shall retrieved by web app during the workflow and then with help of a framework which shall read json config and the customer input data to address the above requirements.
Any suggestions are highly appreciated