[jboss-user] [jBPM] - jbpm 5.2 on JBoss 6 - User Registration "Quest"

Markus Bauer do-not-reply at jboss.com
Tue Jan 24 05:33:21 EST 2012


Markus Bauer [https://community.jboss.org/people/mark77] created the discussion

"jbpm 5.2 on JBoss 6 - User Registration "Quest""

To view the discussion, visit: https://community.jboss.org/message/648359#648359

--------------------------------------------------------------
Hi all,

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:

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. 
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.
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).

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).

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 ?

How can I get back from the confirmation-endpoint (where the emailed link points to) back to the task to complete it ?

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 ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/648359#648359]

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/20120124/2c31215b/attachment.html 


More information about the jboss-user mailing list