Setting a variable in PDM workflow transition to track user
Posted: Tue Apr 13, 2021 1:01 pm
I have a workflow set up for drawing files and in it there's a transition from the "Detailing" state to the "Drawing To Be Checked" state through a transition called "Submit for Check/Approve".
In the transition, I currently have a 'Set Variable' Action, set to 'Run for files' which is supposed to set the text variable 'CheckRequestor' that I just made to %user% (ie., the user id of the person who triggered the transition).
However, whenever I trigger the transition it seems that the variable does not get set for the file. I have a column view that shows the variable remains blank. The objective for this is to be able to notify the requestor if the check is rejected and sent back and/or if the file gets approved, which I'm using a conditional notification for in a later transition. But it seems that since no value is being applied to the variable, no notification is being sent (I'm actually not 100% sure it would work if the variable was set, but the current issue seems to be just getting the variable set).
Any ideas as to why I can't seem to get the variable set to the user id?
Thanks
In the transition, I currently have a 'Set Variable' Action, set to 'Run for files' which is supposed to set the text variable 'CheckRequestor' that I just made to %user% (ie., the user id of the person who triggered the transition).
However, whenever I trigger the transition it seems that the variable does not get set for the file. I have a column view that shows the variable remains blank. The objective for this is to be able to notify the requestor if the check is rejected and sent back and/or if the file gets approved, which I'm using a conditional notification for in a later transition. But it seems that since no value is being applied to the variable, no notification is being sent (I'm actually not 100% sure it would work if the variable was set, but the current issue seems to be just getting the variable set).
Any ideas as to why I can't seem to get the variable set to the user id?
Thanks