[jboss-user] [JBoss Portal] - Re: email to admin on user registration and activation confi
emuckenhuber
do-not-reply at jboss.com
Wed Mar 12 12:12:55 EDT 2008
For doing something like this you would need to provide your own jBPM Action and plug it into the process - for example like this:
| public class MyNotificationMailAction implements org.jbpm.graph.def.ActionHandler
| {
| public void execute(ExecutionContext ectx) throws Exception
| {
| // do something
| }
| }
|
and in the process definition you would need to add this action on the transition you want it to be executed.
| ...
| <state name="validate_email">
| <transition name="validated" to="admin_approval">
| <action class="MyNotificationMailAction"/>
| </transition>
| </state>
| ...
|
This would execute the action after the email address is verified.
For further information you can take a look at the jBPM documentation and the current implementation in JBoss Portal.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136019#4136019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136019
More information about the jboss-user
mailing list