Answered

Assign current activity user's username to an attribute.

All I want to do is get the username of the user who is executing the current activity and place it in a DB attribute.

Specifically, when any user of the process wants to add a Note anywhere in the process (at any activity/step) I want to capture their username and place it withh their note in a Notes table in attribute called note_contributor.

I have the used the general Notes capability.

I just want to add this attribute.

photo
0

Dear Dougwscott,

For this scenario you may use Bizagi's Credential object in an expression.

You may use "Me.Case.WorkingCredential" to obtain the information related to the currently logged user.

Best regards,

photo
0

That will work as long as you dont use it in an "On Enter" event. It will return the use that last worked on the case. If you use On Exit or Save it will get the correct user. Of course, I could be missing something as well...

Cheers,

Scott

photo
0

I have the same problem.What is the solution to the problem? Best regards

photo
0

Hello Adrian,

You could also use the Me.Assignees function as well. Create a string attribute for the persons name and use the following code in an on enter event.

<Attribute Name> = Me.Assignees[0].FullName;

Since many assignees can be assigned to a task use this in the On Enter event, this will get you current assignee for the task.

Hope this helps,

Scott

photo
0

Thank you many times Best regards Adrian

photo
0

hi i have the same problem.i want to assign the current user of the task to my attribute,travel agent assigned, but when i use work credential on enter , returns the user of last works on the case.and when i use assignee, in my database return null for that attribute.what should i do?

photo
0

Hi,

I have the same problem. I have a collection of "Notes and messages". I want to keep track of the users (Current logged user. Not case creator, assignee, etc) who add those notes and messages.

In my collection "Notes et messages" I have an attribute <Utilisateur> of type WFUSER. In my table (no inline add), I have a form that performs an expression to get the current user and it's supposed to show the fullname.

So far, I unsuccessfully tried many thing like:

<Utilisateur> = Me.Case.WorkingCredential.UserId;

<Utilisateur.Id> = Me.Case.WorkingCredential.UserId;

<Utilisateur.IdUser> = Me.Case.WorkingCredential.UserId;

Error:BaseException

Unable to process control: 64657744-6783-479f-9a8b-b8ac0fdf6ba1. Control type: Text. Xpath: Utilisateur.fullName. DisplayName: Utilisateur. Unable to process property: VALUE. Unable to find xpath value:{ "xpath": "Utilisateur.fullName", "default": { "rule": "af3376b9-a502-4b57-9e65-916271414393" }}. Cannot perform setxpath for a Parameter/Replicated entity, xpath=TarificationMEV.NotesMessagess[id=110].Utilisateur.fullName value=1

Help please.

Anne-Marie

photo
0

Dear Anne,

Bizagi provides several functions that allow you to find and manipulate information about the current user allocated to a Task. This group of functions all start with the sentence: Me.WorkingCredential . This group of functions are available in Current user information category. workingcredential3_zoom78

For further information: http://help.bizagi.com/bpmsuite/en/index.html?manage_the_user_allocated_to_the_current_task.htm

Regards