Improve use of Workflow System Variables
1) Create a workflow in Workflow Designer.
2) Specify a trigger (it doesn’t matter what it is).
3) Insert an ASSIGN TO activity and assign the task to user ID "A".
4) Insert an ASSIGN DATA activity and set a file cabinet index field to the Workflow System Variable “Assigned to”.
The index field should now contain the user ID "A" assigned in step 3. However, the index field is empty.
5) Insert a TASK activity. In the Decisions tab, Assign to sub-tab, assign the next user to "B".
6) Insert an ASSIGN DATA activity and set the same file cabinet index field to the Workflow System Variable “Assigned to”.
7) End the workflow.
The index field should now contain the user ID "B" assigned in step 5. However, the index field contains the value "A".
Therefore, the Workflow System Variable “Assigned to” gets set/updated only in a TASK activity not the ASSIGN TO activity.
By the way, the same occurs with the "Current User" Workflow System Variable.
To me this is a bug, not a feature request but DocuWare keeps closing our tickets.
This should be somewhat solved with version 6.9. Both issues (after step 4 and after step 7) could not be reproduced by me. We know, that CurrentUser has some drawbacks, but some customers use it like it is and if we change the behavior, it will break their workflows. Recommendation for getting the user of the currently opened task is to use the variable “TaskUser” which is new with version 6.9.