Lock & Unlock using Page api

Avatar

Avatar

ganthimathir591

Avatar

ganthimathir591

ganthimathir591

08-04-2019

I am trying to lock and unlock a page in workflow using page.lock() & page.unlock(); I could lock the page in first workflow, but in the next workflow ,while unlocking the same page it throws exception saying, "Unable to unlock Page". page.canUnlock() returns true. Did anyone use this successfully?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

08-04-2019

check if this helps -

AEM 6.3 Custom Lock - Lock payload by logged in user

Re: AEM 6.2 Lock Payload workflow step behaving as NoOp

**Only lock acquiring user or admin can unlock the page.

Answers (1)

Answers (1)

Avatar

Avatar

ganthimathir591

Avatar

ganthimathir591

ganthimathir591

11-04-2019

Thank you Gaurav for sharing these links. It resolved my issue.