How to code Update Value in workflow

please check the reference of before_save.

Another reference: