AnsweredAssumed Answered

Workflow Reject action Customize

Question asked by g_rathod on Sep 1, 2010
Friends,

I need to customize little thing for "My-Tasks" dashlet, JS related to it is located at  /share/components/dashlets/my-tasks.js
for the  "onTransitionTask: function MyTasks_onTransitionTask(taskTransition)" method I have added my module code


                                if( params[1].toLowerCase() =="rejectsite" )
            {

               //CUSTOM code to show POPUP ( but need to find out how to get OK button is pressed)
               Alfresco.module.getRejectCampaignScreenInstance(taskId,transitionId).show();
            }

My related module files are located (webscript files) at tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\modules
Now these files having OK and CANCEL button. If I press OK  how do I know in my-tasks.js file that OK is pressed ??

If I get that part in my-tasks.js  file, that will be great. And when I press OK, workflow is rejected afterwards.

Outcomes