[jboss-user] [jBPM] - Re: How to know who has started a process?
Mauricio Salatino
do-not-reply at jboss.com
Tue Apr 30 10:45:45 EDT 2013
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion
"Re: How to know who has started a process?"
To view the discussion, visit: https://community.jboss.org/message/810968#810968
--------------------------------------------------------------
We are already storing that information inside the jBPM Console NG logs. What we are doing is to use the currently logged user and store it in the process execution logs. Then you can query those logs in order to pick up the information about which user started a process. You can take a look at the ProcessInstanceLog class which already has the place to store the identity of the user that is starting the process:
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bam/src/main/java/org/jbpm/process/audit/ProcessInstanceLog.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bam/src/main/java/org/jbpm/process/audit/ProcessInstanceLog.java
Depending on how you get the currently logged user in your application is how you will fill this attribute.
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/810968#810968]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130430/0738bd69/attachment.html
More information about the jboss-user
mailing list