oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfos...@apache.org
Subject svn commit: r1052147 [10/12] - in /oodt/branches/wengine-branch/wengine: ./ 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/ sr...
Date Thu, 23 Dec 2010 02:47:22 GMT
Added: oodt/branches/wengine-branch/wengine/src/main/resources/policy/action-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/action-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/action-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/action-beans.xml Thu Dec 23 02:47:16 2010
@@ -0,0 +1,125 @@
+<?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="precondition-beans.xml"/>
+	 
+	<bean class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>    
+
+	<bean id="PagedAction" abstract="true" class="org.apache.oodt.cas.workflow.server.action.TriggerEvent">
+		<property name="pageNum" value="1"/>
+		<property name="pageSize" value="${default.page.size}"/>		
+	</bean>	
+
+	<bean id="TriggerEvent" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.TriggerEvent">
+		<property name="description" value="Triggers an event in the WorkflowManager Engine"/>
+	</bean>
+	<bean id="GetStatusByState" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetStatusByState">
+		<property name="description" value="Gets an overall status of workflows by state"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	<bean id="GetStatusByCategory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetStatusByCategory">
+		<property name="description" value="Gets an overall status of workflows by category"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	<bean id="GetPage" parent="PagedAction" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetPage">
+		<property name="description" value="Gets a page of workflows that match filter criteria"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	<bean id="GetSupportedStates" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetSupportedStates">
+		<property name="description" value="Gets a list of states supported by the server's engine"/>
+	</bean>
+	<bean id="GetSupportedWorkflows" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetSupportedWorkflows">
+		<property name="description" value="Gets a list of workflow ModelIds supported by the server's engine"/>
+	</bean>
+	<bean id="PrintWorkflow" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.PrintWorkflow">
+		<property name="description" value="Prints out processor skeleton"/>
+	</bean>
+	<bean id="DescribeWorkflow" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.DescribeWorkflow">
+		<property name="description" value="Prints out no-recur processor skeleton descripting info"/>
+	</bean>
+	<bean id="DeleteWorkflow" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.DeleteWorkflow">
+		<property name="description" value="Deletes Workflow and Task Instances"/>
+	</bean>
+	<bean id="DeleteWorkflows" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.DeleteWorkflows">
+		<property name="description" value="Deletes Workflows and Task Instances that match filter criteria"/>
+	</bean>
+	<bean id="GetRunnablesPage" parent="PagedAction" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetRunnablesPage">
+		<property name="description" value="Returns a page of runnable Workflow Task Processors"/>
+	</bean>
+	<bean id="GetExecutingPage" parent="PagedAction" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetExecutingPage">
+		<property name="description" value="Returns a page of executing Workflow Task Processors"/>
+	</bean>
+	<bean id="GetSortedPage" parent="PagedAction" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetSortedPage">
+		<property name="description" value="Returns a sorted results page of Workflow Processors"/>
+		<property name="preConditions">
+			<list>
+				<ref bean="EnsureServerFullyLoaded"/>
+			</list>
+		</property>
+	</bean>
+	<bean id="GetPercentLoaded" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.GetPercentLoaded">
+		<property name="description" value="Returns percent of loaded Workflow Processors"/>
+	</bean>
+	<bean id="PagedQuery" parent="PagedAction" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.PagedQuery">
+		<property name="description" value="Performs a paged query on workflow task instance jobs"/>
+	</bean>
+	<bean id="ChangeWorkflowState" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.ChangeWorkflowState">
+		<property name="description" value="Changes a workflow's state"/>
+	</bean>
+	<bean id="ChangeWorkflowPriority" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.ChangeWorkflowPriority">
+		<property name="description" value="Changes a workflow's priority"/>
+	</bean>
+	<bean id="PrintSupportedEvents" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.PrintSupportedEvents">
+		<property name="description" value="Prints the events registered with server engine"/>
+	</bean>
+	<bean id="StartWorkflow" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.StartWorkflow">
+		<property name="description" value="Starts a workflow"/>
+	</bean>
+	<bean id="MultiStartWorkflowByDate" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.MultiStartWorkflowByDate">
+		<property name="description" value="Starts a workflow over a date range"/>
+		<property name="dateFormat" value="yyyy-MM-dd"/>
+		<property name="incrementMinutes" value="1440"/>
+		<property name="dateMetadataKeys">
+			<list>
+				<value>NominalDate</value>
+				<value>AllProductTypes/NominalDate/Term</value>
+			</list>
+		</property>
+	</bean>
+	<bean id="Shutdown" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.Shutdown">
+		<property name="description" value="Shuts down the Workflow Engine Server"/>
+	</bean>
+	<bean id="PauseRunner" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.PauseRunner">
+		<property name="description" value="Pauses the job submission runner thread"/>
+	</bean>
+	<bean id="ResumeRunner" lazy-init="true" class="org.apache.oodt.cas.workflow.server.action.ResumeRunner">
+		<property name="description" value="Resumes the job submission runner thread"/>
+	</bean>
+	
+</beans>
+

Added: oodt/branches/wengine-branch/wengine/src/main/resources/policy/catserv-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/catserv-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/catserv-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/catserv-beans.xml Thu Dec 23 02:47:16 2010
@@ -0,0 +1,74 @@
+<?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
+    
+-->
+<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"/>    
+    
+    <!-- Catalog Services -->
+    <bean id="CatalogServiceLocalFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.system.impl.CatalogServiceLocalFactory">
+        <property name="transactionIdFactory" value="org.apache.oodt.cas.catalog.struct.impl.transaction.UuidTransactionIdFactory"/>
+        <property name="catalogRepositoryFactory" ref="WorkflowManagerRepositoryFactory"/>
+        <property name="ingestMapperFactory" ref="InMemoryIngestMapperFactory"/>
+        <property name="pluginStorageDir" value="${pcs.support.home}/cas-catalog/plugin-jars/"/>
+        <property name="restrictQueryPermissions" value="false"/>
+        <property name="restrictIngestPermissions" value="false"/>
+        <property name="oneCatalogFailsAllFail" value="true"/>
+        <property name="simplifyQueries" value="true"/>
+        <property name="disableIntersectingCrossCatalogQueries" value="false"/>
+        <property name="crossCatalogResultSortingThreshold" value="200"/>
+    </bean>    
+    <bean id="CatalogServiceClientFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.system.impl.CatalogServiceClientFactory">
+        <property name="communicationChannelClientFactory" ref="XmlRpcClientFactory"/>
+        <property name="autoPagerSize" value="1000"/>
+    </bean>
+    
+    <!-- Communication Channels -->
+    <bean id="XmlRpcServerFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.server.channel.xmlrpc.XmlRpcCommunicationChannelServerFactory">
+        <property name="port" value="${catalog.port}"/>
+        <property name="catalogServiceFactory" ref="CatalogServiceLocalFactory"/>
+    </bean> 
+    <bean id="XmlRpcClientFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.server.channel.xmlrpc.XmlRpcCommunicationChannelClientFactory">
+        <property name="serverUrl" value="${catalog.url}"/>
+        <property name="requestTimeout" value="20"/>
+        <property name="connectionTimeout" value="60"/>
+        <property name="chunkSize" value="1024"/>
+    </bean> 
+    
+    <!-- Catalog Repositories -->
+    <bean id="WorkflowManagerRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.repository.SpringCatalogRepositoryFactory">
+        <property name="catalogBeanRepo" value="/${pcs.home}/core/workflow/policy/workflow-catalog-beans.xml"/>
+    </bean>
+    <bean id="SerializedCatalogRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.repository.SerializedCatalogRepositoryFactory">
+        <property name="storageDir" value="${pcs.support.home}/cas-catalog/catalog-repo"/>
+    </bean>
+    
+    <!-- Mapper Indexes -->
+    <bean id="OracleIngestMapperFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.mapping.OracleIngestMapperFactory">
+        <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="InMemoryIngestMapperFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.mapping.InMemoryIngestMapperFactory">
+        <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-ingest-mapper.sql"/>        
+    </bean>
+    <bean id="MemoryBasedIngestMapperFactory" lazy-init="true" class="org.apache.oodt.cas.catalog.mapping.MemoryBasedIngestMapperFactory"/>
+    
+</beans>
+

Added: oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-beans.xml Thu Dec 23 02:47:16 2010
@@ -0,0 +1,173 @@
+<?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
+    
+-->
+<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.commons.spring.postprocessor.SetIdBeanPostProcessor"/>    
+    
+    <!-- Workflow Engines -->
+        <!-- Abstract -->
+    <bean id="WorkflowEngineLocalFactory" lazy-init="true" abstract="true" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineLocalFactory">
+        <property name="modelRepoFactory" ref="XmlWorkflowModelRepositoryFactory"/>
+        <property name="processorRepoFactory" ref="XStreamWorkflowProcessorRepositoryFactory"/>
+        <property name="instanceRepoFactory" ref="LocalCatalogServiceInstanceRepositoryFactory"/>
+        <property name="eventRepoFactory" ref="SpringBasedEngineEventRepositoryFactory"/>
+        <property name="processorMapFactory" ref="XmlBasedProcessorMapFactory"/>
+        <property name="priorityManagerFactory" ref="HighestPriorityFIFOManagerFactory"/>
+        <property name="runnerFactory" ref="LocalRunnerFactory"/>
+        <property name="metadataKeysToCache">
+            <list>
+                <value>CollectionLabel</value>
+            </list>
+        </property>
+        <property name="debug" value="false"/>
+    </bean>    
+    <bean id="WorkflowEngineClientFactory" lazy-init="true" abstract="true" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineClientFactory">
+        <property name="autoPagerSize" value="1000"/>
+    </bean>
+        <!-- XML-RPC -->
+    <bean id="XmlRpcServerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.xmlrpc.XmlRpcCommunicationChannelServerFactory">
+        <property name="port" value="${workflowmgr.port}"/>
+        <property name="workflowEngineFactory" ref="XmlRpcEngineFactory"/>
+    </bean> 
+    <bean id="XmlRpcEngineClientFactory" lazy-init="true" parent="WorkflowEngineClientFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineClientFactory">
+        <property name="communicationChannelClientFactory" ref="XmlRpcClientFactory"/>
+    </bean>
+    <bean id="XmlRpcEngineFactory" lazy-init="true" parent="WorkflowEngineLocalFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineLocalFactory">
+        <property name="communicationChannelClientFactory" ref="XmlRpcClientFactory"/>
+    </bean>    
+    <bean id="XmlRpcClientFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.xmlrpc.XmlRpcCommunicationChannelClientFactory">
+        <property name="serverUrl" value="${workflowmgr.url}"/>
+        <property name="requestTimeout" value="20"/>
+        <property name="connectionTimeout" value="60"/>
+        <property name="chunkSize" value="1024"/>
+        <property name="connectionRetries" value="20"/>
+        <property name="connectionRetryIntervalSecs" value="30"/>
+    </bean> 
+        <!-- RMI -->
+    <bean id="RmiServerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.rmi.RmiCommunicationChannelServerFactory">
+        <property name="port" value="${workflowmgr.port}"/>
+        <property name="name" value="WorkflowEngine"/>
+        <property name="workflowEngineFactory" ref="RmiEngineFactory"/>
+    </bean> 
+    <bean id="RmiEngineClientFactory" lazy-init="true" parent="WorkflowEngineClientFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineClientFactory">
+        <property name="communicationChannelClientFactory" ref="RmiClientFactory"/>
+    </bean>
+    <bean id="RmiEngineFactory" lazy-init="true" parent="WorkflowEngineLocalFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineLocalFactory">
+        <property name="communicationChannelClientFactory" ref="RmiClientFactory"/>
+    </bean>    
+    <bean id="RmiClientFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.rmi.RmiCommunicationChannelClientFactory">
+        <property name="serverUrl" value="${workflowmgr.url}"/>
+        <property name="name" value="WorkflowEngine"/>
+    </bean> 
+        <!-- MULTI XML-RPC -->
+    <bean id="MultiXmlRpcServerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.MultiCommunicationChannelServerFactory">
+        <property name="port" value="${workflowmgr.port}"/>
+        <property name="workflowEngineFactory" ref="XmlRpcEngineFactory"/>
+        <property name="serverFactories">
+            <list>
+                <ref bean="XmlRpcServerFactory"/>
+                <ref bean="XmlRpcServerFactory"/>
+            </list>
+        </property>        
+    </bean>
+    <bean id="MultiXmlRpcEngineClientFactory" lazy-init="true" parent="WorkflowEngineClientFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineClientFactory">
+        <property name="communicationChannelClientFactory" ref="MultiXmlRpcClientFactory"/>
+    </bean>
+    <bean id="MultiXmlRpcClientFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.MultiCommunicationChannelClientFactory">
+        <property name="serverUrl" value="${workflowmgr.url}"/>
+        <property name="useClientFactory" ref="XmlRpcClientFactory"/>
+        <property name="clientFactories">
+            <list>
+                <ref bean="XmlRpcClientFactory"/>
+                <ref bean="XmlRpcClientFactory"/>
+            </list>
+        </property>  
+    </bean> 
+        <!-- MULTI MIXED -->    
+    <bean id="MultiMixedServerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.MultiCommunicationChannelServerFactory">
+        <property name="port" value="${workflowmgr.port}"/>
+        <property name="workflowEngineFactory" ref="XmlRpcEngineFactory"/>
+        <property name="serverFactories">
+            <list>
+                <ref bean="XmlRpcServerFactory"/>
+                <ref bean="RmiServerFactory"/>
+            </list>
+        </property>        
+    </bean> 
+    <bean id="MultiMixedEngineClientFactory" lazy-init="true" parent="WorkflowEngineClientFactory" class="org.apache.oodt.cas.workflow.engine.WorkflowEngineClientFactory">
+        <property name="communicationChannelClientFactory" ref="MultiMixedClientFactory"/>
+    </bean>
+    <bean id="MultiMixedClientFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.server.channel.MultiCommunicationChannelClientFactory">
+        <property name="serverUrl" value="${workflowmgr.url}"/>
+        <property name="useClientFactory" ref="XmlRpcClientFactory"/>
+        <property name="clientFactories">
+            <list>
+                <ref bean="XmlRpcClientFactory"/>
+                <ref bean="RmiClientFactory"/>
+            </list>
+        </property>  
+    </bean> 
+        <!-- Default -->
+    <bean id="DefaultWorkflowEngineClientFactory" lazy-init="true" parent="XmlRpcEngineClientFactory"/>
+    <bean id="DefaultServerFactory" lazy-init="true" parent="XmlRpcServerFactory"/>
+    
+    <!-- Runner Factories -->
+    <bean id="LocalRunnerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.engine.runner.LocalEngineRunnerFactory"/>
+    <bean id="ResourceRunnerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.engine.runner.ResourceRunnerFactory">
+        <property name="resourceManagerUrl" value="${resourcemgr.url}"/>
+    </bean>
+    
+    <!-- Event Repositories -->
+    <bean id="SpringBasedEngineEventRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.event.repo.SpringBasedEngineEventRepositoryFactory">
+        <property name="beanRepo" value="/${pcs.home}/core/workflow/policy/event-beans.xml"/>
+    </bean>
+    
+    <!-- Model Repositories -->
+    <bean id="XmlWorkflowModelRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.model.repo.XmlWorkflowModelRepositoryFactory">
+        <property name="modelFiles">
+            <list>
+                <value>/${pcs.home}/core/workflow/policy/workflows</value>
+            </list>
+        </property>
+    </bean>
+    
+    <!-- Processor Repositories -->
+    <bean id="XStreamWorkflowProcessorRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.processor.repo.XStreamWorkflowProcessorRepositoryFactory">
+        <property name="repoDirectory" value="/${pcs.support.home}/processorRepo"/>
+    </bean>
+    
+    <!-- Workflow Instance Repositories -->
+    <bean id="LocalCatalogServiceInstanceRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.instance.repo.WorkflowInstanceRepositoryFactory">
+        <property name="catalogServiceFactory" ref="CatalogServiceLocalFactory"/>
+    </bean>
+    <bean id="ClientCatalogServiceInstanceRepositoryFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.instance.repo.WorkflowInstanceRepositoryFactory">
+        <property name="catalogServiceFactory" ref="CatalogServiceClientFactory"/>
+    </bean>
+    
+    <!-- Processor Maps -->
+    <bean id="XmlBasedProcessorMapFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.processor.map.XmlBasedProcessorMapFactory">
+        <property name="xmlFile" value="/${pcs.home}/core/workflow/policy/workflows/proc-mapping/WorkflowProcessorMapping.xml"/>
+    </bean>
+    
+    <!-- Priority Managers -->
+    <bean id="FILOPriorityManagerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.priority.FILOPriorityManagerFactory"/>
+    <bean id="HighestPriorityFirstManagerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.priority.HighestPriorityFirstManagerFactory"/>
+    <bean id="HighestPriorityFIFOManagerFactory" lazy-init="true" class="org.apache.oodt.cas.workflow.priority.HighestPriorityFIFOManagerFactory">
+        <property name="secondsBetweenBoosts" value="60"/>
+        <property name="boostAmount" value="0.001"/>
+        <property name="boostCap" value="7.0"/>
+    </bean>
+    
+</beans>

Added: oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-cmd-line-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-cmd-line-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-cmd-line-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-cmd-line-beans.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/engine-client-config.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-config.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-config.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-client-config.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/engine-properties.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-properties.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-properties.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-properties.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/engine-server-cmd-line-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-cmd-line-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-cmd-line-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-cmd-line-beans.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/engine-server-config.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-config.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-config.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/engine-server-config.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/event-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/event-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/event-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/event-beans.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/in-memory-index-cat.sql
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-index-cat.sql?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-index-cat.sql (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-index-cat.sql Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/in-memory-ingest-mapper.sql
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-ingest-mapper.sql?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-ingest-mapper.sql (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/in-memory-ingest-mapper.sql Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/precondition-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/precondition-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/precondition-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/precondition-beans.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/workflow-catalog-beans.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflow-catalog-beans.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflow-catalog-beans.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflow-catalog-beans.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/workflows/GranuleMaps.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/GranuleMaps.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/GranuleMaps.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/GranuleMaps.xml Thu Dec 23 02:47:16 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/wengine/src/main/resources/policy/workflows/Workflow2Test.xml
URL: http://svn.apache.org/viewvc/oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/Workflow2Test.xml?rev=1052147&view=auto
==============================================================================
--- oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/Workflow2Test.xml (added)
+++ oodt/branches/wengine-branch/wengine/src/main/resources/policy/workflows/Workflow2Test.xml Thu Dec 23 02:47:16 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>



Mime
View raw message