09-30-2013 03:00 PM
@Override
public void notify(DelegateTask task) {
System.out.println("Event Received : " + task.getEventName());
List<String> approvers = new ArrayList<String>();
Set<IdentityLink> identities = task.getCandidates();
for (IdentityLink identity :identities){
approvers.add(identity.getUserId());
}
List<Object> loggedinUsers = sessionRegistry.getAllPrincipals();
for (Object loggedinUser : loggedinUsers) {
if (loggedinUser instanceof MyUserDetails) {
MyUserDetails myUser = (MyUserDetails) loggedinUser;
if (approvers.contains(myUser.getUsername())) {
System.out.println("Send refresh to :" + myUser.getUsername());
// Notification Logic…..
}
}
}
}
allTasks = taskService.createTaskQuery().taskCandidateUser(userId).list();
10-02-2013 05:45 AM
10-03-2013 08:45 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.