Erpnext to extract the field value and validate status

How to validate the status has been changed and extract doctype few entered fieldvalues and display it based on workflow using python