On 21/05/2012 09:45, Bob Lannoy wrote:
Hi,

I've looked some more into the notification issues I'm having.
I created a new user using the modified workflow where the generateToken class 
is used.
As an admin I approved the first step and see the user is in the "created" 
state.
There is a notification attached to this state for users assigned in a certain 
role.
I can find the users in About state using users->search.

In the core log I see:
[...]
09:38:04.811 DEBUG org.apache.syncope.core.scheduling.NotificationJob
- Waking up...
09:38:04.812 DEBUG org.apache.syncope.core.scheduling.NotificationJob
- Sleeping again...
[...]
It seems that the job is started but doesn't do anything.

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.

Any next steps to investigate?

I'd look into the database (table Task) to check if NotificationTask entries get actually inserted when matching users are created.

Hope this helps.

Regards.

[1] https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/NotificationJob.java [2] https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/UserController.java [3] https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java

--
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply via email to