Class 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)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addActions​(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 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.
      static boolean isEditable​(EDLContext edlContext, java.util.List actions)  
      static boolean listContainsItems​(java.util.List list, java.lang.Object[] items)  
      void updateDOM​(org.w3c.dom.Document dom, org.w3c.dom.Element configElement, EDLContext edlContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowDocumentState

        public WorkflowDocumentState()
    • Method Detail

      • updateDOM

        public void updateDOM​(org.w3c.dom.Document dom,
                              org.w3c.dom.Element configElement,
                              EDLContext edlContext)
        Specified by:
        updateDOM in interface EDLModelComponent
      • 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