You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2011/07/05 07:50:22 UTC
svn commit: r1142894 - in
/oodt/trunk/workflow/src/main/resources/examples/wengine: GranuleMaps.xml
hello-goodbye.xml
Author: mattmann
Date: Tue Jul 5 05:50:22 2011
New Revision: 1142894
URL: http://svn.apache.org/viewvc?rev=1142894&view=rev
Log:
- add another example with the baked in workflow tasks - OODT-70
- add in missing ASF license headers
Added:
oodt/trunk/workflow/src/main/resources/examples/wengine/hello-goodbye.xml
Modified:
oodt/trunk/workflow/src/main/resources/examples/wengine/GranuleMaps.xml
Modified: oodt/trunk/workflow/src/main/resources/examples/wengine/GranuleMaps.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/workflow/src/main/resources/examples/wengine/GranuleMaps.xml?rev=1142894&r1=1142893&r2=1142894&view=diff
==============================================================================
--- oodt/trunk/workflow/src/main/resources/examples/wengine/GranuleMaps.xml (original)
+++ oodt/trunk/workflow/src/main/resources/examples/wengine/GranuleMaps.xml Tue Jul 5 05:50:22 2011
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<cas:workflows
xmlns="http://oodt.jpl.nasa.gov/2.0/cas"
xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas"
Added: oodt/trunk/workflow/src/main/resources/examples/wengine/hello-goodbye.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/workflow/src/main/resources/examples/wengine/hello-goodbye.xml?rev=1142894&view=auto
==============================================================================
--- oodt/trunk/workflow/src/main/resources/examples/wengine/hello-goodbye.xml (added)
+++ oodt/trunk/workflow/src/main/resources/examples/wengine/hello-goodbye.xml Tue Jul 5 05:50:22 2011
@@ -0,0 +1,143 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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">
+
+ <parallel id="urn:oodt:TestParallel" name="TestParallel">
+ <sequential id="urn:oodt:SayHelloAndGoodBye" name="HelloGoodbye">
+ <task id-ref="urn:oodt:HelloWorld" />
+ <task id-ref="urn:oodt:GoodbyeWorld" />
+ </sequential>
+
+ <task id-ref="urn:oodt:IntensiveTask" />
+ </parallel>
+
+ <task id="urn:oodt:HelloWorld" name="Hello World"
+ class="org.apache.oodt.cas.workflow.examples.HelloWorld">
+ <conditions execution="sequential">
+ <condition id-ref="urn:oodt:TrueCondition" />
+ </conditions>
+ <configuration>
+ <property name="Person" value="Chris" />
+ </configuration>
+ </task>
+ <task id="urn:oodt:GoodbyeWorld" name="Goodbye World"
+ class="org.apache.oodt.cas.workflow.examples.GoodbyeWorld">
+ <conditions execution="sequential">
+ <condition id-ref="urn:oodt:TrueCondition" />
+ </conditions>
+ <configuration>
+ <property name="Person" value="Chris" />
+ </configuration>
+ </task>
+ <task id="urn:oodt:YoureStuck" name="You're Stuck"
+ class="org.apache.oodt.cas.workflow.examples.GoodbyeWorld">
+ <conditions execution="sequential">
+ <condition id-ref="urn:oodt:FalseCondition" />
+ </conditions>
+ <configuration>
+ <property name="Person" value="Chris" />
+ </configuration>
+ </task>
+ <task id="urn:oodt:IntensiveTask" name="Processor Intensive Task"
+ class="org.apache.oodt.cas.workflow.examples.LongTask">
+ <conditions execution="sequential" />
+ <configuration />
+ </task>
+ <task id="urn:oodt:IntensiveTaskWithWait" name="Intensive Waiter"
+ class="org.apache.oodt.cas.workflow.examples.LongTask">
+ <conditions execution="sequential">
+ <condition id-ref="urn:oodt:LongCondition" />
+ </conditions>
+ <configuration />
+ </task>
+ <task id="urn:oodt:PropReplaceTask" name="PRTask"
+ class="org.apache.oodt.cas.workflow.examples.LongTask">
+ <conditions execution="sequential" />
+ <configuration>
+ <property name="PathToReplace" value="[HOME]/my/path"
+ envReplace="true" />
+ <property name="DontReplaceMe" value="[HOME]/my/path"
+ envReplace="false" />
+ <property name="DontReplaceMeNoSpec" value="[HOME]/my/path" />
+ </configuration>
+ </task>
+ <task id="urn:oodt:NumIncrementTask" name="Num Increment Task"
+ class="org.apache.oodt.cas.workflow.examples.NumIncrementTask">
+ <conditions execution="sequential" />
+ <configuration />
+ </task>
+ <task id="urn:oodt:RandomStatusUpdateTask" name="Random Status Update"
+ class="org.apache.oodt.cas.workflow.examples.RandomStatusUpdateTask">
+ <conditions execution="sequential" />
+ <configuration />
+ </task>
+ <task id="urn:oodt:TestMultiConditionTask" name="Test Multi Condition"
+ class="org.apache.oodt.cas.workflow.examples.HelloWorld">
+ <conditions execution="sequential">
+ <condition id-ref="urn:oodt:TrueCondition" />
+ <condition id-ref="urn:oodt:FalseCondition" />
+ </conditions>
+ <configuration>
+ <property name="Person" value="Chris" />
+ </configuration>
+ </task>
+ <task id="urn:oodt:TestReqMetFieldsTask" name="Test Met Fields"
+ class="org.apache.oodt.cas.workflow.examples.LongTask">
+ <conditions execution="sequential" />
+ <configuration />
+ <requiredMetFields>
+ <metfield name="numSeconds" />
+ </requiredMetFields>
+ </task>
+ <task id="urn:oodt:ExternalScriptTask" name="External Script Task"
+ class="org.apache.oodt.cas.workflow.examples.ExternScriptTaskInstance">
+ <conditions execution="sequential" />
+ <configuration>
+ <property name="ShellType" value="/bin/sh" /> <!-- or /bin/tcsh if you have tcsh shell envionment; or /usr/bin/ if you
+ have a compiled program -->
+ <property name="PathToScript" value="/usr/local/sampleScript.sh" /> <!-- This should include the file name as well -->
+ </configuration>
+ </task>
+ <task id="urn:oodt:mailTask" name="Ingest e-Mail"
+ class="org.apache.oodt.cas.workflow.examples.MailTask">
+ <conditions execution="sequential" />
+ <configuration>
+ <property name="user.name" value="Costin" />
+ <property name="msg.subject" value="Ingest Notification" />
+ <property name="mail.to" value="chris.mattmann@jpl.nasa.gov" />
+ <property name="mail.from" value="oodt@jpl.nasa.gov" />
+ </configuration>
+ </task>
+
+ <condition id="urn:oodt:TrueCondition" name="True Condition"
+ class="org.apache.oodt.cas.workflow.examples.TrueCondition" />
+ <condition id="urn:oodt:FalseCondition" name="False Condition"
+ class="org.apache.oodt.cas.workflow.examples.FalseCondition" />
+ <condition id="urn:oodt:LongCondition" name="Long Condition"
+ class="org.apache.oodt.cas.workflow.examples.LongCondition" />
+ <condition id="urn:oodt:CheckForMetadataKeys" name="Metadata Key Check"
+ class="org.apache.oodt.cas.workflow.examples.CheckForMetadataKeys">
+ <configuration>
+ <property name="reqMetKeys" value="Met1,Met2,Met3" />
+ </configuration>
+ </condition>
+
+
+
+</cas:workflows>