AEM Restrict in triggering a workflow on an Asset

Avatar

Avatar
Validate 1
Level 2
rsl_lucky
Level 2

Likes

15 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 1
Level 2
rsl_lucky
Level 2

Likes

15 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 5
Boost 3
Boost 10
View profile
rsl_lucky
Level 2

23-09-2020

Hi All,

 

Want to restrict in triggering a workflow on an Asset from 'Timeline' option when asset have certain property value set on it. 

Also needs to restrict trigger workflow on an asset if it is in folder path ending with certain suffix like /content/dam/folderA/nA, /content/dam/folderB/nA, /content/dam/folderC/nA paths i.e. assets under folder nA are not allowed for workflow, needs to restrict nA folder assets across /content/dam wherever folder /nA exists.

 

Any idea or suggestion how can this be achieved OR sample code would be really helpful ?

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile
raj_mandalapu
MVP

23-09-2020

You can try overlaying the below paths, you need to check the code in provider.jsp, if the URL contains nA then don't fire workflow. you need to do some analysis on this.

/libs/cq/gui/components/coral/common/admin/timeline/alerts/workflow/provider.jsp

/libs/dam/gui/coral/content/commons/sidepanels/timeline/items/alerts/items/workflows

 

The other option is if you know what workflow you are going to fire, then you can create a workflow step, that should execute at the starting of the workflow, inside the workflow step check if the URL contains ends with "nA" then end the workflow.

 

 

Answers (0)