Search in sources :

Example 1 with WorkItemPendingMessage

use of org.eclipse.vorto.repository.notification.message.WorkItemPendingMessage in project vorto by eclipse.

the class PendingApprovalNotification method execute.

@Override
public void execute(ModelInfo model, IUserContext user, Map<String, Object> context) {
    LOGGER.debug("Executing workflow function: " + this.getClass());
    User account = accountService.getUser(user.getUsername());
    if (account != null) {
        notificationService.sendNotification(new WorkItemPendingMessage(account, model));
    }
}
Also used : User(org.eclipse.vorto.repository.domain.User) WorkItemPendingMessage(org.eclipse.vorto.repository.notification.message.WorkItemPendingMessage)

Aggregations

User (org.eclipse.vorto.repository.domain.User)1 WorkItemPendingMessage (org.eclipse.vorto.repository.notification.message.WorkItemPendingMessage)1