JBoss Community

A question about authenticatedUserId

created by ly km in jBPM - View the full discussion

Using jbpm4.4

I can see the authenticatedUserId is used for record the current user. And actually, it will saved into a threadlocal thread.

So, I was confused about if there are two users log in, first A login and (processEngine.setauthenticatedUserId(A) start a instance, And so do B.

What will be happen if I read current userId?

 

The question can be simplized to that there are two thread to call jbpm's

processEngine.setauthenticatedUserId(A), who are reponsiblie for the current user id can be read correctly, the jbpm or program?

 


Reply to this message by going to Community

Start a new discussion in jBPM at Community