since ‎06-02-2019
‎10-12-2019
lir
Level 2
Re: Getting the list of Notifications inbox items lir - Adobe Experience Manager
Thank you for the reply, that looks promising!I will go through it and let you know.Thanks again
7294
Views
0
Likes
1
Replies
Re: Getting the list of Notifications inbox items lir - Adobe Experience Manager
Hi guys,I am interested on the InboxItem-s (WorkItem-s) that belong to each and every user (who participates in a number of workflows), so I don't see how the suggestion above can help.My final goal is that once a day, each and every user receive a reminder email, that lists all the pages/assets/etc they are expected to approve/disapprove in AEM.So my code has to either:1- impersonate each and every user, one by one, read their InboxItem-s and go from there.This I think is straightforward, but s...
7294
Views
0
Likes
0
Replies
Re: Getting the list of Notifications inbox items lir - Adobe Experience Manager
No, that makes no sense. We are talking server side code here.
7294
Views
0
Likes
1
Replies
Re: Getting the list of Notifications inbox items lir - Adobe Experience Manager
My code is an OSGI bundle service.I got a reference to a user instance, and I need to pull the items in this user's inbox.
7294
Views
0
Likes
3
Replies
Getting the list of Notifications inbox items lir - Adobe Experience Manager
Hi,I need to programmatically pull the list of AEM inbox notifications of a user, with the purpose of sending them a reminder (via email) of the workflow steps waiting for them to take action on. Can someone please send some hints, or sample code on how to get the list of inbox items.Thank you
7840
Views
0
Likes
12
Replies
Re: Approval workflow via parallel AND branches lir - Adobe Experience Manager
Yes, you are correct.Thank you
409
Views
0
Likes
0
Answers
Re: Approval workflow via parallel AND branches lir - Adobe Experience Manager
Makes sense, I will try, I've probably been overthinking it.Thank you
410
Views
0
Likes
0
Answers
Approval workflow via parallel AND branches lir - Adobe Experience Manager
Hi,I'm building a workflow where the continuation of the flow requires parallel approval from two user groups.I have created a two branch AND split, and the flow should continue down, only if both branches go through the "approve" step.When one branch "approval" step is completed, I need to check whether the other branche's "approval" step has already been completed,and only then advance to the next step down the flow.Can someone please advise on how to best perform this check in API code?Thank ...
651
Views
0
Likes
3
Answers and Comments
Re: Unlocking a page with system user lir - Adobe Experience Manager
That might be the case for my system user, but it shouldn't happen for admin. It does though
1047
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
That was it! It works now with admin AND with the system user for which I set "jcr:all"I will reduce the privileges to only what's required of unlocking and that would be it.It is strange why page.canUnlock() would return false, but no harm now that I know.Thank you
1044
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Interesting!, I'll try that and let you know
1045
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
In any case the question remains:Shouldn't the code below always work on an admin session?According to AEM docs it should, but it does not!Resource pageResource = adminResourceResolver.getResource(pagePath);Page page = pageResource.adaptTo(Page.class);if (page.canUnlock()) { // should always return true on admin session page.unlock();}
1048
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
I can easily use the same "system user" to lock and then later unlock the page without even the need of impersonation, but that would not satisfy this requirement:- The workflow initiator should be able to manually unlock the page at any time, no matter the state of the workflow. (he can't, unless my workflow code locks the page under his session)I expected that AEM had a clear straightforward implementation of the page locking mechanism, so that developers did not need to dig into the inner wor...
1051
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Hi,I checked: my system user already has "jcr:lockManagement" privileges.I even gave him "jcr:all" but still he could not unlock the page.Then for the sake of "proof of concept" I tried unlocking by making use of "admin" user via the deprecated :getAdministrativeResourceResolver(adminAuthenticationInfo)as Gaurav hinted.Even the admin user could not unlock!Can someone please try unlocking via a "system user" or admin (through code) in 6.2.On the other hand, me and my colleagues have noticed that ...
1047
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Where can I grant "jcr:lockManagement" to my system user and on my specific content path?I see no way of doing it in /useradmin Permissions tab of my user.Thanks again
1048
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
I will, try but not quite optimistic because as a stated earlier:- before asking the question in this forum, I made a quick attempt using the deprecated getAdministrativeResourceResolver(null); to get an admin session (who according to documentation should be able to unlock everything), but unlocking failed because page.canUnlock() returned false. Even under admin session!!?
1050
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Hi, I tested and confirmed that a "system user" cannot unlock a page unless he owns the lock, no matter the permissions I give to him.He owns the lock only if he did the locking, in which case he can unlock.We are using version 6.2This is a problem!! can you please adviseThanks
1049
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Thank you for the detailed reply!A few things again about my case:- the user who locks the page is the workflow initiator, NOT a system user- my code needs to unlock the pages, no matter who did lock them.- I'm not sure if in your example, you mapped a different user when unlocking under your "datapersist" subServiceName- before asking the question in this forum, I made a quick attempt using the deprecated getAdministrativeResourceResolver(null); to get an admin session (who according to documen...
1045
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
1- an AEM user initiates my custom workflow on a page2- my WorkflowProcess implementation code, locks the page under the initiator session. This means that the initiator owns the lock of that page.3- on a further down workflow step, my code needs to unlock the page, but the AEM user completing the step is not the same user as the one who owns the lock.Therefore I have to manually (not programmatically) already have created a system user with permissions to unlock ANY page, AND have my code unloc...
1045
Views
1
Like
0
Answers
Re: Unlocking a page with system user lir - Adobe Experience Manager
Thanks for the reply,Can't I use the unlock() method of com.day.cq.wcm.api.Page ?I already use Page's lock() method to lock it.
1042
Views
1
Like
0
Answers
Unlocking a page with system user lir - Adobe Experience Manager
Hi,While coding a WorkflowProcess implementation, I need to create a "system user" who can unlock pages.Pages are locked through a WorkflowSession on a previous workflow step.How can I give the "system user" the permissions to unlock pages?Obviously I don't what to use an admin session, and I'm wondering how can I grant unlock permissions in AEM Security Permissions tab!Thank you,Lir
3143
Views
0
Likes
25
Answers and Comments
Likes from