Index: /main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py	(revision 6317)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py	(revision 6318)
@@ -2,4 +2,5 @@
 """
 import grok
+from datetime import datetime
 from hurry.workflow.workflow import (
     Transition, Workflow, WorkflowVersions, WorkflowInfo, WorkflowState,
@@ -7,5 +8,5 @@
 from hurry.workflow.interfaces import (
     IWorkflow, IWorkflowState, IWorkflowInfo, IWorkflowVersions,
-    InvalidTransitionError)
+    InvalidTransitionError, IWorkflowTransitionEvent)
 from waeup.sirp.applicants.interfaces import IApplicantBaseData
 
@@ -153,2 +154,25 @@
     grok.context(IApplicantBaseData)
     grok.provides(IWorkflowInfo)
+
+
+@grok.subscribe(IApplicantBaseData, IWorkflowTransitionEvent)
+def handle_applicant_transition_event(obj, event):
+    """Append message to applicant when transition happened.
+    """
+    timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
+    comment = event.comment or '(no comment)'
+    # XXX: `messages` is meta data which shouldn't really be part of
+    #      the Applicant class. Furthermore we should not store HTML
+    #      code but simple messages. This has to be cleaned up
+    #      further. For now we replace the redundant code in browser
+    #      mod.  As we're here: one could use permissions and similar
+    #      to finetune transitions instead of doing that manually in
+    #      UI stuff.
+    msg = '%s - %s to %s: %s: %s' % (
+        timestamp, event.source, event.destination, event.transition.title,
+        comment)
+    msgs = getattr(obj, 'messages', None)
+    if msgs != '':
+        msgs += '<br />'
+    obj.messages += msg
+    return
