AEM 6.2 Lock Payload workflow step behaving as NoOp | Community
Skip to main content
Level 2
July 12, 2017
Solved

AEM 6.2 Lock Payload workflow step behaving as NoOp

  • July 12, 2017
  • 15 replies
  • 9034 views

I've got a custom workflow with a "Lock Payload Process" step but it doesn't seem to function as expected. I get the following in the logs:

com.day.cq.workflow.impl.process.LockProcess Locking is not currently enabled.  This is a No-Op

I've tried setting the "cq.workflow.config.allow.locking" property of the "Adobe Granite Workflow Configuration Service" but that doesn't seem to fix it... Moreover, I'm able to lock the page via Touch UI just fine so locking is working on the repository.

Thanks for your help!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MC_Stuff

Hi Mick,

Not on granite but at  CQWorkflowService configure  cq.workflow.service.allow.locking

Thanks,

15 replies

Level 3
November 19, 2018

Hello,

I am using a custom workflow process step to lock and unlock the page. But when I lock the page with a specific user, I am unable to unlock it until unless I login as the admin. Is there anyway that I can use the custom step to lock it through the workflow and the initiator(the person who starts the workflow) must be able to unlock the page.

Regarding the unlock I am not able to do it at all. I am using the page.unlock() same as page.lock().

Can some one please help me out on this.

arunpatidar
Community Advisor
Community Advisor
November 19, 2018

Hi,

Only lock acquiring user or admin can unlock the page.

I would suggest to unlock page using either in different workflow or same workflow using another process step. I used OOTB lock and unlock steps to achieve same.

Arun Patidar
Level 3
November 19, 2018

@Arunpatidar thanks for the response. Here we have a specific use case where an initiator can  unlock the page manually. So we need to use custom workflow process step not the OOTB Lock and Unlock steps. While doing this if the initiator is trying to unlock the page it is saying to reach out to admin to get the page unlock. can we achieve the same functionality as Only lock acquiring user or admin can unlock the page??????? by using custom process step

I am using the different process step to unlock the page by using page.unlock() but this is not working where when used page.lock() is working fine. This is a custom process step.

Level 3
November 20, 2018

Hello All,

I tried both OOTB workflow process and custom workflow process to Lock and Unlock the page. The page is getting locked and unlocked using service user but my requirement is this lock and unlock should be acquired by author/Initiator. Can someone help me out on this to achieve this functionality.

arunpatidar
Community Advisor
Community Advisor
November 21, 2018