update metadata through workflow.
I'm trying to update metadata with user id through workflow, when I was run the workflow on the particular that asset metadata should be update with the user id.
Write a workflow to save the name/id of the user on the metadata of the asset on which the workflow was run on in the field- "user id".
I need java code for this.