- This topic has 1 reply, 2 voices, and was last updated 1 year, 8 months ago by Nox.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Forum › What determines the start and end point of a ##[CurrentUser.Id] in a process?
When using ##[CurrentUser.Id] in activities between form steps how do I know which user will be provided by the system with this parameter?
Hi
The id is always set to the “active” user that is currently executing a process or a form activity.
- The user starts a new process instance via the dashboard, which is executed synchronously - the currentuser.id is set to the id of the user
or
- The user starts a new process that has no manual tasks (such as forms). Therefore the whole process and its activities get queued, and the engine executes every activity asynchronously under a generic user name (most of the time, its [email protected])
So it is a question of the current session scope. Everything executed within the user session (blocking/waiting until it’s finished) will have the currentuser.id filled with the executing user, everything else, running in the background, will have a generic engine user id.
In case you need the initial user ids beyond the blocking/synchronous tasks, you can store them in a variable.
I hope this helps.
BR