<!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="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss 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;">
jbpm 5.2 on JBoss 6 - User Registration "Quest"
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/mark77">Markus Bauer</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/648359#648359">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi all,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am very new to jBPM and am kind of stuck in multiple places. I could really need some hints or links to relevant tutorials or so. So here's what I have and need:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The environment is jbpm 5.2 on JBoss 6, the processes should be delivered in BPMN2. My first target is a user registration form. The idea is to have a user fill a JSF2 form containing his chosen username, password and email address (and captcha, but that already works). I now need to store these values to an external database and send (via the jBPM process) a confirmation email to the user. The user clicks a link inside the email and can continue his registration process by giving his address etc. </p><p>Now these entered data is again stored in the external database and from now on, the user should be able to log in with his credentials. Further, now an administrator (whose credentials are also stored in the external database) has to log in and approve the account of the newly registered user, then the user is "fully qualified" and can e.g. regiister new services.</p><p>The whole application is a maven2 project and jBPM should not be installed at the server but be bundled with the application (thus using LocalTasks - I think I got this running).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For assigning the tasks to the user and administrator I think I found the solution to use an own usergroups.callback. But when I want to create the process and start the task, I get an SQL error because the foreign key to the organizationentity table is broken. (Of course it is, because users and all this stuff is managed externally and is not forwarded to the jBPM database).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Next question is, how can I generate this email and send it to the user ? Do I have to write a task handler for sending this email and inserting the link and user's email address ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>How can I get back from the confirmation-endpoint (where the emailed link points to) back to the task to complete it ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And finally - how can I include a ... whatever.... that automatically removes the pending confirmation tasks and assiciated data, if the user does not click the confirmation link within 3 days ?</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/648359#648359">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>