[kepler-users] Port parameters

Barbara Lerner blerner at mtholyoke.edu
Tue Oct 20 12:05:34 PDT 2009


Hi,

I would like to be able to run a Kepler workflow from a command line  
and pass in parameter values on the command line.  I have found in the  
user's manual that I can say:

kepler -runwf workflow.xml -x 4 -y "foo"

to set parameters x and y.

Am I correct in believing that x and y would be port parameters in my  
top-level workflow in the file workflow.xml?

When I try to create port parameters, it behaves differently than the  
manual indicates.  I can find the PortParameter component and place it  
on my workflow.  When I right-click on it, I can use Customize Name to  
change its name.  The window that pops up looks different than the one  
in the manual, showing an additional field labeled "Display name".   
This seems ok, but the Configure Attribute seems quite different than  
what the manual describes.  The manual shows a single field labeled by  
the name set with the Customize Name command.  Instead, I see 3  
fields:  class, semanticType00 and semanticType11.  There does not  
appear to be a place to set a value.

It seems that might be ok since I want to pass the value in on the  
command line, but if I try to reference my parameter as the value  
parameter of a StringConstant, saying $echoString (assuming that I  
named it echoString earlier), I get the message:

Error evaluating expression: $echoString
   in .Echo.String Constant.value
Because:
The ID echoString is undefined.

Please enter a new value:

So, I have several questions:
- Can I use port parameters to get parameter values from the command  
line?
- How do I do that?

I am using Kepler 1.0.0 on a Mac. The manual is dated May 12, 2008.

Thanks,
   Barbara

------------------

Barbara Lerner                                                  "Power  
to the peaceful"
Associate Professor                                                   
-- Michael Franti
Computer Science Dept.
Mt. Holyoke College







More information about the Kepler-users mailing list