cancel
Showing results for 
Search instead for 
Did you mean: 

how to restrict document types in workflow packageitems

rajupingili
Champ in-the-making
Champ in-the-making
Hi All,

I want to restrict document types when we are selecting documents to start workflow. Here Just i want to show my custom type documents only.To do this i tried to customize picker-children.get.js Here i have selectableType attribute but it is returning always null. can any help me to do this.

Thanks
Raju.P
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
could you post the js file?

muralidharand
Star Contributor
Star Contributor
Hi Raju,
Can you please look at the below method which is used to return the files & folders for the workflow package items?

org.alfresco.repo.jscript.ScriptNode.<strong>childFileFolders</strong>(boolean, boolean, Object, int, int, int, String, Boolean, String)

You can apply your logic, to display your custom document types.
Hope you'll get some idea after debugging ScriptNode.<strong>childFileFolders</strong> method.

Thanks for u'r replay Murali,

it is working