cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel Workflow

thomasberment
Champ in-the-making
Champ in-the-making
Hi all, I have an other question …

I want modify the action "cancelWorkflow". This action is display only in "dashlet_completed_actions" but I want not it in dashlet. I tried to put it in "doc_details_actions" and "document_browse_menu", like this :
<action-group id="document_browse_menu">
            <action idref="start_workflow" />
         <action idref="cancel_workflow" />
         </action-group>
        
         <action-group id="doc_details_actions">
            <action idref="start_workflow" />
         <action idref="cancel_workflow" />
         </action-group>
        
         <action-group id="dashlet_todo_actions">
            <action idref="manage_task" />
            <action idref="reassign_task" />
         </action-group>
        
         <action-group id="dashlet_pooled_actions">
            <action idref="manage_task" />
         </action-group>

         <action-group id="dashlet_completed_actions">
            <action idref="view_completed_task" />
           
         </action-group>

And this is my custom action :
<action id="cancel_workflow">
            <permissions>
               <permission allow="true">Collaborator</permission>
            </permissions>
            <label-id>cancel_workflow</label-id>
            <image>/images/icons/cancel_workflow.gif</image>
            <evaluator>org.alfresco.web.action.evaluator.CancelWorkflowEvaluator</evaluator>
            <action>dialog:cancelWorkflow</action>
            <action-listener>#{DialogManager.setupParameters}</action-listener>
         <!–<script>/Company Home/Data Dictionary/Scripts/cancelWorkflow.js</script>–>
            <params>
               <param name="workflow-instance-id">#{actionContext.workflowInstanceId}</param>
               <param name="workflow-instance-name">#{actionContext.workflowInstanceName}</param>
            </params>
         </action>

I can't see "cancelWorflow" action in Alfresco because for me, the evaluator give not me the permission. So I want customize this evaluator, but how ? Where is it ?
1 REPLY 1

thomasberment
Champ in-the-making
Champ in-the-making
Have you a solution to purge the list of workflow task in the dashlet ?

For my customization, I disabled the action cancel workflow and I want just display the task with the completion date under 30 days. I custom this file, tasks-completed-dashlet.jsp.
But I want purge this liste because if nobody cancel completed tasks, I afraid by the result …