Activity definition implementation and create API