How to update the workflow list in sidekick as per the template? | Community
Skip to main content
mikezooz
Level 4
October 16, 2015
Solved

How to update the workflow list in sidekick as per the template?

  • October 16, 2015
  • 6 replies
  • 1648 views

Hi All,

i have five different template, i want to make the workflow list as dynamic which is display on the sidekick as per the template used.

could you please show the right direction to start.

Thanks

Michael

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 Lokesh_Shivalingaiah

OOB, workflow models is listed based on the logged in Users ACLs. All the workflows for which the current logged in user has atleast the read access will be displayed. So you can also see if your usecase can be managed using this.

If not, as discussed you need to write a custom service to send the list of workflows as per your logic to the sidekick

6 replies

edubey
Level 10
October 16, 2015

I dont think so that AEM provides any OOTB functionality where you can get workflow list based on template in sidekick.

As a solution you can override /libs/cq/ui/widgets/source/widgets/wcm/Sidekick.js  file  and customized the list according to the templates you have.

mikezooz
mikezoozAuthor
Level 4
October 16, 2015

Thanks for your reply. i have gone through sidekick.js. its display the workflow list using the below service 

/libs/cq/workflow/content/console/workflows.json?tags=wcm

I think i have to create the custom service and restrict the workflows as per the template.

Is that you are suggest?   

edubey
Level 10
October 16, 2015

Yes right, Create your own service and customize the JS to use your custom service  that would work for you.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

OOB, workflow models is listed based on the logged in Users ACLs. All the workflows for which the current logged in user has atleast the read access will be displayed. So you can also see if your usecase can be managed using this.

If not, as discussed you need to write a custom service to send the list of workflows as per your logic to the sidekick

mikezooz
mikezoozAuthor
Level 4
October 16, 2015

Thanks for your reply.

Authors have access to play around all the templates. So we cant restrict them using ACL Right?

edubey
Level 10
October 16, 2015

I think you can still modify the ACL for workflow model :https://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-admin.html#Configuring Access to Workflows