Class WorkflowDocumentState
- java.lang.Object
-
- org.kuali.rice.edl.impl.components.WorkflowDocumentState
-
- All Implemented Interfaces:
EDLModelComponent
public class WorkflowDocumentState extends java.lang.Object implements EDLModelComponent
Generates document state based on the workflow document in session.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
-
Constructor Summary
Constructors Constructor Description WorkflowDocumentState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddActions(org.w3c.dom.Document dom, org.w3c.dom.Element documentState, java.util.List actions)static java.util.List<java.lang.String>determineValidActions(org.kuali.rice.kew.api.WorkflowDocument wfdoc)static booleanisAnnotatable(java.util.List actions)Determines whether to display the annotation text box Currently we will show the annotation box if ANY of the possible actions are annotatable.static booleanisEditable(EDLContext edlContext, java.util.List actions)static booleanlistContainsItems(java.util.List list, java.lang.Object[] items)voidupdateDOM(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)
-
-
-
Method Detail
-
updateDOM
public void updateDOM(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)- Specified by:
updateDOMin interfaceEDLModelComponent
-
determineValidActions
public static java.util.List<java.lang.String> determineValidActions(org.kuali.rice.kew.api.WorkflowDocument wfdoc) throws org.kuali.rice.kew.api.exception.WorkflowException- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
isEditable
public static boolean isEditable(EDLContext edlContext, java.util.List actions)
-
addActions
public static void addActions(org.w3c.dom.Document dom, org.w3c.dom.Element documentState, java.util.List actions)
-
listContainsItems
public static boolean listContainsItems(java.util.List list, java.lang.Object[] items)
-
isAnnotatable
public static boolean isAnnotatable(java.util.List actions)
Determines whether to display the annotation text box Currently we will show the annotation box if ANY of the possible actions are annotatable. But what happens if we have an un-annotatable action? Hey, why don't we just make all actions annotatable.- Parameters:
actions- list of possible actions- Returns:
- whether to show the annotation text box
-
-