After update - save data to another entity

I am updating a task record, I want to save additional information in another table when updating.

module.exports = {
  lifecycles: {
    afterUpdate(result, params, data) {
     // todo code save Hello world to table notification
    },
   
  },
};