<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
How send mail to "starter" user
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/sebastian.s">Sebastian Schneider</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/537825#537825">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>It's more an issue of jBPM than of the console. But you're right the console would need a change, too. However jBPM's API is even already prepared if you take a look at the javadocs.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-external-small" href="http://docs.jboss.org/jbpm/v4/javadocs/org/jbpm/api/ProcessEngine.html" target="_blank">http://docs.jboss.org/jbpm/v4/javadocs/org/jbpm/api/ProcessEngine.html</a></p><p>Take a look at the method called setAuthenticatedUserId(java.lang.String authenticatedUserId</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1. the console has knowledge of the authenciated user (he had to authenciate to access the console)</p><p>2. the console needs to call this method each time the user invokes a method on the API (like starting a process)  to pass on the information</p><p>3. jBPM needs to store the information somewhere (maybe in a process variable but rather not) to expose it to the process and user</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>IMHO it should be stored in the history data together with the information about the start event and it should be queryable via the API.</p><p>It could be exposed via the execution context to the process.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The issue is more or less an issue bothering people who use the included console. People using their own GUIs just store the name of the process starter in a process variable and use this variable later on - for example to do calucations, assign a task to him or just refer to him. Setting the starter via the API would be cleaner.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>The issue (</span><a class="jive-link-external-small" href="https://jira.jboss.org/jira/browse/JBPM-2482" target="_blank">https://jira.jboss.org/jira/browse/JBPM-2482</a><span>) mentions the place in the source code which is affected. Whenever a new process instance is created the supplied user needs to be stored somewhere. Right now the code is not dealing with the supplied user name.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This issue is related or almost the same. I think it refers to the part of the API which I mentioned:</p><p><a class="jive-link-external-small" href="https://jira.jboss.org/jira/browse/JBPM-2417" target="_blank">https://jira.jboss.org/jira/browse/JBPM-2417</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>Because of this issue </span><a class="jive-link-external-small" href="https://jira.jboss.org/jira/browse/JBPM-2416" target="_blank">https://jira.jboss.org/jira/browse/JBPM-2416</a><span> using a process variable is not a good either. This issue deals with audit capabilities regarding method invokations on the API. Sometimes not only the data coming from tasks in the process is interesting but also who has started, stopped or affected a process in some way.</span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/537825#537825">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>