We are trying add some validation to the BPMN model to adhere to BPMN standards and to avoid using bad practices while designing the BPMN model. We are not sure on which way to implement the same. We would like to know some of the approaches for the custom bpmn validation. We would like to warn for any bad practices. Please advise on a better solution for this problem. It will be really helpful if any code sample is provided for the same.