We are happy to announce the new Windchill Customization board! Learn more.
how to change the value of a document attribute in a workflow
Below post has a couple of methods
Re: How to update the Softtype attribute and OOTB attribute of WTDocument