cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable custom workflow ?

jetty
Champ in-the-making
Champ in-the-making
hi i am working with custom work flow namely Review & Approve (Review & approval of content) .so my question i wanna disable it for a particular user.
for example : if i am having  custom:workflow1 ,custom:workflow2 and custom:workflow3 respectively.i wanna disable custom:workflow2  for consumer ,so he will be not able to start this custom:work2.that is the customer  will be not able to see the custom:workflow2 option .
how to achieve this  please let me know . Smiley Very Happy  Smiley Surprisedops:
1 REPLY 1

amitabhandari1
Champ in-the-making
Champ in-the-making
HI jeety,

You  have to extend "StartWorkflowWizard"  bean and override the "getStartableWorkflows()" method. In this method you can check about the  current user  and  conditions you want to implement  and thus add the workflows accordingly.

Thanks,