On 21/05/2012 10:56, Bob Lannoy wrote:
Exactly: if you take a look at [1] (towards the end), you'll see that the
log messages above mean that no executable NotificationTask was found.
NotificationTask objects are created by NotificationManager.createTasks()
which is in turn invoked by UserController[2]'s methods and SyncJob [3],
i.e. evey time users get created / updated / modified / deleted in Syncope.
I looked into the code and now I did another test.
I've found that the notification works if I attach a notification to
"createApproval". That's because the create method looks for that on
calling the NotificationManager.
What I wanted is use the notification system to send out an email when
the generateToken state is passed. In the workflow I see the state
"created" just after and the user is in that state.
If I understand you correctly I need to call the NotificationManager
myself to create a task which will then be picked up or should the
workflow create the tasks on each transition?
Bob,
as I can see from UserController's source code, some methods call
NotificationManager.createTasks() and some methods don't: in you case,
which is the UserController method invoked when users move from
"createApproval" to "active"?
Regards.
--
Francesco Chicchiriccò
Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/