Workflow problem

Hi, I have an issue with my workflow… For one document, I have two different persons who can approve it and I want the name of the person who approved to show in order to track it.

Thus, I created two different workflow states : “Approved by X” (and wrote only allow edit by X) and “Approved by Y” (only allow edit by Y). However, even if the roles of the users seem correct, the state of the document is always “Approved by X” even if Y approved it…

Somebody know why this happens ?

Can you share screenshots of your Workflow?

Sure, here it is