Is it possible to start a workflow on asset folder? | Community
Skip to main content
Level 3
October 16, 2015
Solved

Is it possible to start a workflow on asset folder?

  • October 16, 2015
  • 5 replies
  • 1968 views

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

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 kumaranf

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

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

5 replies

October 16, 2015

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.

kumaranfAccepted solution
Level 2
October 16, 2015

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

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

Rui_JAuthor
Level 3
October 16, 2015

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?

October 16, 2015

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

Rui_JAuthor
Level 3
October 16, 2015

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.