Update of 
/var/cvs/contributions/CMSContainer_Modules/workflow/src/java/com/finalist/cmsc/workflow
In directory 
james.mmbase.org:/tmp/cvs-serv1333/workflow/src/java/com/finalist/cmsc/workflow

Modified Files:
        RepositoryWorkflow.java 
Log Message:
CMSC-1087 (changes the status box of a page to a dynamic tree in the Workflow 
section of the CMSc)


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/workflow/src/java/com/finalist/cmsc/workflow
See also: http://www.mmbase.org/jira/browse/CMSC-1087


Index: RepositoryWorkflow.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/workflow/src/java/com/finalist/cmsc/workflow/RepositoryWorkflow.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- RepositoryWorkflow.java     26 Nov 2007 11:42:14 -0000      1.5
+++ RepositoryWorkflow.java     10 Nov 2008 05:47:07 -0000      1.6
@@ -32,6 +32,15 @@
    }
 
 
+   protected Node getAssetNode(Node wfItem) {
+      NodeList list = wfItem.getRelatedNodes(RepositoryUtil.ASSETELEMENT, 
WORKFLOWREL, DESTINATION);
+      if (!list.isEmpty()) {
+         return list.getNode(0);
+      }
+      return null;
+   }
+
+
    protected Node getLinkChannel(Node wfItem) {
       NodeList channels = 
wfItem.getRelatedNodes(RepositoryUtil.CONTENTCHANNEL, WORKFLOWREL, DESTINATION);
       if (!channels.isEmpty()) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to