oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject svn commit: r1102794 [3/3] - in /oodt/trunk: ./ webapp/components/ webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/ webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/conditions/ webapp/components/src/...
Date Fri, 13 May 2011 15:41:21 GMT
Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.css (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.css Fri May 13 15:41:18 2011
@@ -0,0 +1,33 @@
+#paginator-break{
+  border:2;
+  width:100%;
+}
+
+#container-div{
+  width:100%;
+}
+
+#paginator-table{
+  border-spacing:3;
+  width:100;
+}
+
+#paginator-table-header{
+  width:100%;
+  white-space:nowrap;
+  font-weight:bold;
+}
+
+
+#page_repeater{
+
+}
+
+a, a:hover, a:focus, a:active{
+	text-decoration: none;
+}
+
+.selected{
+  font-weight:bold;
+  color:red;
+}
\ No newline at end of file

Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.html (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.html Fri May 13 15:41:18 2011
@@ -0,0 +1,16 @@
+<wicket:panel>
+<wicket:link>
+  <link rel="stylesheet" type="text/css" href="WorkflowPagePaginator.css"/>
+</wicket:link>
+<hr id="paginator-break">
+<div id="container-div">
+    <table id="paginator-table">
+      <tr>
+        <td id="paginator-table-header">Result Page</td>
+          <td wicket:id="page_repeater" id="page_repeater"><a wicket:id="pageLink" class="selected" href="#"><span wicket:id="pageNum">1</span></a></td>                    	 
+      </tr>
+     </table>
+</div>
+
+<h3 wicket:id="nothing_found">No Products Found!</h3>
+</wicket:panel>
\ No newline at end of file

Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.java (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/pagination/WorkflowPagePaginator.java Fri May 13 15:41:18 2011
@@ -0,0 +1,162 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.webcomponents.workflow.pagination;
+
+//JDK imports
+import java.io.Serializable;
+import java.util.List;
+import java.util.Vector;
+
+//OODT imports
+import org.apache.oodt.cas.workflow.structs.WorkflowInstancePage;
+
+//Wicket imports
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.behavior.SimpleAttributeModifier;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.BookmarkablePageLink;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.markup.html.panel.Panel;
+
+/**
+ * 
+ * A paginator component that expands to a +/- 5 page
+ * window to paginate a {@link WorkflowInstancePage}.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WorkflowPagePaginator extends Panel {
+
+  private static final long serialVersionUID = 6277536371513974225L;
+
+  private WorkflowInstancePage page;
+
+  private String status;
+  
+  /**
+   * @param id
+   */
+  public WorkflowPagePaginator(String id, WorkflowInstancePage page,
+      final String status, final Class<? extends WebPage> instPage) {
+    super(id);
+    this.page = page;
+    this.status = status;
+
+    if (this.page != null && this.page.getPageWorkflows() != null
+        && this.page.getPageWorkflows().size() > 0) {
+
+      int numPages = this.page.getTotalPages();
+      int currPage = this.page.getPageNum();
+      int windowSize = 10;
+
+      int startPage = Math.max(1, (currPage - (windowSize / 2)));
+      int endPage = Math.min(currPage + (windowSize / 2), numPages);
+      List<PageNumDisplay> pnums = this.getPageNumDisplay(startPage, endPage,
+          currPage);
+
+      add(new ListView<PageNumDisplay>("page_repeater", pnums) {
+
+        @Override
+        protected void populateItem(ListItem<PageNumDisplay> item) {
+          PageParameters params = new PageParameters();
+          params.add("status", status);
+          params.put("pageNum", item.getModelObject().getNum());
+          BookmarkablePageLink pageLink = new BookmarkablePageLink("pageLink",
+              instPage, params);
+          pageLink.add(new Label("pageNum", String.valueOf(item
+              .getModelObject().getNum())));
+          pageLink.add(new SimpleAttributeModifier("class", item
+              .getModelObject().isCurrentPage() ? "selected" : ""));
+          item.add(pageLink);
+        }
+      });
+      add(new Label("nothing_found").setVisible(false));
+    } else {
+      add(new Label("page_repeater").setVisible(false));
+      add(new Label("pageLink").setVisible(false));
+      add(new Label("pageNum").setVisible(false));
+      add(new Label("nothing_found").setVisible(true));
+    }
+
+  }
+
+  private List<PageNumDisplay> getPageNumDisplay(int startPage, int endPage,
+      int currPage) {
+    List<PageNumDisplay> display = new Vector<PageNumDisplay>();
+    for (int i = startPage; i <= endPage; i++) {
+      display.add(new PageNumDisplay(i == currPage, i));
+    }
+
+    return display;
+  }
+
+  class PageNumDisplay implements Serializable {
+
+    private static final long serialVersionUID = -4351470774764276644L;
+
+    private boolean currentPage;
+
+    private int num;
+
+    public PageNumDisplay() {
+      this.currentPage = false;
+      this.num = -1;
+    }
+
+    public PageNumDisplay(boolean currentPage, int num) {
+      this.currentPage = currentPage;
+      this.num = num;
+    }
+
+    /**
+     * @return the currentPage
+     */
+    public boolean isCurrentPage() {
+      return currentPage;
+    }
+
+    /**
+     * @param currentPage
+     *          the currentPage to set
+     */
+    public void setCurrentPage(boolean currentPage) {
+      this.currentPage = currentPage;
+    }
+
+    /**
+     * @return the num
+     */
+    public int getNum() {
+      return num;
+    }
+
+    /**
+     * @param num
+     *          the num to set
+     */
+    public void setNum(int num) {
+      this.num = num;
+    }
+
+  }
+
+}

Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.css (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.css Fri May 13 15:41:18 2011
@@ -0,0 +1,25 @@
+#workflow_task_table{
+  font-family: Arial,Sans-Serif,sans-serif;
+  border-spacing:2px;
+}
+
+.header{
+	
+}
+
+.value{
+	
+}
+
+#workflow_task_config_tbl{
+  border-spacing:2px;
+  font-family: Arial,Sans-Serif,sans-serif;
+}
+
+#workflow_config{
+
+}
+
+#workflow_condition_tbl{
+
+}
\ No newline at end of file

Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.html (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.html Fri May 13 15:41:18 2011
@@ -0,0 +1,46 @@
+<wicket:panel>
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowTaskViewer.css"/>
+</wicket:link>
+
+
+<table id="workflow_task_table">
+  <tr>
+    <td class="header">Task ID</td>
+    <td class="value"><span wicket:id="workflow_task_id">urn:oodt:IntensiveTaskWithWait</span></td>
+  </tr>
+  <tr>       	    	          
+    <td class="header">Name</td>
+    <td class="value"><span wicket:id="workflow_task_name">Intensive Waiter</span></td>
+  </tr>
+  <tr>
+    <td class="header">Implementation Class</td>
+    <td class="value"><span wicket:id="workflow_task_class">gov.nasa.jpl.oodt.cas.workflow.examples.LongTask</span></td>
+  </tr>
+  <tr>
+    <td class="header">Configuration</td>
+    <td>
+      <table id="workflow_task_config_tbl">
+       <tr class="header">
+         <td>Property</td>
+         <td>Value</td>
+       </tr>
+       <tr wicket:id="workflow_config" id="workflow_config">
+  	     <td><span wicket:id="workflow_config_pname">numSeconds</span></td>
+  	     <td><span wicket:id="workflow_config_pvalue">60</span></td>
+       </tr>
+      </table>
+     </td>
+    </tr>
+    <tr>
+      <td class="header">Conditions</td>
+      <td>
+        <table id="workflow_condition_tbl">
+       	 <tr wicket:id="workflow_conditions">
+       	   <td><a href="#" wicket:id="condition_page_link"><span wicket:id="condition_plink_name">Long Condition</span></a></td>
+       	 </tr>
+        </table>
+      </td>
+    </tr>
+ </table>
+ </wicket:panel>
\ No newline at end of file

Added: oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.java (added)
+++ oodt/trunk/webapp/components/src/main/java/org/apache/oodt/cas/webcomponents/workflow/tasks/WorkflowTaskViewer.java Fri May 13 15:41:18 2011
@@ -0,0 +1,103 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.webcomponents.workflow.tasks;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.oodt.cas.webcomponents.workflow.WorkflowMgrConn;
+import org.apache.oodt.cas.workflow.structs.WorkflowCondition;
+import org.apache.oodt.cas.workflow.structs.WorkflowTask;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.Link;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.util.ListModel;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WorkflowTaskViewer extends Panel {
+
+  private static final long serialVersionUID = -1895109076537364697L;
+
+  private WorkflowMgrConn wm;
+
+  /**
+   * @param id
+   */
+  public WorkflowTaskViewer(String id, String wmUrlStr, String taskId, final Class<? extends WebPage> conditionPage) {
+    super(id);
+    this.wm = new WorkflowMgrConn(wmUrlStr);
+    final WorkflowTask task = this.wm.safeGetTaskById(taskId);
+
+    add(new Label("workflow_task_id", task.getTaskId()));
+    add(new Label("workflow_task_name", task.getTaskName()));
+    add(new Label("workflow_task_class", task.getTaskInstanceClassName()));
+
+    List<String> taskConfigMetKeyNames = Arrays.asList(task.getTaskConfig()
+        .getProperties().keySet().toArray(
+            new String[task.getTaskConfig().getProperties().size()]));
+    Collections.sort(taskConfigMetKeyNames);
+
+    add(new ListView<String>("workflow_config", new ListModel<String>(taskConfigMetKeyNames)){
+    
+      @Override
+      protected void populateItem(ListItem<String> item) {
+        String configMetKeyName = item.getModelObject();
+        String configMetKeyValue = task.getTaskConfig().getProperty(configMetKeyName);
+        
+        item.add(new Label("workflow_config_pname", configMetKeyName));
+        item.add(new Label("workflow_config_pvalue", configMetKeyValue));
+      }
+    });
+    
+    add(new ListView<WorkflowCondition>("workflow_conditions", new ListModel<WorkflowCondition>(task.getConditions())){
+      /* (non-Javadoc)
+       * @see org.apache.wicket.markup.html.list.ListView#populateItem(org.apache.wicket.markup.html.list.ListItem)
+       */
+      @Override
+      protected void populateItem(ListItem<WorkflowCondition> item) {
+         WorkflowCondition cond = item.getModelObject();
+         final PageParameters params = new PageParameters();
+         params.add("id", cond.getConditionId());
+         Link condLink = new Link("condition_page_link"){
+               /* (non-Javadoc)
+               * @see org.apache.wicket.markup.html.link.Link#onClick()
+               */
+              @Override
+              public void onClick() {
+                setResponsePage(conditionPage, params);
+              }
+          };
+          condLink.add(new Label("condition_plink_name", cond.getConditionName()));
+          item.add(condLink);
+      }
+    });
+  }
+
+}

Propchange: oodt/trunk/webapp/wmonitor/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri May 13 15:41:18 2011
@@ -0,0 +1 @@
+target

Added: oodt/trunk/webapp/wmonitor/pom.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/pom.xml?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/pom.xml (added)
+++ oodt/trunk/webapp/wmonitor/pom.xml Fri May 13 15:41:18 2011
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more contributor
+license agreements.  See the NOTICE.txt file distributed with this work for
+additional information regarding copyright ownership.  The ASF licenses this
+file to you under the Apache License, Version 2.0 (the "License"); you may not
+use this file except in compliance with the License.  You may obtain a copy of
+the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+License for the specific language governing permissions and limitations under
+the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.oodt</groupId>
+	<artifactId>wmonitor</artifactId>
+	<packaging>war</packaging>
+	<version>0.3-SNAPSHOT</version>
+	<name>CAS Workflow Manager Monitor Web App</name>
+	<properties>
+		<wicket.version>1.4.16</wicket.version>
+		<jetty.version>6.1.25</jetty.version>
+		<slf4j.version>1.5.8</slf4j.version>
+		<log4j.version>1.2.14</log4j.version>
+	</properties>
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.wicket</groupId>
+			<artifactId>wicket</artifactId>
+			<version>${wicket.version}</version>
+		</dependency>
+		<dependency>
+		  <groupId>org.apache.oodt</groupId>
+		  <artifactId>oodt-webapp-components</artifactId>
+		  <version>0.3-SNAPSHOT</version>
+		  <exclusions>
+		    <exclusion>
+		      <artifactId>cas-filemgr</artifactId>
+		      <groupId>org.apache.oodt</groupId>
+		    </exclusion>
+		  </exclusions>
+		</dependency>
+
+		<!-- LOGGING DEPENDENCIES - LOG4J -->
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-log4j12</artifactId>
+			<version>${slf4j.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+			<version>1.2.14</version>
+		</dependency>
+
+		<!--  JUNIT DEPENDENCY FOR TESTING -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.8.1</version>
+			<scope>test</scope>
+		</dependency>
+
+		<!--  JETTY DEPENDENCIES FOR TESTING  -->
+		<dependency>
+			<groupId>org.mortbay.jetty</groupId>
+			<artifactId>jetty</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.mortbay.jetty</groupId>
+			<artifactId>jetty-util</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.mortbay.jetty</groupId>
+			<artifactId>jetty-management</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+	<build>
+		<resources>
+			<resource>
+				<filtering>false</filtering>
+				<directory>src/main/resources</directory>
+			</resource>
+			<resource>
+				<filtering>false</filtering>
+				<directory>src/main/java</directory>
+				<includes>
+					<include>**</include>
+				</includes>
+				<excludes>
+					<exclude>**/*.java</exclude>
+				</excludes>
+			</resource>
+		</resources>
+		<testResources>
+			<testResource>
+				<filtering>false</filtering>
+				<directory>src/test/java</directory>
+				<includes>
+					<include>**</include>
+				</includes>
+				<excludes>
+					<exclude>**/*.java</exclude>
+				</excludes>
+			</testResource>
+		</testResources>
+		<plugins>
+			<plugin>
+				<inherited>true</inherited>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+					<optimize>true</optimize>
+					<debug>true</debug>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	</project>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.html Fri May 13 15:41:18 2011
@@ -0,0 +1,19 @@
+<html
+	xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
+<head>
+<title>OODT CAS Workflow Manager Monitor</title>
+</head>
+<body>
+
+<h3>Welcome to the OODT CAS Workflow Manager Monitor!</h3>
+
+<p>You can:
+  <ul>
+    <li><a href="#" wicket:id="workflow_insts_viewer_link">View active Workflows</a></li>
+    <li><a href="#" wicket:id="workflows_viewer_link">View what Workflow Descriptions are available.</a></li>
+    <li><a href="#" wicket:id="workflow_event_viewer_link">View what Workflows are associated with different Events</a></li>
+  </ul>
+  
+</body>
+</html>
+ 
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/Home.java Fri May 13 15:41:18 2011
@@ -0,0 +1,81 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.workflow.webapp.monitor;
+
+import org.apache.oodt.cas.workflow.webapp.monitor.events.WorkflowEventViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.instance.WorkflowInstanceViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.workflow.WorkflowsViewerPage;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class Home extends WebPage {
+
+  public Home() {
+    add(new Link("workflow_event_viewer_link") {
+      /*
+       * (non-Javadoc)
+       * 
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        setResponsePage(WorkflowEventViewerPage.class);
+      }
+    });
+
+    add(new Link("workflows_viewer_link") {
+      /*
+       * (non-Javadoc)
+       * 
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        setResponsePage(WorkflowsViewerPage.class);
+
+      }
+    });
+
+    add(new Link("workflow_insts_viewer_link") {
+      /*
+       * (non-Javadoc)
+       * 
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        PageParameters params = new PageParameters();
+        params.add("pageNum", "1");
+        params.add("status", "ALL");
+        setResponsePage(WorkflowInstanceViewerPage.class, params);
+
+      }
+    });
+
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/WMMonitorApp.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/WMMonitorApp.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/WMMonitorApp.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/WMMonitorApp.java Fri May 13 15:41:18 2011
@@ -0,0 +1,102 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.workflow.webapp.monitor;
+
+import org.apache.oodt.cas.webcomponents.workflow.WMMonitorAppBase;
+import org.apache.oodt.cas.webcomponents.workflow.instance.WorkflowInstancesViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.condition.WorkflowConditionViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.events.WorkflowEventViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.instance.WorkflowInstanceViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.task.WorkflowTaskViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.workflow.WorkflowViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.workflow.WorkflowsViewerPage;
+import org.apache.wicket.Page;
+import org.apache.wicket.ResourceReference;
+import org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WMMonitorApp extends WMMonitorAppBase {
+
+  public WMMonitorApp() {
+    MixedParamUrlCodingStrategy taskPageMount = new MixedParamUrlCodingStrategy(
+        "task", WorkflowTaskViewerPage.class, new String[] { "id" });
+    MixedParamUrlCodingStrategy condPageMount = new MixedParamUrlCodingStrategy(
+        "condition", WorkflowConditionViewerPage.class, new String[] { "id" });
+
+    MixedParamUrlCodingStrategy workflowPageMount = new MixedParamUrlCodingStrategy(
+        "workflow", WorkflowViewerPage.class, new String[] { "id" });
+
+    MixedParamUrlCodingStrategy eventsPageMount = new MixedParamUrlCodingStrategy(
+        "events", WorkflowEventViewerPage.class, new String[] {});
+
+    MixedParamUrlCodingStrategy workflowsPageMount = new MixedParamUrlCodingStrategy(
+        "workflows", WorkflowsViewerPage.class, new String[] {});
+
+    MixedParamUrlCodingStrategy workflowInstsPageMount = new MixedParamUrlCodingStrategy(
+        "instances", WorkflowInstanceViewerPage.class, new String[] { "status",
+            "pageNum" });
+
+    mount(taskPageMount);
+    mount(condPageMount);
+    mount(workflowPageMount);
+    mount(eventsPageMount);
+    mount(workflowsPageMount);
+    mount(workflowInstsPageMount);
+  }
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @see org.apache.wicket.Application#getHomePage()
+   */
+  @Override
+  public Class<? extends Page> getHomePage() {
+    return Home.class;
+  }
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @see org.apache.wicket.protocol.http.WebApplication#init()
+   */
+  @Override
+  protected void init() {
+    super.init();
+
+    mountSharedResource("/images/percentImage_back1.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back1.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back2.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back2.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back3.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back3.png").getSharedResourceKey());
+    mountSharedResource("/images/percentImage_back4.png",
+        new ResourceReference(WorkflowInstancesViewer.class,
+            "percentImage_back4.png").getSharedResourceKey());
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,5 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowConditionViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;Conditions&nbsp;<span id="divider">/</span>&nbsp;<span wicket:id="cond_id">urn:oodt:TestCondition</span></div>
+<div wicket:id="cond_viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/condition/WorkflowConditionViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,53 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.cas.workflow.webapp.monitor.condition;
+
+import org.apache.oodt.cas.webcomponents.workflow.conditions.WorkflowConditionViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ *
+ * Describe your class here.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class WorkflowConditionViewerPage extends WebPage {
+  
+   public WorkflowConditionViewerPage(PageParameters params){
+     add(new Link("home_link"){
+         /* (non-Javadoc)
+         * @see org.apache.wicket.markup.html.link.Link#onClick()
+         */
+        @Override
+        public void onClick() {
+          setResponsePage(getApplication().getHomePage());
+        }
+     });
+     add(new Label("cond_id", params.getString("id")));
+     add(new WorkflowConditionViewer("cond_viewer", ((WMMonitorApp)getApplication()).getWorkflowUrl(), 
+         params.getString("id")));
+   }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,5 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowEventViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;Events&nbsp;</div>
+<div wicket:id="viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/events/WorkflowEventViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,50 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.cas.workflow.webapp.monitor.events;
+
+import org.apache.oodt.cas.webcomponents.workflow.event.EventToWorkflowViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp;
+import org.apache.oodt.cas.workflow.webapp.monitor.workflow.WorkflowViewerPage;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ *
+ * Describe your class here.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class WorkflowEventViewerPage extends WebPage {
+  
+  public WorkflowEventViewerPage(){
+    add(new Link("home_link"){
+      /* (non-Javadoc)
+      * @see org.apache.wicket.markup.html.link.Link#onClick()
+      */
+     @Override
+     public void onClick() {
+       setResponsePage(getApplication().getHomePage());
+     }
+  });    
+    add(new EventToWorkflowViewer("viewer", ((WMMonitorApp)getApplication()).getWorkflowUrl(), WorkflowViewerPage.class));
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,6 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowInstanceViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;Instances&nbsp;</div>
+
+<div wicket:id="instance_viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/instance/WorkflowInstanceViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.oodt.cas.workflow.webapp.monitor.instance;
+
+import org.apache.oodt.cas.webcomponents.workflow.instance.WorkflowInstancesViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp;
+import org.apache.oodt.cas.workflow.webapp.monitor.task.WorkflowTaskViewerPage;
+import org.apache.oodt.cas.workflow.webapp.monitor.workflow.WorkflowViewerPage;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ *
+ * Describe your class here.
+ *
+ * @author mattmann
+ * @version $Revision$
+ *
+ */
+public class WorkflowInstanceViewerPage extends WebPage {
+  
+  public WorkflowInstanceViewerPage(PageParameters params){
+    add(new Link("home_link"){
+      /* (non-Javadoc)
+      * @see org.apache.wicket.markup.html.link.Link#onClick()
+      */
+     @Override
+     public void onClick() {
+       setResponsePage(getApplication().getHomePage());
+     }
+  });
+    
+    add(new WorkflowInstancesViewer("instance_viewer", ((WMMonitorApp)getApplication()).getWorkflowUrl(), 
+        params.getString("status", "ALL"), params.getInt("pageNum", 1), ((WMMonitorApp)getApplication()).getStatuses(), 
+        ((WMMonitorApp)getApplication()).getLifecycleFilePath(), ((WMMonitorApp)getApplication()).getInstMetFieldsFilePath(),
+        WorkflowViewerPage.class, WorkflowTaskViewerPage.class, WorkflowInstanceViewerPage.class));
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,5 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowTaskViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;Tasks&nbsp;<span id="divider">/</span>&nbsp;<span wicket:id="task_id">urn:oodt:LongTask</span></div>
+<div wicket:id="task_viewer" id="task_viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/task/WorkflowTaskViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.workflow.webapp.monitor.task;
+
+import org.apache.oodt.cas.webcomponents.workflow.WMMonitorAppBase;
+import org.apache.oodt.cas.webcomponents.workflow.tasks.WorkflowTaskViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.condition.WorkflowConditionViewerPage;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WorkflowTaskViewerPage extends WebPage {
+
+  public WorkflowTaskViewerPage(PageParameters params) {
+    add(new Link("home_link"){
+      /* (non-Javadoc)
+      * @see org.apache.wicket.markup.html.link.Link#onClick()
+      */
+     @Override
+     public void onClick() {
+       setResponsePage(getApplication().getHomePage());
+     }
+  });    
+    add(new Label("task_id", params.getString("id")));
+    WorkflowTaskViewer viewerComponent = new WorkflowTaskViewer("task_viewer",
+        ((WMMonitorAppBase) getApplication()).getWorkflowUrl(), params
+            .getString("id"), WorkflowConditionViewerPage.class);
+    add(viewerComponent);
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,5 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;<a href="#" wicket:id="workflows_viewer_link">Workflows</a>&nbsp;<span id="divider">/</span>&nbsp;<span wicket:id="workflow_id">urn:oodt:LongWorkflow</span></div>
+<div wicket:id="workflow_viewer" id="workflow_viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,62 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.workflow.webapp.monitor.workflow;
+
+import org.apache.oodt.cas.webcomponents.workflow.model.WorkflowViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp;
+import org.apache.oodt.cas.workflow.webapp.monitor.task.WorkflowTaskViewerPage;
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WorkflowViewerPage extends WebPage {
+
+  public WorkflowViewerPage(PageParameters params) {
+    add(new Link("home_link"){
+      /* (non-Javadoc)
+      * @see org.apache.wicket.markup.html.link.Link#onClick()
+      */
+     @Override
+     public void onClick() {
+       setResponsePage(getApplication().getHomePage());
+     }
+  });
+    add(new Link("workflows_viewer_link"){
+       /* (non-Javadoc)
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        setResponsePage(WorkflowsViewerPage.class);
+      }
+    });
+    add(new Label("workflow_id", params.getString("id")));
+    add(new WorkflowViewer("workflow_viewer", ((WMMonitorApp) getApplication())
+        .getWorkflowUrl(), params.getString("id"), WorkflowTaskViewerPage.class));
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.css
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.css?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.css (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.css Fri May 13 15:41:18 2011
@@ -0,0 +1,8 @@
+body{
+ font-family:Arial, Sans-Serif;
+ font-size:12px;
+}
+
+#breadcrumbs{
+  padding-bottom:20px;
+}

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.html
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.html?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.html (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.html Fri May 13 15:41:18 2011
@@ -0,0 +1,5 @@
+<wicket:link>
+ <link rel="stylesheet" type="text/css" href="WorkflowsViewerPage.css"/>
+</wicket:link>
+<div id="breadcrumbs"><a href="#" wicket:id="home_link">Home</a>&nbsp;<span id="divider">/</span>&nbsp;Workflows&nbsp;</div>
+<div wicket:id="workflows_viewer" id="workflows_viewer"/>
\ No newline at end of file

Added: oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.java
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.java?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.java (added)
+++ oodt/trunk/webapp/wmonitor/src/main/java/org/apache/oodt/cas/workflow/webapp/monitor/workflow/WorkflowsViewerPage.java Fri May 13 15:41:18 2011
@@ -0,0 +1,53 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oodt.cas.workflow.webapp.monitor.workflow;
+
+import org.apache.oodt.cas.webcomponents.workflow.model.WorkflowsViewer;
+import org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.link.Link;
+
+/**
+ * 
+ * Describe your class here.
+ * 
+ * @author mattmann
+ * @version $Revision$
+ * 
+ */
+public class WorkflowsViewerPage extends WebPage {
+
+  public WorkflowsViewerPage() {
+    add(new Link("home_link") {
+      /*
+       * (non-Javadoc)
+       * 
+       * @see org.apache.wicket.markup.html.link.Link#onClick()
+       */
+      @Override
+      public void onClick() {
+        setResponsePage(getApplication().getHomePage());
+      }
+    });
+
+    add(new WorkflowsViewer("workflows_viewer",
+        ((WMMonitorApp) getApplication()).getWorkflowUrl(),
+        WorkflowViewerPage.class));
+  }
+
+}

Added: oodt/trunk/webapp/wmonitor/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/webapp/META-INF/context.xml?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/webapp/META-INF/context.xml (added)
+++ oodt/trunk/webapp/wmonitor/src/main/webapp/META-INF/context.xml Fri May 13 15:41:18 2011
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more contributor
+license agreements.  See the NOTICE.txt file distributed with this work for
+additional information regarding copyright ownership.  The ASF licenses this
+file to you under the Apache License, Version 2.0 (the "License"); you may not
+use this file except in compliance with the License.  You may obtain a copy of
+the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+License for the specific language governing permissions and limitations under
+the License.
+-->
+<Context path="/wmonitor">
+		
+	<Parameter name="workflow.url"
+	    value="[WORKFLOW_URL]"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.webapp.lifecycleFilePath"
+	    value="[WORKFLOW_HOME]/policy/workflow-lifecycle.xml"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.inst.statuses"
+	    value="STARTED, FINISHED, METMISS, PAUSED"/>
+	    
+	<Parameter name="org.apache.oodt.cas.workflow.webapp.inst.metFields.filePath"
+	    value="[WORKFLOW_HOME]/policy/workflow-instance-met.xml"/>
+	    
+</Context>

Added: oodt/trunk/webapp/wmonitor/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/webapp/wmonitor/src/main/webapp/WEB-INF/web.xml?rev=1102794&view=auto
==============================================================================
--- oodt/trunk/webapp/wmonitor/src/main/webapp/WEB-INF/web.xml (added)
+++ oodt/trunk/webapp/wmonitor/src/main/webapp/WEB-INF/web.xml Fri May 13 15:41:18 2011
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+	 version="2.4">
+
+	<display-name>workflow-monitor</display-name>
+
+	 <!--  
+	      There are three means to configure Wickets configuration mode and they are
+	      tested in the order given. 
+	      1) A system property: -Dwicket.configuration
+	      2) servlet specific <init-param>
+	      3) context specific <context-param>
+	      The value might be either "development" (reloading when templates change)
+	      or "deployment". If no configuration is found, "development" is the default.
+	-->
+
+	<filter>
+		<filter-name>wicket.browser</filter-name>
+ 		<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
+		<init-param>
+			<param-name>applicationClassName</param-name>
+			<param-value>org.apache.oodt.cas.workflow.webapp.monitor.WMMonitorApp</param-value>
+ 		</init-param>
+ 	</filter>
+
+ <filter-mapping>
+  <filter-name>wicket.browser</filter-name>
+	<url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+
+</web-app>



Mime
View raw message