Not allow Workflow creation while page is blocked

Avatar

Avatar

ignacio_mancill

Avatar

ignacio_mancill

ignacio_mancill

26-11-2018

Hi there,

I'm doing a custom implementation of a workflow. The request is when a user has blocked the page where he/she is working the creation of a workflow should not be able.

Our workflow process needs to block that page, but it could not be blocked while is already blocked by other user.

Do you guys know any approach on how we can handle this?

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

861

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

861
Arun_Patidar
MVP

26-11-2018

Hi,

There is no OOTB functionality but you can implement your own.

You can ask user to lock page if they are working.

and check whether page is locked by same user or other user user while creating workflow by making Ajax call to your servlet which will return true or false based on state of page and display popup message.

For hint you can check Restricting a page to be subjected to workflow only once at a time in AEM 6.3

Answers (4)

Answers (4)

Avatar

Avatar

ignacio_mancill

Avatar

ignacio_mancill

ignacio_mancill

26-11-2018

I got it, but isnt there an out of the box option if the page is blocked by an user? Not another workflow process?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

26-11-2018

With Touch UI - you are correct - you can run a workflow on a page - even if its a payload on another workflow. To block a workflow on a page that is already subject to a workflow - you would need to write a custom service using this API -- WorkItem ("The Adobe AEM Quickstart and Web Application.")

Avatar

Avatar

ignacio_mancill

Avatar

ignacio_mancill

ignacio_mancill

26-11-2018

I'm using Touch UI

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

26-11-2018

Are you using Touch UI or Classic UI to invoke the workflow?