Hi all,
I am experiencing a number of challenges while developing a custom action for evaluating an artihmetic expression.
I have developed the custom action in Eclipse and deployed it to MII. Everything works fine until I try to access the "output" property which I have called Result (accessing it by either by creating an outgoing link from it to a local variable OR displaying its value in a subsequent Tracer block). Then I get the following error: "Invalid Variable in Expression ...". The IntrospectionUtilities correctly created a link in the link editor to the "Result" property based on the presence of getResult() and setResult() methods in my action class, so I am not sure why the linking fails.
At the moment I am providing for a fixed number of name-value pairs for variable names and their values in the arithmetic expression, but would like to move to a more flexible solution where the custom action accepts an XML input consisting of a standard rowset with columns for variable name and value.
I would appreciate any code snippets used to:
accept an input of type XML
produce output of type XML
In particular, I am not sure what Java class should be used for XML variables. If it turns out to be better to use String inputs and outputs, I would appreciate recommendations on what classes should be used for parsing XML input and building up the XML output -- I have a fair idea that DOM can be used for both, but would like to simplify my approach as much as possible.
Thank you,
Marc
P.S. The source for the IlluminatorQueryObject class referred to in the v12.0 custom action developer kit would also be very useful.