You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by bf...@apache.org on 2010/12/23 03:44:31 UTC

svn commit: r1052143 [10/11] - in /oodt/branches/wengine-branch: ./ src/ src/main/ src/main/assembly/ src/main/bin/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/oodt/ src/main/java/org/apache/oodt/cas/ src/main/j...

Added: oodt/branches/wengine-branch/src/main/resources/policy/engine-client-cmd-line-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/engine-client-cmd-line-beans.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/engine-client-cmd-line-beans.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/engine-client-cmd-line-beans.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,578 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: CAS-Catalog Command-line options
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:p="http://www.springframework.org/schema/p"
+	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+	<bean class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>
+
+	<!-- CAS-Workflow Client Cmd-Line-Options -->
+	<bean id="action" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="a"/>
+		<property name="longOption" value="action"/>
+		<property name="description" value="The Server Action to perfrom"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="bean id"/>
+		<property name="required" value="true"/>
+	</bean>
+
+	<bean id="clientFactoryBeanId" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="cfb"/>
+		<property name="longOption" value="clientFactoryBeanId"/>
+		<property name="description" value="CatalogServiceClientFactory Bean Id"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="bean id"/>
+		<property name="required" value="false"/>
+	</bean>
+
+	<bean id="metadata" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="m"/>
+		<property name="longOption" value="metadata"/>
+		<property name="description" value="Input metadata for event"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="key followed by values"/>
+		<property name="type" value="java.util.List"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="TriggerEvent" p:methodName="replaceInputMetadata"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="StartWorkflow" p:methodName="replaceInputMetadata"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate" p:methodName="replaceInputMetadata"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage" p:methodName="replaceFilterMetadata"/>		
+										
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="eventId" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="eid"/>
+		<property name="longOption" value="eventId"/>
+		<property name="description" value="Trigger Event ID"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="bean id"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>TriggerEvent</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="TriggerEvent"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+
+	<bean id="state" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="st"/>
+		<property name="longOption" value="state"/>
+		<property name="description" value="Workflow State Name"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="state name"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>ChangeWorkflowState</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowState"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="DeleteWorkflows"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="category" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="cat"/>
+		<property name="longOption" value="category"/>
+		<property name="description" value="Workflow State Category"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="category name"/>
+		<property name="required" value="false"/>				
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage"/>						
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="DeleteWorkflows"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="instanceId" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="iid"/>
+		<property name="longOption" value="instanceId"/>
+		<property name="description" value="Workflow Instance Id"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="instance id"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>DescribeWorkflow</value>                        
+							<value>PrintWorkflow</value>                        
+							<value>DeleteWorkflow</value>        
+							<value>ChangeWorkflowState</value>        
+							<value>ChangeWorkflowPriority</value>						
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="DescribeWorkflow"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="PrintWorkflow"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="DeleteWorkflow"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowState"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowPriority"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="modelId" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="mid"/>
+		<property name="longOption" value="modelId"/>
+		<property name="description" value="Workflow Model Id"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="model id"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>       
+							<value>DescribeWorkflow</value>        
+							<value>StartWorkflow</value>        
+							<value>MultiStartWorkflowByDate</value>        
+							<value>ChangeWorkflowState</value>
+							<value>ChangeWorkflowPriority</value>						
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage"/>						
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="DescribeWorkflow"/>					
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="StartWorkflow"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowState"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowPriority"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="query" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="q"/>
+		<property name="longOption" value="query"/>
+		<property name="description" value="CAS-Catalog query"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="query"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>PagedQuery</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="PagedQuery"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="pageNum" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="pn"/>
+		<property name="longOption" value="pageNum"/>
+		<property name="description" value="Page number for query"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="integer"/>
+		<property name="type" value="int"/>        		
+		<property name="required" value="false"/>        		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage"/>						
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="PagedQuery"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetRunnablesPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetExecutingPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetSortedPage"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="pageSize" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="ps"/>
+		<property name="longOption" value="pageSize"/>
+		<property name="description" value="Page size for query"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="integer"/>
+		<property name="type" value="int"/>		
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="PagedQuery"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetRunnablesPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetExecutingPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetSortedPage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetStatusByState"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetStatusByCategory"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="reducedTerms" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="rt"/>
+		<property name="longOption" value="reducedTerms"/>
+		<property name="description" value="Term filter for query results"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="list"/>
+		<property name="type" value="java.util.List"/>        
+		<property name="required" value="false"/>				
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="PagedQuery"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="message" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="m"/>
+		<property name="longOption" value="message"/>
+		<property name="description" value="Comment to be attached to a state"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="comment"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowState"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="showMessage" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="sm"/>
+		<property name="longOption" value="showMessage"/>
+		<property name="description" value="Use to turn on state message display"/>
+		<property name="hasArgs" value="false"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetPage" p:methodName="showMessage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetStatusByCategory" p:methodName="showMessage"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetStatusByState" p:methodName="showMessage"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="recur" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="r"/>
+		<property name="longOption" value="recur"/>
+		<property name="description" value="Recursively set to all child workflows"/>
+		<property name="hasArgs" value="false"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowState"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="reverse" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="rvs"/>
+		<property name="longOption" value="reverse"/>
+		<property name="description" value="Reverse sort order of workflows"/>
+		<property name="hasArgs" value="false"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetSortedPage"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="xmlModelDef" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="xmd"/>
+		<property name="longOption" value="xmlModelDef"/>
+		<property name="description" value="XML Model Definition File"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="/path/to/file"/>
+		<property name="required" value="false"/>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="StartWorkflow" p:methodName="setModelXmlDefinition"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate" p:methodName="setModelXmlDefinition"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="comparator" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="cmpr"/>
+		<property name="longOption" value="comparator"/>
+		<property name="description" value="Comparator Name"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="CreationDate|ExecutionDate|CompletionDate|AliveTime"/>
+		<property name="required" value="false"/>				
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>GetSortedPage</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>	
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="GetSortedPage"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="priority" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="p"/>
+		<property name="longOption" value="priority"/>
+		<property name="description" value="Priority Level"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="double"/>
+		<property name="type" value="double"/>		
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>ChangeWorkflowPriority</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="ChangeWorkflowPriority"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="StartWorkflow"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+
+	<bean id="url" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="u"/>
+		<property name="longOption" value="url"/>
+		<property name="description" value="URL"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="url"/>
+		<property name="required" value="false"/>				
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="XmlRpcClientFactory" p:methodName="setServerUrl"/>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="RmiClientFactory" p:methodName="setServerUrl"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="startDate" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="sd"/>
+		<property name="longOption" value="startDate"/>
+		<property name="description" value="Start of date range"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="date"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>MultiStartWorkflowByDate</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="endDate" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+		<property name="shortOption" value="ed"/>
+		<property name="longOption" value="endDate"/>
+		<property name="description" value="End of date range"/>
+		<property name="hasArgs" value="true"/>
+		<property name="optionArgName" value="date"/>
+		<property name="requiredOptions">
+			<list>
+				<bean class="org.apache.oodt.commons.option.required.RequiredOption">
+					<property name="optionLongName" value="action"/>
+					<property name="requireAllValues" value="false"/>
+					<property name="optionValues">
+						<list>
+							<value>MultiStartWorkflowByDate</value>                        
+						</list>
+					</property>
+				</bean>
+			</list>
+		</property>		
+		<property name="handler">
+			<bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+				<property name="applyToBeans">
+					<list>
+						<bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiStartWorkflowByDate"/>
+					</list>
+				</property>
+			</bean>
+		</property>
+	</bean>
+	
+	<bean id="printSupportedActions" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="psa"/>
+		<property name="longOption" value="printSupportedActions"/>
+        <property name="description" value="Prints a list and description of all supported WorkflowEngineServerEvents"/>
+        <property name="hasArgs" value="false"/>
+        <property name="required" value="false"/>
+        <property name="performAndQuit" value="true"/>
+        <property name="handler">
+        	<bean class="org.apache.oodt.workflow.server.option.PrintSupportedActionsHandler">
+            	<property name="beanRepo" value="/${pcs.home}/core/workflow/policy/engine-client-config.xml"/>
+            </bean>
+        </property>
+    </bean>
+    
+	<bean id="printSupportedClients" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="psc"/>
+        <property name="longOption" value="printSupportedClients"/>
+        <property name="description" value="Prints a list and description of all supported WorkflowEngineClientFactories"/>
+        <property name="hasArgs" value="false"/>
+        <property name="required" value="false"/>
+        <property name="performAndQuit" value="true"/>
+        <property name="handler">
+        	<bean class="org.apache.oodt.workflow.server.option.PrintSupportedClientsHandler">
+                <property name="beanRepo" value="/${pcs.home}/core/workflow/policy/engine-client-config.xml"/>
+            </bean>
+        </property>
+    </bean>
+
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/engine-client-config.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/engine-client-config.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/engine-client-config.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/engine-client-config.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <import resource="engine-properties.xml"/>
+    <import resource="engine-beans.xml"/>
+	<import resource="action-beans.xml"/>
+	<import resource="engine-client-cmd-line-beans.xml"/>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/engine-properties.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/engine-properties.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/engine-properties.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/engine-properties.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: CatalogService Properties
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <bean class="org.apache.oodt.cas.workflow.util.CasPropertyPlaceholderConfigurer">
+        
+        <!-- Allow for system-level properties to override all properties below -->
+        <property name="systemPropertiesMode" value="2"/>
+        
+        <!-- Properties -->
+        <property name="properties">
+            <props>
+                <prop key="workflowmgr.url">[WORKFLOWMGR_URL];http://localhost:10000</prop>           
+                <prop key="workflowmgr.port">[WORKFLOWMGR_PORT];10000</prop>           
+            	<prop key="resourcemgr.url">[RESOURCEMGR_URL];http://localhost:10001</prop>           
+            	<prop key="pcs.support.home">[PCS_SUPPORT_HOME];/tmp</prop>       
+                <prop key="pcs.home">[PCS_HOME];/tmp</prop>                           
+                <prop key="workflowmgr.home">[WORKFLOWMGR_HOME];/tmp</prop>           
+                <prop key="filemgr.home">[FILEMGR_HOME];/tmp</prop>
+                
+                <prop key="default.page.size">10</prop>           
+            </props>
+        </property>
+        
+    </bean>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/engine-server-cmd-line-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/engine-server-cmd-line-beans.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/engine-server-cmd-line-beans.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/engine-server-cmd-line-beans.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: CAS-Catalog Command-line options
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <bean class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>
+    
+    <!-- CAS-Workflow Server Cmd-Line-Options -->
+    <bean id="serverFactoryBeanId" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="sfb"/>
+        <property name="longOption" value="serverFactoryBeanId"/>
+        <property name="description" value="CommunicationChannelServerFactory Bean Id"/>
+        <property name="hasArgs" value="true"/>
+        <property name="optionArgName" value="bean id"/>
+        <property name="required" value="true"/>
+    </bean>
+    
+    <bean id="printSupportedServers" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="pss"/>
+        <property name="longOption" value="printSupportedServers"/>
+        <property name="description" value="Prints a list and description of all supported CommunicationChannelServerFactories"/>
+        <property name="hasArgs" value="false"/>
+        <property name="required" value="false"/>
+        <property name="performAndQuit" value="true"/>
+        <property name="handler">
+            <bean class="org.apache.oodt.workflow.server.option.PrintSupportedServersHandler">
+                <property name="beanRepo" value="/${pcs.home}/core/workflow/policy/engine-server-config.xml"/>
+            </bean>
+        </property>
+    </bean>
+    
+    <bean id="debug" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="d"/>
+        <property name="longOption" value="debug"/>
+        <property name="description" value="Brings up server in debug mode"/>
+        <property name="hasArgs" value="false"/>
+        <property name="required" value="false"/>        
+        <property name="handler">
+            <bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+                <property name="applyToBeans">
+                    <list>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="XmlRpcEngineFactory"/>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="RmiEngineFactory"/>
+                    </list>
+                </property>
+            </bean>
+        </property>
+    </bean>
+    
+    <bean id="port" lazy-init="true" class="org.apache.oodt.commons.option.CmdLineOption">
+        <property name="shortOption" value="prt"/>
+        <property name="longOption" value="port"/>
+        <property name="description" value="Port Number"/>
+        <property name="hasArgs" value="true"/>
+        <property name="optionArgName" value="port"/>
+        <property name="required" value="false"/>
+        <property name="handler">
+            <bean class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
+                <property name="applyToBeans">
+                    <list>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="RmiServerFactory"/>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="XmlRpcServerFactory"/>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiXmlRpcServerFactory"/>
+                        <bean class="org.apache.oodt.commons.option.handler.BeanInfo" p:bean-ref="MultiMixedServerFactory"/>
+                    </list>
+                </property>
+            </bean>
+        </property>
+    </bean>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/engine-server-config.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/engine-server-config.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/engine-server-config.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/engine-server-config.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <import resource="engine-properties.xml"/>
+    <import resource="catserv-beans.xml"/>
+    <import resource="engine-beans.xml"/>
+    <import resource="engine-server-cmd-line-beans.xml"/>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/event-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/event-beans.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/event-beans.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/event-beans.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: CatalogService Server Actions
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+	<import resource="engine-properties.xml"/>	
+    <import resource="precondition-beans.xml"/>
+    
+	<bean class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>    
+	
+	<bean id="RunTest" lazy-init="true" class="org.apache.oodt.cas.workflow.event.StartWorkflowsEvent">
+        <property name="description" value="Runs TestWorkflow"/>
+    	<property name="modelIds">
+    		<list>
+    			<value>TestWorkflow</value>
+    		</list>
+    	</property>
+    </bean>
+    
+	<bean id="GranuleMaps" lazy-init="true" class="org.apache.oodt.cas.workflow.event.StartWorkflowsEvent">
+		<property name="description" value="Generates MetOpA Granule Maps"/>
+		<property name="modelIds">
+			<list>
+				<value>urn:npp:GranuleMaps</value>
+			</list>
+		</property>
+	</bean>
+	
+	<bean id="DeleteWorkflowsByState" lazy-init="true" class="org.apache.oodt.cas.workflow.event.DeleteWorkflowsByState">
+		<property name="description" value="Deletes workflows by state - Requires input metadata field: 'State'"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	
+	<bean id="DeleteWorkflowsByCategory" lazy-init="true" class="org.apache.oodt.cas.workflow.event.DeleteWorkflowsByCategory">
+		<property name="description" value="Delete workflows by category - Requires input metadata field: 'Category'"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	
+	<bean id="GeneratePerformanceReport" lazy-init="true" class="org.apache.oodt.cas.workflow.event.GeneratePerformanceReport">
+		<property name="description" value="Generates Workflow Performace Report"/>
+		<property name="reportFile" value="${pcs.support.home}/performance/report.txt"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/in-memory-index-cat.sql
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/in-memory-index-cat.sql?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/in-memory-index-cat.sql (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/in-memory-index-cat.sql Thu Dec 23 02:44:23 2010
@@ -0,0 +1,17 @@
+DROP TABLE transactions IF EXISTS;
+DROP TABLE transaction_terms IF EXISTS;
+
+CREATE TABLE transactions
+(
+  transaction_id varchar(256) NOT NULL,
+  transaction_date varchar(256) NOT NULL
+);
+
+CREATE TABLE transaction_terms
+(
+  transaction_id varchar(256) NOT NULL,
+  bucket_name varchar(256) NOT NULL,
+  term_name varchar(256) NOT NULL,
+  term_value varchar(1000) NOT NULL
+);
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/in-memory-ingest-mapper.sql
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/in-memory-ingest-mapper.sql?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/in-memory-ingest-mapper.sql (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/in-memory-ingest-mapper.sql Thu Dec 23 02:44:23 2010
@@ -0,0 +1,11 @@
+DROP TABLE CatalogServiceMapper IF EXISTS;
+
+CREATE TABLE CatalogServiceMapper (
+  CAT_SERV_TRANS_ID VARCHAR(255) NOT NULL ,
+  CAT_SERV_TRANS_FACTORY VARCHAR(255) NOT NULL ,
+  CAT_TRANS_ID VARCHAR(255) NOT NULL ,
+  CAT_TRANS_FACTORY VARCHAR(255) NOT NULL ,
+  CAT_TRANS_DATE VARCHAR(255) NOT NULL ,
+  CATALOG_ID VARCHAR(255) NOT NULL
+);
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/precondition-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/precondition-beans.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/precondition-beans.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/precondition-beans.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: CatalogService Server Actions
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <bean class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>    
+    
+    <bean id="EnsureServerFullyLoaded" lazy-init="true" class="org.apache.oodt.cas.workflow.precondition.EnsureServerFullyLoaded">
+		<property name="description" value="Ensures the Workflow Engine Server cache is completely loaded"/>
+	</bean>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflow-catalog-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflow-catalog-beans.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflow-catalog-beans.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflow-catalog-beans.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright 2009 California Institute of Technology. ALL RIGHTS
+    RESERVED. U.S. Government Sponsorship acknowledged.
+    
+    $Id$
+    
+    Author: bfoster
+    Description: Workflow Catalog
+    
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+    
+    <import resource="engine-properties.xml"/>    
+    
+    <bean id="WorkflowManagerCatalog" lazy-init="true" factory-bean="WorkflowManagerCatalogFactory" factory-method="createCatalog"/>
+    <bean id="WorkflowManagerCatalogFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.system.CatalogFactory">
+        <property name="catalogId" value="urn:PEATE:WorkflowInstancesCatalog"/>
+        <property name="indexFactory" ref="InMemoryIndexFactory"/>
+        <property name="dictionaryFactories">
+            <list>
+                <ref bean="WorkflowManagerDictionaryFactory"/>
+            </list>
+        </property>
+        <property name="restrictQueryPermissions" value="false"/>
+        <property name="restrictIngestPermissions" value="false"/>
+    </bean>
+    
+    <!-- WorkflowManager Indexes -->
+    <bean id="WorkflowManagerDataSourceIndexFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.instance.repo.WorkflowManagerDataSourceIndexFactory">
+        <property name="jdbcUrl" value="jdbc:oracle:thin:@dew.jpl.nasa.gov:1521:npptest"/>        
+        <property name="user" value="nppint"/>
+        <property name="pass" value="Peate"/>
+        <property name="driver" value="oracle.jdbc.driver.OracleDriver"/>
+	</bean>
+    <bean id="DataSourceIndexFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.struct.impl.index.DataSourceIndexFactory">
+		<property name="jdbcUrl" value="jdbc:oracle:thin:@dew.jpl.nasa.gov:1521:npptest"/>        
+		<property name="user" value="nppint"/>
+		<property name="pass" value="Peate"/>
+		<property name="driver" value="oracle.jdbc.driver.OracleDriver"/>
+		<property name="useUTF8" value="true"/>
+	</bean>
+    <bean id="InMemoryIndexFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.struct.impl.index.InMemoryIndexFactory">
+        <property name="jdbcUrl" value="jdbc:hsqldb:file:${pcs.support.home}/hsqldb;shutdown=true"/>        
+        <property name="user" value="sa"/>
+        <property name="pass" value=""/>
+        <property name="driver" value="org.hsqldb.jdbcDriver"/>
+        <property name="tablesFile" value="${workflowmgr.home}/policy/in-memory-index-cat.sql"/>
+    </bean>
+    
+    <!-- WorkflowManager Dictionary -->
+    <bean id="WorkflowManagerDictionaryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.instance.repo.WorkflowManagerDictionaryFactory"/>
+    
+</beans>
+
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/GranuleMaps.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/GranuleMaps.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/GranuleMaps.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/GranuleMaps.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,247 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cas:workflows 
+	xmlns="http://oodt.jpl.nasa.gov/2.0/cas"
+	xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas"
+	xmlns:p="http://oodt.jpl.nasa.gov/2.0/cas/property">
+	
+	<sequential id="urn:npp:GranuleMaps">
+		<configuration>
+			
+			<!-- PCS properties -->
+			<property name="PGETask/Query/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/>
+			<property name="PGETask/Ingest/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/>
+			<property name="PGETask/Ingest/ClientTransferServiceFactory" value="org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory"/>
+			<property name="PGETask/Ingest/MetFileExtension" value="cas"/>
+			<property name="PGETask/Ingest/CrawlerCrawlForDirs" value="false"/>
+			<property name="PGETask/Ingest/CrawlerRecur" value="false"/>
+			<property name="PGETask/Ingest/ActionsIds" value="RmDataFile"/>
+			<property name="PGETask/Ingest/ActionRepoFile" value="file:[PCS_HOME]/core/pge/policy/action-beans.xml" envReplace="true"/>
+			
+			<!-- Timeout properties -->
+			<property name="PGETask/Condition/Timeout" value="30000"/>
+			
+			<!-- metadata element names -->
+			<property name="PGETask/Condition/FilenameKey" value="Filename"/>
+			<property name="PGETask/Condition/StartDateTimeKey" value="StartDateTime"/>
+			<property name="PGETask/Condition/EndDateTimeKey" value="EndDateTime"/>
+			<property name="PGETask/Condition/SortByKey" value="StartDateTime"/>
+			<property name="PGETask/Condition/VersioningKey" value="ProductionDateTime"/>
+			
+			<!-- query properties -->
+			<property name="PGETask/Condition/FilterAlgorClass" value="org.apache.oodt.cas.filemgr.structs.query.filter.WeightedHashFilterAlgor"/>
+			<property name="PGETask/Condition/MinNumOfFiles" value="1"/>
+			<property name="PGETask/Condition/MaxGapSize" value="-1"/>
+			<property name="PGETask/Condition/EpsilonInMillis" value="0"/>			
+			
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/ResultFormat" value="$FileLocation/$Filename"/>
+			
+			<!-- Wait time between block and unblock in minutes -->
+			<property name="BlockTimeElapse" value="1"/>
+
+		</configuration>
+
+		<conditions execution="parallel" type="pre">
+			<condition id-ref="urn:npp:MOA_IASI_L1C_Daily"/>			
+			<condition id-ref="urn:npp:MOA_MHS_L1B_Daily"/>			
+			<condition id-ref="urn:npp:MOA_AMSUA_L1B_Daily"/>			
+		</conditions>
+		
+		<parallel>
+			<task id-ref="urn:npp:Orbits"/>
+			<task id-ref="urn:npp:MoaIasiGPolygon"/>
+			<task id-ref="urn:npp:MoaMhsGPolygon"/>
+			<task id-ref="urn:npp:MoaAmsuaGPolygon"/>
+		</parallel>
+		
+		<parallel>		
+			<conditions execution="sequential" type="pre">
+				<condition id-ref="urn:npp:MOA_ORBITS_FileBased"/>
+			</conditions>
+			
+			<task id-ref="urn:npp:MoaIasiMap"/>
+			<task id-ref="urn:npp:MoaMhsMap"/>
+			<task id-ref="urn:npp:MoaAmsuaMap"/>
+			
+			<!--conditions execution="sequential" type="post">  
+				<condition id-ref="urn:npp:VerifyMapsExist" name="VerifyMapsExist"/>				
+			</conditions-->
+
+		</parallel>
+		
+	</sequential>
+
+
+	<!-- CONDITIONS -->
+	<condition id="urn:npp:MOA_IASI_L1C_Daily" name="MOA_IASI_L1C_Daily" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_IASI_L1C"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="480"/>
+			<property name="PGETask/Condition/EpsilonInMillis" value="30000"/>
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/IASI_L1FormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/IASI_L1FilenamesQuery"/> 
+			<property name="QueueName" value="java"/>
+		</configuration>
+	</condition>			
+	<condition id="urn:npp:MOA_MHS_L1B_Daily" name="MOA_MHS_L1B_Daily" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_MHS_L1B"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="15"/>
+			<property name="PGETask/Condition/EpsilonInMillis" value="60000"/> <!--2mins-->
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/MHS_L1FormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/MHS_L1FilenamesQuery"/> 
+			<property name="QueueName" value="java"/>
+		</configuration>
+	</condition>		
+	<condition id="urn:npp:MOA_AMSUA_L1B_Daily" name="MOA_MHS_L1B_Daily" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_AMSUA_L1B"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="15"/>
+			<property name="PGETask/Condition/EpsilonInMillis" value="60000"/> <!--2mins-->
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/AMSUA_L1FormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/AMSUA_L1FilenamesQuery"/> 
+			<property name="QueueName" value="java"/>
+		</configuration>
+	</condition>	
+	<condition id="urn:npp:MOA_ORBITS_FileBased" name="MOA_ORBITS_FileBased" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_ORBITS"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/>
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/OrbitsFormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/OrbitsFilenamesQuery"/>
+			<property name="QueueName" value="java"/>		
+		</configuration>	
+	</condition>	
+	<condition id="urn:npp:MOA_IASI_POLY_FileBased" name="MOA_IASI_POLY_FileBased" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_IASI_POLY"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/>
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/IASI_GPolyFormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/IASI_GPolyFilenamesQuery"/>
+			<property name="QueueName" value="java"/>	
+		</configuration>	
+	</condition>			
+	<condition id="urn:npp:MOA_MHS_POLY_FileBased" name="MOA_MHS_POLY_FileBased" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_MHS_POLY"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/>
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/MHS_GPolyFormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/MHS_GPolyFilenamesQuery"/>
+			<property name="QueueName" value="java"/>	
+		</configuration>	
+	</condition>			
+	<condition id="urn:npp:MOA_AMSUA_POLY_FileBased" name="MOA_AMSUA_POLY_FileBased" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition">
+		<configuration>
+			<!-- query properties -->
+			<property name="PGETask/Condition/ProductTypeNames" value="MOA_AMSUA_POLY"/>
+			<property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/>
+			<!-- formatting properties for queries -->
+			<property name="PGETask/Condition/FormattedSqlQueryKey" value="Runtime/Condition/AMSUA_GPolyFormattedQuery"/> 
+			<property name="PGETask/Condition/FilenamesSqlQueryKey" value="Runtime/Condition/AMSUA_GPolyFilenamesQuery"/>
+			<property name="QueueName" value="java"/>
+		</configuration>	
+	</condition>	
+	<!--condition id="urn:npp:VerifyMapsExist" name="VerifyMapsExist" class="org.apache.oodt.cas.pge.condition.PGETaskWorkflowCondition"/-->				
+	
+	
+	<!-- TASKS -->
+	<task id="urn:npp:Orbits" name="MoaOrbits" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<configuration>
+			<property name="PGETask/Name" value="MoaOrbits" />
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaOrbits/SPSS_Version]/config/PgeConfig_MoaOrbits.xml"/>
+			<property name="Runtime/Condition/L1FormattedQuery" value="[Runtime/Condition/IASI_L1FormattedQuery]"/>
+			<property name="Runtime/Condition/L1FilenamesQuery" value="[Runtime/Condition/IASI_L1FilenamesQuery]"/>
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaOrbits/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaOrbits/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="MetOpS"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaIasiGPolygon" name="MoaIasiGPolygon" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<configuration>
+			<property name="PGETask/Name" value="MoaIasiGPolygon"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaIasiGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/>
+			<property name="Runtime/Condition/L1FormattedQuery" value="[Runtime/Condition/IASI_L1FormattedQuery]"/>			
+			<property name="Runtime/Condition/L1FilenamesQuery" value="[Runtime/Condition/IASI_L1FilenamesQuery]"/>			
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaIasiGPolygon/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaIasiGPolygon/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="IASI"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaMhsGPolygon" name="MoaMhsGPolygon" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<configuration>
+			<property name="PGETask/Name" value="MoaAmsuaGPolygon"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaAmsuaGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/>
+			<property name="Runtime/Condition/L1FormattedQuery" value="[Runtime/Condition/AMSUA_L1FormattedQuery]"/>						
+			<property name="Runtime/Condition/L1FilenamesQuery" value="[Runtime/Condition/AMSUA_L1FilenamesQuery]"/>						
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaAmsuaGPolygon/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaAmsuaGPolygon/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="AMSUA"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaAmsuaGPolygon" name="MoaAmsuaGPolygon" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<configuration>
+			<property name="PGETask/Name" value="MoaMhsGPolygon"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaMhsGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/>
+			<property name="Runtime/Condition/L1FormattedQuery" value="[Runtime/Condition/MHS_L1FormattedQuery]"/>									
+			<property name="Runtime/Condition/L1FilenamesQuery" value="[Runtime/Condition/MHS_L1FilenamesQuery]"/>									
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaMhsGPolygon/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaMhsGPolygon/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="MHS"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaIasiMap" name="MoaIasiMap" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<conditions execution="sequential" type="pre">
+			<condition id-ref="urn:npp:MOA_IASI_POLY_FileBased"/>			
+		</conditions>
+		<configuration>
+			<property name="PGETask/Name" value="MoaIasiMap"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaIasiMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/>
+			<property name="Runtime/Condition/GPolyFormattedQuery" value="[Runtime/Condition/IASI_GPolyFormattedQuery]"/>									
+			<property name="Runtime/Condition/GPolyFilenamesQuery" value="[Runtime/Condition/IASI_GPolyFilenamesQuery]"/>
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaIasiMap/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaIasiMap/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="IASI"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaMhsMap" name="MoaMhsMap" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<conditions execution="sequential" type="pre">
+			<condition id-ref="urn:npp:MOA_MHS_POLY_FileBased"/>			
+		</conditions>
+		<configuration>
+			<property name="PGETask/Name" value="MoaMhsMap"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaMhsMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/>
+			<property name="Runtime/Condition/GPolyFormattedQuery" value="[Runtime/Condition/MHS_GPolyFormattedQuery]"/>									
+			<property name="Runtime/Condition/GPolyFilenamesQuery" value="[Runtime/Condition/MHS_GPolyFilenamesQuery]"/>
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaMhsMap/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaMhsMap/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="MHS"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	<task id="urn:npp:MoaAmsuaMap" name="MoaAmsuaMap" class="org.apache.oodt.cas.pge.StdPGETaskInstance">
+		<conditions execution="sequential" type="pre">
+			<condition id-ref="urn:npp:MOA_AMSUA_POLY_FileBased"/>			
+		</conditions>
+		<configuration>
+			<property name="PGETask/Name" value="MoaAmsuaMap"/>
+			<property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaAmsuaMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/>
+			<property name="Runtime/Condition/GPolyFormattedQuery" value="[Runtime/Condition/AMSUA_GPolyFormattedQuery]"/>									
+			<property name="Runtime/Condition/GPolyFilenamesQuery" value="[Runtime/Condition/AMSUA_GPolyFilenamesQuery]"/>
+			<property name="Runtime/Condition/SharedMetout" value="[SPSS_CONFIG_HOME]/[MoaAmsuaMap/SPSS_Version]/metout/AllProducts_metadata.xml,[SPSS_CONFIG_HOME]/[MoaAmsuaMap/SPSS_Version]/metout/DailyProduct_metadata.xml"/> 
+			<property name="Instrument" value="AMSUA"/>
+			<property name="QueueName" value="idl"/>
+		</configuration>
+	</task>
+	
+</cas:workflows>

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/Workflow2Test.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/Workflow2Test.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/Workflow2Test.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/Workflow2Test.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cas:workflows 
+    xmlns="http://oodt.jpl.nasa.gov/2.0/cas"
+    xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas"
+    xmlns:p="http://oodt.jpl.nasa.gov/2.0/cas/property">
+    
+    <workflow id="Space" execution="sequential">
+        <task id-ref="Orbit"/>
+        <workflow id="" execution="parallel" p:transIn="23,1" p:transOut="3,9,12">
+            <workflow id="" execution="sequential">
+                <workflow id="" execution="parallel">
+                    <task id-ref="L0a"/>
+                    <task id-ref="L0b"/>
+                    <task id-ref="L0c"/>
+                    <task id-ref="L0d"/>
+                </workflow> 
+                <workflow id-ref="L1a"/>
+            </workflow>
+            <workflow id="" execution="sequential">
+                <task id-ref="Ane"/>
+                <workflow id="" execution="subset-parallel" p:min="int(1)">
+                    <workflow id-ref="GeoCal"/>
+                    <workflow id-ref="Geo"/>             
+                </workflow>
+            </workflow>
+        </workflow>
+    </workflow>
+    
+    <workflow id="L1a" execution="sequential">
+        <task id-ref="L1a"/>
+        <workflow id="" execution="Ntimes" p:min="int(1)" p:creation-rule="class(org.apache.some.class)">            
+            <workflow id="" execution="parallel">
+                <workflow id="" execution="subset-parallel" p:finally="id-ref(TrendDbIn)" p:min="int(1)">
+                    <task id-ref="CalCalcPixDark"/>
+                    <workflow id="" execution="sequential">
+                        <task id-ref="RicaPix"/>
+                        <task id-ref="CalCalcPixLamp"/>
+                    </workflow>
+                    <workflow id="" execution="sequential">
+                        <task id-ref="RicaPix"/>
+                        <task id-ref="CalCalcPix"/>
+                    </workflow>
+                    <task id-ref="SampDark"/>
+                    <workflow id="" execution="sequential">
+                        <task id-ref="RicaSamp"/>
+                        <task id-ref="CalCalcSamp"/>
+                    </workflow>
+                </workflow>
+                <workflow id="" execution="subset-parallel" p:min="int(1)">
+                    <workflow id-ref="GeoCal"/>
+                    <workflow id-ref="Geo"/>
+                </workflow>
+            </workflow>
+        </workflow>            
+    </workflow>
+    
+    <workflow id="Geo" execution="sequential">
+        <task id-ref="RicaSamp"/>                
+        <task id-ref="Geo"/>
+        <task id-ref="CalApp"/>
+        <task id-ref="MetResamp"/>
+        <workflow id="" execution="parallel" p:finally="id-ref(SoundingSelection)">
+            <task id-ref="L2a"/>
+            <task id-ref="L2a"/>                        
+        </workflow>
+    </workflow>
+    
+    <workflow id="SoundingSelection" execution="parallel">
+        <workflow id="" execution="sequential">
+            <task id-ref="SndDbEx"/>
+            <task id-ref="SndDbIn"/>
+        </workflow>
+        <task id-ref="L2aGranPlot"/>                                
+    </workflow>
+    
+    <workflow id="GeoCal" execution="sequential">
+        <task id-ref="RicaSamp"/>                
+        <task id-ref="GeoCal"/>
+        <task id-ref="CalAppC"/>
+    </workflow>
+    
+    <task id="GeoCal" class="" trans-in="1,7" trans-out="5">
+        <conditions>
+            <condition id-ref="4"/>
+            <condition id="2" class="">
+                <properties>
+                    <property name="" value=""/>
+                    <property name="" value=""/>
+                </properties>
+            </condition>        
+        </conditions>
+        <properties>
+            <property name="" value=""/>
+            <property name="" value=""/>
+        </properties>
+    </task>
+    
+    <condition id="1" class="">
+        <properties>
+            <property name="" value=""/>
+            <property name="" value=""/>
+        </properties>
+    </condition>
+    
+</cas:workflows>

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowModelTestFile.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowModelTestFile.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowModelTestFile.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowModelTestFile.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cas:workflows 
+	xmlns="http://oodt.jpl.nasa.gov/2.0/cas"
+	xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas"
+	xmlns:p="http://oodt.jpl.nasa.gov/2.0/cas/property">
+	
+	<workflow id="TestWorkflow" execution="sequential">
+		<configuration extends="test"/>
+		<task id-ref="Orbit"/>
+		<workflow id="tester" execution="sequential">
+			<conditions execution="parallel">
+				<condition id-ref="cond1" p:validateKey="test-key1,test-key2,Orbit_key"/>
+				<condition id-ref="cond2" p:validateKey="test-key1,test-key2,Orbit_key"/>
+			</conditions>
+			
+			<parallel>
+				<workflow id="L0" execution="sequential">
+					<task id-ref="L0a" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key"/>
+					<task id-ref="L0b" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key,L0a_key"/>
+					<task id-ref="L0c" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key"/>
+					<task id-ref="L0d" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key,L0c_key"/>
+				</workflow> 
+				<workflow id-ref="L1a" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key"/>
+			</parallel>
+			<sequential>
+				<task id-ref="Ane" p:validateKey="test-key1,test-key2,Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key,L0c_key,L0d_key"/>
+				<parallel p:validateKey="test-key1,test-key2,Orbit_key,Ane_key,cond1_key,cond2_key,L0b_key,L0c_key,L0d_key">
+					<workflow id-ref="GeoCal"/>
+					<workflow id-ref="Geo"/>             
+				</parallel>
+			</sequential>
+			
+			<conditions execution="sequential">
+				<condition id-ref="cond3" p:validateKey="test-key1,test-key2,L0a_key,L0b_key,L0c_key,L0d_key,L1aTask_key,Ane_key,GeoCalTask_key,GeoTask_key,cond1_key,cond2_key"/>
+			</conditions>
+		</workflow>
+		<task id="final" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"
+			p:validateKey="test-key1,test-key2,L0a_key,L0b_key,L0c_key,L0d_key,L1aTask_key,Ane_key,GeoCalTask_key,GeoTask_key,cond1_key,cond2_key,cond3_key"/>
+	</workflow>
+	
+	<task id="Orbit" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<task id="L0a" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<task id="L0b" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<task id="L0c" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<task id="L0d" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<task id="Ane" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	
+	<condition id="cond1" p:timeout="200" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<condition id="cond2" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	<condition id="cond3" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	
+	<sequential id="L1a">
+		<task id="L1aTask" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	</sequential>
+	
+	<workflow id="GeoCal" execution="sequential">
+		<task id="GeoCalTask" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	</workflow>
+	
+	<workflow id="Geo" execution="sequential">
+		<task id="GeoTask" class="org.apache.oodt.cas.workflow.instance.ValidateMetadataInstance"/>
+	</workflow>
+
+	<configuration name="test">
+		<property name="test-key1" value="test-value1"/>
+		<property name="test-key2" value="test-value2"/>
+	</configuration>
+
+</cas:workflows>
\ No newline at end of file

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowProcessorMapping.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowProcessorMapping.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowProcessorMapping.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/WorkflowProcessorMapping.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+	Copyright 2009 California Institute of Technology. ALL RIGHTS
+	RESERVED. U.S. Government Sponsorship acknowledged.
+	
+	$Id$
+	
+	Author: bfoster
+	Description: CatalogService Beans
+	
+-->
+<processors default="sequential">
+	
+	<!-- don't change ids -->
+	<processor id="condition" class="org.apache.oodt.cas.workflow.processor.ConditionProcessor"/>
+	<processor id="task" class="org.apache.oodt.cas.workflow.processor.TaskProcessor"/>	
+	
+	<!-- custom --> 
+	<processor id="sequential" class="org.apache.oodt.cas.workflow.processor.SequentialProcessor"/>
+	<processor id="parallel" class="org.apache.oodt.cas.workflow.processor.ParallelProcessor"/>
+
+	
+</processors>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/properties.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/properties.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/properties.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/properties.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1 @@
+<property name="ImportedKey" value="ImportedValue"/>
\ No newline at end of file

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_Defaults.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_Defaults.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_Defaults.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_Defaults.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+	Copyright (c) 2008, California Institute of Technology.
+	ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
+-->
+<pgeConfig>
+	
+	<!-- files to ingest -->
+	<output>
+		<dir path="[LogDir]" createBeforeExe="true">
+			<files regExp="SNDR\..*\.cas\.log" metFileWriterClass="[MetListWriter]" args="[CAS_PGE_LOG_Metout]"/>
+			<files regExp="SNDR\..*\.sci\.log" metFileWriterClass="[MetListWriter]" args="[SCI_PGE_LOG_Metout]"/>
+		</dir>
+		<dir path="[ConfigDir]" createBeforeExe="true">
+			<files regExp="SNDR\..*\.config\.[^\\.]{2,6}" metFileWriterClass="[MetListWriter]" args="[SCI_PGE_CONF_Metout]"/>
+		</dir>
+	</output>
+	
+	<customMetadata>
+		
+		<!-- Default Metadata -->
+		<metadata key="ProductionDateTime" val="[DATE.UTC]"/>
+		<metadata key="DataVersion" key-ref="[PGETask/Name]/SPSS_Version"/>
+		<metadata key="JobType" val="PGE"/>    	
+		<metadata key="DataProvider" val="[USER]"/>
+		
+		<!-- PGE directories -->
+		<metadata key="RunInDir" val="[PGE_EXE_ROOT_DIR]/[PGETask/Name]/[DATE_TO_MILLIS([ProductionDateTime],UTC_FORMAT,1970-01-01)]"/>
+		<metadata key="ConfigDir" val="[RunInDir]/ConfigFiles"/>
+		<metadata key="LogDir" val="[RunInDir]/LogFiles"/>
+		
+		<!-- SPSS info -->
+		<metadata key="SpssHome" val="[SPSS_VERSION_HOME]/[DataVersion]"/>
+		<metadata key="SpssConfigPath" val="[SpssHome]/config"/>
+		
+		<!-- CAS-PGE files stored in SPSS path info -->
+		<metadata key="PathToCasFileInSpss" val="[SPSS_CONFIG_HOME]/[DataVersion]"/>
+		<metadata key="SpssPgetaskXsltPath" val="[PathToCasFileInSpss]/xslt"/>
+		<metadata key="SpssPgetaskMetoutPath" val="[PathToCasFileInSpss]/metout"/>
+		<metadata key="SpssPgetaskConfigPath" val="[PathToCasFileInSpss]/config"/>
+		
+		<!-- Xslt info -->
+		<metadata key="ConfigXsltFile" val="[SpssPgetaskXsltPath]/Xslt_[PGETask/Name].xsl"/>
+		<metadata key="TransformWriter" val="gov.nasa.jpl.oodt.cas.pge.writers.xslt.XslTransformWriter"/>
+		<metadata key="XsltUseCDATA" val="true"/>
+		
+		<!-- PCS metadata file info for data file output -->
+		<metadata key="MetListWriter" val="gov.nasa.jpl.oodt.cas.pge.writers.metlist.MetadataListPcsMetFileWriter"/>
+		<metadata key="CAS_PGE_LOG_Metout" val="[Runtime/Condition/SharedMetout],[SpssPgetaskMetoutPath]/CAS_PGE_LOG_metadata.xml"/>
+		<metadata key="SCI_PGE_LOG_Metout" val="[Runtime/Condition/SharedMetout],[SpssPgetaskMetoutPath]/SCI_PGE_LOG_metadata.xml"/>
+		<metadata key="SCI_PGE_CONF_Metout" val="[Runtime/Condition/SharedMetout],[SpssPgetaskMetoutPath]/SCI_PGE_CONF_metadata.xml"/>
+		
+		<!-- helpful keys -->
+		<metadata key="LessThan" val="&#x3C;"/>
+		<metadata key="GreaterThan" val="&#x3E;"/>
+		<metadata key="Exclamation" val="&#33;"/>
+		<metadata key="Ampersand" val="&#38;"/>
+		<metadata key="LogicalAnd" val="[Ampersand][Ampersand]"/>
+		<metadata key="CshPipeToStdOutAndError" val="[GreaterThan][Ampersand][Exclamation]"/>
+		
+	</customMetadata>
+	
+</pgeConfig>
+

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaGPolygon.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaGPolygon.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaGPolygon.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaGPolygon.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright (c) 2008, California Institute of Technology.
+    ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
+-->
+<pgeConfig>
+    
+    <import file="PgeConfig_PGETaskMetadata.xml"/>                                      
+
+    <!-- input file for science PGE that need to be created  -->
+    <dynInputFiles>
+    	<file path="[Defaults/ConfigDir]/[SciPgeConfFileName]" writerClass="[Defaults/TransformWriter]" args="[ConfigXsltFile],[Defaults/XsltUseCDATA]"/>
+    </dynInputFiles>
+        
+    <!-- how to run science PGE -->
+	<exe dir="[Defaults/RunInDir]" shellType="/bin/csh">
+        <cmd>setenv PATH /bin:/usr/bin:/usr/local/bin</cmd>
+        <cmd>setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib</cmd>
+		<cmd>setenv IDL_DLM_PATH [PEATE_3RD_PARTY_DEPOT]/packages/beat-4.2.0_64/lib/beat/idl</cmd>
+		<cmd>setenv SrcDir [Defaults/SpssHome]</cmd>
+		<cmd>setenv IDL_STARTUP [Defaults/SpssHome]/idl/pge/common/src/idl_startup</cmd>
+        <cmd>setenv HOSTTYPE `arch`</cmd>
+        <cmd>setenv HOST `hostname`</cmd>
+        <cmd>setenv IDL_DIR [PEATE_3RD_PARTY_DEPOT]/idl/idl</cmd>
+        <cmd>setenv IDL [PEATE_3RD_PARTY_DEPOT]/idl/idl/bin/idl</cmd>
+		<cmd>setenv NPP_IDL_DIR [Defaults/SpssHome]/idl/pge/common/src</cmd>
+		<cmd>setenv NPP_IDL_SHARED_LIB_DIR [Defaults/SpssHome]/lib</cmd>
+		<cmd>$IDL -e "[ExecutableName], '[Defaults/ConfigDir]/[SciPgeConfFileName]'" [Defaults/CshPipeToStdOutAndError] [Defaults/LogDir]/[CasPgeLogFileName]</cmd>
+        <cmd>set return_value = $?</cmd>
+		<cmd>if ( ${return_value} == 0 [Defaults/LogicalAnd] -e '[GranMap/OUTPUTFILE]' [Defaults/LogicalAnd] ! -z '[GranMap/OUTPUTFILE]' ) then</cmd>
+        <cmd>   exit 0</cmd> 
+        <cmd>else</cmd> 
+        <cmd>   exit 1</cmd> 
+        <cmd>endif</cmd> 
+    </exe>
+    
+    <!-- files to ingest -->
+    <output>
+    	<dir path="[Defaults/RunInDir]" createBeforeExe="true">
+        	<files name="[GranMap/OUTPUTFILE]" metFileWriterClass="[Defaults/MetListWriter]" args="[MoaGPolygonProduct_Metout]"/>
+        </dir>
+    </output>
+    
+    <customMetadata>
+
+        <!-- ProductType Metadata for MoaMap WorkflowCondition -->
+        <metadata key-gen="MOA_[ProdMet/Instrument]_POLY/JobId/Term" val="[ProdMet/JobId]" workflowMet="true"/>
+
+        <!-- Executable Name Mapping -->
+    	<metadata key="ExecutableName/IASI" val="create_gpolygon_iasi"/>
+    	<metadata key="ExecutableName/AMSUA" val="create_gpolygon_amsua"/>
+    	<metadata key="ExecutableName/MHS" val="create_gpolygon_mhs"/>
+    	<metadata key="ExecutableName" key-ref="ExecutableName/[ProdMet/Instrument]"/>
+
+        <!-- custom metadata -->
+    	<metadata key="ProdMet/ExecutablePathnames" val="[Defaults/SpssHome]"/> 
+    	<metadata key="ProdMet/ExecutableVersions" val="[ProdMet/DataVersion]"/> 
+        <metadata key="ProdMet/Mission" val="MetOpA"/>
+        <metadata key="ProdMet/ProcessingLevel" val="L1"/>
+        <metadata key="ProdMet/DataDuration" val="D1" />
+
+        <!-- Config File Metadata -->
+    	<metadata key="ConfigXsltFile" val="[Defaults/SpssPgetaskXsltPath]/Xslt_MoaGPolygonOrbits.xsl"/>
+        
+        <!-- File Naming -->
+        <metadata key="SciPgeLogFileName" val="[NamingConv/SciPgeLogFileNameKey]"/>
+    	<metadata key="SciPgeConfFileName" val="[NamingConv/SciPgeConfFileNameKey]"/>
+    	<metadata key="CasPgeLogFileName" val="[NamingConv/CasPgeLogFileNameKey]"/>
+    	<metadata key="OutputFileName" val="[NamingConv/OutputProductKey]"/>
+
+        <!-- data files -->
+        <metadata key="L1FormattedMetadata" val="[Runtime/Condition/L1FormattedQuery]"/>
+    	<metadata key="L1Filenames" val="[Runtime/Condition/L1FilenamesQuery]"/>
+        <metadata key="ProdMet/InputFiles" key-ref="L1Filenames"/>
+        
+        <!-- PGE metadata -->
+        <metadata key="GranMap/L1FileTypeName" key-ref="ProdMet/Instrument"/>
+        <metadata key="GranMap/NOMINALDAY" key-ref="ProdMet/NominalDate"/>
+        <metadata key="GranMap/OUTPUTPATH" val="[Defaults/RunInDir]/"/>
+        <metadata key="GranMap/OUTPUTFILE" key-ref="OutputFileName"/>
+        <metadata key="GranMap/LOGFILE" val="[Defaults/LogDir]/[SciPgeLogFileName]"/>
+        <metadata key="GranMap/LOGLEVEL" val="0"/>
+        <metadata key="GranMap/DEBUG" val="0"/>
+        
+        <!-- PCS metadata file info for CalSub data file output -->
+    	<metadata key="MoaGPolygonProduct_Metout" val="[Runtime/Condition/SharedMetout],[Defaults/SpssPgetaskMetoutPath]/MoaGPolygonProduct_metadata.xml"/>   
+        
+    </customMetadata>
+    
+</pgeConfig>

Added: oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaMap.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaMap.xml?rev=1052143&view=auto
==============================================================================
--- oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaMap.xml (added)
+++ oodt/branches/wengine-branch/src/main/resources/policy/workflows/v3_1_1/config/PgeConfig_MoaMap.xml Thu Dec 23 02:44:23 2010
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Copyright (c) 2008, California Institute of Technology.
+    ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
+-->
+<pgeConfig>
+    
+    <import file="PgeConfig_PGETaskMetadata.xml"/>                                      
+
+    <!-- input file for science PGE that need to be created  -->
+    <dynInputFiles>
+    	<file path="[Defaults/ConfigDir]/[SciPgeConfFileName]" writerClass="[Defaults/TransformWriter]" args="[ConfigXsltFile],[Defaults/XsltUseCDATA]"/>
+    </dynInputFiles>
+
+    <!-- how to run science PGE -->
+	<exe dir="[Defaults/RunInDir]" shellType="/bin/csh">
+        <cmd>setenv PATH /bin:/usr/bin:/usr/local/bin</cmd>
+        <cmd>setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib</cmd>
+    	<cmd>setenv IDL_DLM_PATH [PEATE_3RD_PARTY_DEPOT]/packages/beat-4.2.0_64/lib/beat/idl</cmd>
+    	<cmd>setenv SrcDir [Defaults/SpssHome]</cmd>
+    	<cmd>setenv IDL_STARTUP [Defaults/SpssHome]/idl/pge/common/src/idl_startup</cmd>
+        <cmd>setenv HOSTTYPE `arch`</cmd>
+        <cmd>setenv HOST `hostname`</cmd>
+        <cmd>setenv IDL_DIR [PEATE_3RD_PARTY_DEPOT]/idl/idl</cmd>
+        <cmd>setenv IDL [PEATE_3RD_PARTY_DEPOT]/idl/idl/bin/idl</cmd>
+    	<cmd>setenv NPP_IDL_DIR [Defaults/SpssHome]/idl/pge/common/src</cmd>
+    	<cmd>setenv NPP_IDL_SHARED_LIB_DIR [Defaults/SpssHome]/lib</cmd>
+		<cmd>$IDL -e "[ExecutableName], '[Defaults/ConfigDir]/[SciPgeConfFileName]'" [Defaults/CshPipeToStdOutAndError] [Defaults/LogDir]/[CasPgeLogFileName]</cmd>
+        <cmd>set return_value = $?</cmd>
+    	<cmd>if ( ${return_value} == 0 [Defaults/LogicalAnd] -e '[GranMap/OUTPUTFILE]' [Defaults/LogicalAnd] ! -z '[GranMap/OUTPUTFILE]' ) then</cmd>
+        <cmd>   exit 0</cmd> 
+        <cmd>else</cmd> 
+        <cmd>   exit 1</cmd> 
+        <cmd>endif</cmd> 
+    </exe>
+    
+    <!-- files to ingest -->
+    <output>
+    	<dir path="[Defaults/RunInDir]" createBeforeExe="true">
+    		<files name="[GranMap/OUTPUTFILE]" metFileWriterClass="[Defaults/MetListWriter]" args="[MoaMapProduct_Metout]"/>
+        </dir>
+    </output>
+    
+    <customMetadata>
+
+        <!-- Executable Name Mapping -->
+    	<metadata key="ExecutableName/IASI" val="create_map_iasi"/>
+    	<metadata key="ExecutableName/AMSUA" val="create_map_amsua"/>
+    	<metadata key="ExecutableName/MHS" val="create_map_mhs"/>
+    	<metadata key="ExecutableName" key-ref="ExecutableName/[ProdMet/Instrument]"/>
+        
+        <!-- custom metadata -->
+    	<metadata key="ProdMet/ExecutablePathnames" val="[Defaults/SpssHome]"/>
+    	<metadata key="ProdMet/ExecutableVersions" val="[ProdMet/DataVersion]"/>
+        <metadata key="ProdMet/Mission" val="MetOpA"/>
+        <metadata key="ProdMet/ProcessingLevel" val="L1"/>
+        <metadata key="ProdMet/DataDuration" val="D1" />
+
+        <!-- Config File Metadata -->
+    	<metadata key="ConfigXsltFile" val="[Defaults/SpssPgetaskXsltPath]/Xslt_MoaMap.xsl"/>
+
+        <!-- File Naming -->
+        <metadata key="SciPgeLogFileName" val="[NamingConv/SciPgeLogFileNameKey]"/>
+    	<metadata key="SciPgeConfFileName" val="[NamingConv/SciPgeConfFileNameKey]"/>
+    	<metadata key="CasPgeLogFileName" val="[NamingConv/CasPgeLogFileNameKey]"/>
+    	<metadata key="OutputFileName" val="[NamingConv/OutputProductKey]"/>
+
+        <!-- data files -->
+        <metadata key="OrbitsFormattedMetadata" val="[Runtime/Condition/OrbitsFormattedQuery]"/>
+    	<metadata key="OrbitsFilenames" val="[Runtime/Condition/OrbitsFilenamesQuery]"/>
+    	<metadata key="GPolyFormattedMetadata" val="[Runtime/Condition/GPolyFormattedQuery]"/>
+    	<metadata key="GPolyFilenames" val="[Runtime/Condition/GPolyFilenamesQuery]"/>
+        <metadata key="ProdMet/InputFiles" val="[OrbitsFilenames],[GPolyFilenames]"/>
+        
+        <!-- PGE metadata -->
+        <metadata key="GranMap/NOMINALDAY" key-ref="ProdMet/NominalDate"/>
+    	<metadata key="GranMap/OUTPUTPATH" val="[Defaults/RunInDir]/"/>
+        <metadata key="GranMap/OUTPUTFILE" key-ref="OutputFileName"/>
+    	<metadata key="GranMap/LOGFILE" val="[Defaults/LogDir]/[SciPgeLogFileName]"/>
+        <metadata key="GranMap/LOGLEVEL" val="0"/>
+        <metadata key="GranMap/DEBUG" val="0"/>
+        <metadata key="GranMap/ORBITFILE" key-ref="OrbitsFormattedMetadata"/>
+        <metadata key="GranMap/GPOLYGON" key-ref="GPolyFormattedMetadata"/>
+        
+        <!-- PCS metadata file info for CalSub data file output -->
+    	<metadata key="MoaMapProduct_Metout" val="[Runtime/Condition/SharedMetout],[Defaults/SpssPgetaskMetoutPath]/MoaMapProduct_metadata.xml"/>   
+
+    </customMetadata>
+    
+</pgeConfig>
+