The application relates to a compound of Formula (I):or a pharmaceutically acceptable salt thereof, tautomer, prodrug, solvate, metabolite, polymorph, analog or derivative thereof, which modulates the activity of BTK, a pharmaceutical composition comprising the compound of Formula (I), and a method of treating or preventing a disease in which BTK plays a role.本發明關於式(I)化合物:或其醫藥上可接受之鹽、互變異構物、前藥、溶劑合物、代謝物、多晶形物、其類似物或衍生物,其調節BTK活性,且關於包含式(I)化合物之醫藥組成物及治療或預防疾病之方法,其中,在該疾病中BTK扮演一角色。