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)