[Yanel-dev] Workflow state change notifications
Michael Wechner
michael.wechner at wyona.com
Wed Mar 16 14:00:00 CET 2011
Hi
I have recently implemented a simple EmailAction in order to send
notifications re workflow transitions:
src/impl/java/org/wyona/yanel/impl/workflow/EmailAction.java
whereas this class can be used within an email as follows, e.g.
<transition id="submit" from="draft" to="review">
<!-- INFO: Do not set this role condition, because otherwise user
anonymous cannot submit meeting for review
<condition
class="org.wyona.yanel.impl.workflow.RoleCondition">write</condition>
-->
<action
class="org.imstat.yanel.impl.resources.meetingpage.EmailAction">michael.wechner at wyona.com,
michi at wyona.com</action>
and customized by overwriting the methods:
getSenderAddress(...)
getSubject(...)
getText(...)
whereas in the future one could also make these methods configurable (in
particular the sender/from address), but in many cases the subject and
body/text are often very dynamic and hence I think it makes sense to
have them implemented with Java.
Cheers
Michael
More information about the Yanel-development
mailing list