[jboss-user] [JBoss Seam] - Re: JPDL: Multiple actions on transition or page?

patrickr do-not-reply at jboss.com
Thu Aug 23 18:48:05 EDT 2007


So, should I add a feature request / bug issue?

To clarify my motivation behind this, please refer to the following code:

<transition name="next" to="End">
  | 		<action expression="#{database.persist(order)}" />
  | 		<action expression="#{mailer.sendConfirmation(order, user)}" />
  | 	</transition>

Consider the mailer service might have been added to the project at a later time. I can plug this component in without writing or compiling code. It is loosly coupled and is not transparent like aop approaches (which is what I want, because it's not a cross cutting concern and developer can see / debug this component easily...) - not cool? ;-)

Regards
Patrick

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077571#4077571

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077571



More information about the jboss-user mailing list