Val - I would consider not using ExternScriptTaskInstance and instead using the more powerful CAS-PGE.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Chief Architect Instrument Software and Science Data Systems Section (398) NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 168-519, Mailstop: 168-527 Email: chris.a.mattm...@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Associate Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: "Mallder, Valerie" <valerie.mall...@jhuapl.edu> Reply-To: "dev@oodt.apache.org" <dev@oodt.apache.org> Date: Thursday, November 5, 2015 at 12:13 PM To: "dev@oodt.apache.org" <dev@oodt.apache.org> Subject: how to specify workflow’s ExternScripTaskInstance "Args" metadata >Hi All, > >I am trying to create a workflow task using workflow’s >ExternScripTaskInstance class. There is an example extern script task in >the default workflow “tasks.xml” file, but it doesn’t provide any >key/value pairs for the “Args” metadata so I don’t see how the example >task could actually work. The unit test program does not read the task >information from an .xml file, so it is not very helpful in figuring this >out. But, the ExternScriptTaskInstance class fails on line 72 where it >attempts to access the “args.interator()” object, because “args” is null. > Neither of the following task definitions will work. Can someone tell >me what keywords I am need to use to define the “Args” value in the >metadata for the task? > >Thanks, >Val > > > <task id="urn:oodt:helloWorldTask" name="helloWorldTask" >class="org.apache.oodt.cas.workflow.examples.ExternScriptTaskInstance"> > <configuration> > <property name="ShellType" value="/bin/sh"/> > <property name="PathToScript" >value="[PROJECT_HOME]/bin/hello_world.sh" envReplace="true" /> > </configuration> > <metadata key="Args" value="myArg" /> > </task> > > <task id="urn:oodt:helloWorldTask" name="helloWorldTask" >class="org.apache.oodt.cas.workflow.examples.ExternScriptTaskInstance"> > <configuration> > <property name="ShellType" value="/bin/sh"/> > <property name="PathToScript" >value="[PROJECT_HOME]/bin/hello_world.sh" envReplace="true" /> > </configuration> > <customMetadata> > <metadata key="Args" value="myArg" /> > </customMetadata> > </task> > > > > >Valerie A. Mallder > >New Horizons Deputy Mission System Engineer >The Johns Hopkins University/Applied Physics Laboratory >11100 Johns Hopkins Rd (MS 23-282), Laurel, MD 20723 >240-228-7846 (Office) 410-504-2233 (Blackberry) >