Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Is it possible to start a workflow on asset folder?

Avatar

Level 3

Hi,

  I have a requirement that I need to start a workflow on a selected asset workflow. This will iterate each asset under this folder and process some work. But when I right click on an asset folder, the "workflow" option is disabled. So I am wondering if it is possible to start a workflow on an asset folder?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 2

Please use the Workflow console and use your folder path as payload

http://localhost:4502/libs/cq/workflow/content/console.html

View solution in original post

5 Replies

Avatar

Level 1

It's definitely possible, however I would use a servlet instead. When a thumbnail is generated on the folder, it will cause your workflow to fire. It gets ugly quick.

Avatar

Correct answer by
Level 2

Please use the Workflow console and use your folder path as payload

http://localhost:4502/libs/cq/workflow/content/console.html

Avatar

Level 3

If I understand you correctly, you are saying on siteadmin page, overwrite the dialog javascript to enable the workflow on context menu, then write a servlet to trigger the workflow?

Avatar

Level 1

Sorry, I thought you were talking about adding a workflow launcher on a sling:OrderedFolder. Where are you trying to add the functionality?

Avatar

Level 3

sam.stange wrote...

Sorry, I thought you were talking about adding a workflow launcher on a sling:OrderedFolder. Where are you trying to add the functionality?

 

[img]2015-06-17_21-52-21.png[/img] I mean here.