I’m trying to get the current User ID from within the Edit Expression. Is there any API call that will return to me the user login ID from the session? I know you can do this via the UI Editor but how about within the Edit Expression?
I use the Below Script to assign a task to a Specific User. This script is added to the Actor filter Section but you could use the Same inside the Edit Expression section. This script returns a User id .
I use the API …/API/system/session/ to get the username and store it inside a variable called demandReviewer .
you could check out the identity API for more information.
Thanks for the reply. I’m aware of that API which can be called from the UI Editor but in my case I don’t have a page because it’s a service task not a human task. I can only work within the script editor with the available classes/packages. How can I achieve the same result?
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.