cancel
Showing results for 
Search instead for 
Did you mean: 

Display workflow in the form of Link

vinodkumarnelib
Champ in-the-making
Champ in-the-making
I want only one work flow, ie users should not see other type of work flow
    When Users select workflow, it should go the work flow screen rather than, the drop down button for selection of workflow

I would like to request guidance and advice on how to do it, which file to modify
3 REPLIES 3

loftux
Star Contributor
Star Contributor
For the file tomcat/webapps/share/workflow/start-workflow.js in the onReady function, right before return statement add
         var selectedwf = Alfresco.util.getQueryStringParameter("wfname"), selectedindex=-1;
         if(selectedwf){
            
            for(var i=0; i<this.options.workflowDefinitions.length; i++) {
               if(selectedwf === this.options.workflowDefinitions[i].name){
                  selectedindex=i;
               }
            }
            if(selectedindex>=0){
               this.onWorkflowSelectChange("click", ["",{"index": selectedindex}])
            }
         } 
With this you can pass the workflow as a parameter named wfname.

vinodkumarnelib
Champ in-the-making
Champ in-the-making
Thanks for Reply Loftux, Here when the user selects startworkflow link our own defined workflow should be started automatically avoiding the select workflow screen.

vinodkumarnelib
Champ in-the-making
Champ in-the-making
Thanx a lot Loftux, I got the solution. It Works Smiley Very Happy .