Hi Cindy, You are getting a STAXPythonEvaluationError on the argument value because in the STAX Monitor's "Function" tab, you are specifying PRODUCT='Harmony' and you are pressing Enter which adds a '\n' character (a new line character), so you are actually specifying PRODUCT='Harmony'\n (which is not what you specified when passing the argument via the command line).
Note the Python error message displayed indicates this: SyntaxError: ("mismatched input '=' expecting EOF", (", 1. 7, "PRODUCT='Harmony'\n")) If you specify 'PRODUCT='Harmony' (and don't press Enter) for the "Arguments" value in the STAX Monitor, it will work fine. -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: Cindy Zhu <c...@fekete.com> To: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>, Date: 02/16/2012 11:17 AM Subject: [staf-users] Passing arguments from STAX Job Monitor Hi, I have a very simply STAX job as follows: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "D:\DistributedTesting\SilkTestDistribution\stax.dtd"> <stax> <script> VERSION = '3.1.0.102' PRODUCT = 'Harmony' BUILD = 'MainBuild' BRANCHVER = 'REL30x' TESTHOST = '1693W7.Fekete.com' </script> <defaultcall function="main" /> <function name="main" scope="local"> <script> scripts='D:\\Silk\\Apps\Harmony'</script> </function> </stax> I ran this STAX job from STAS Job Monitor, I passed argument PRODUCT=’Harmony’ in the STAX Job Parameters ->FUNCTION->Arguments, and I got the following error: When I passed the argument from the command line, it worked fine though. Please help. Thanks, Cindy ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<image/png>>
------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users