留言板
Liferay workflow user notification
Zsolt - Jácint Balogh,修改在8 年前。
Liferay workflow user notification
Junior Member 帖子: 91 加入日期: 13-10-9 最近的帖子
Hi all,
I have a custom entity and the workflow is enabled for that.
When a new item is created a new user notification is created.
When a user with the required role approves the modifications on the object the user notification remains there.
How can I remove the old read user notifications?
Regards,
Zsolt
I have a custom entity and the workflow is enabled for that.
When a new item is created a new user notification is created.
When a user with the required role approves the modifications on the object the user notification remains there.
How can I remove the old read user notifications?
Regards,
Zsolt
Zsolt - Jácint Balogh,修改在8 年前。
RE: Liferay workflow user notification (答复)
Junior Member 帖子: 91 加入日期: 13-10-9 最近的帖子
Issue resolved with dynamic query.
Items removed with:
I think a job would be handy to clear the usernotificationevent table from time to time because that is growing fast.
String searchKey = "%\"entryClassPK\":\"" + resourcePrimKey + "\"%";
DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(UserNotificationEvent.class);
dynamicQuery.add(RestrictionsFactoryUtil.like("payload", searchKey));
Items removed with:
UserNotificationEventLocalServiceUtil.deleteUserNotificationEvents
I think a job would be handy to clear the usernotificationevent table from time to time because that is growing fast.