The present invention relates to compounds useful as inhibitors of protein kinases. The invention also provides pharmaceutically acceptable compositions comprising those compounds, the methods of using the aforementioned compounds, and compounds in the treatment of various diseases, conditions, and disorders. The invention also provides processes for preparing compounds of the invention.