1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.kpme.controller;
17
18 import org.kuali.rice.kew.api.WorkflowDocument;
19 import org.kuali.rice.kew.api.action.ActionType;
20 import org.kuali.rice.krad.document.Document;
21 import org.kuali.rice.krad.maintenance.MaintenanceViewPresentationControllerBase;
22
23 public class KPMEMaintenanceViewPresentationControllerBase extends MaintenanceViewPresentationControllerBase {
24
25 @Override
26 public boolean canCancel(Document document) {
27 WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument();
28 return workflowDocument.isValidAction(ActionType.CANCEL);
29 }
30 }