When I have an output variable defined in my process, I can access it from the Java API using the getOutputParameter method of the InvocationResponse object that gets returned from invoking my orchestration. But getOutputParameter returns an Object, which I have to cast. Is there a list somewhere of the data types that get returned for each variable type so that I know how to cast my results? For example, I know that:
document maps to com.adobe.idp.Document
FormsResult maps to com.adobe.livecycle.formsservice.client.FormsResult
OutputResult maps to com.adobe.livecycle.output.client.OutputResult
It would be especially nice if there were a list like this that also indicated the jar file that contains the required class.
If there isn't a list like this, can someone please tell me what the object type is for a process variable of type xml? Thanks.
Jared
Views
Replies
Total Likes
I thought of the answer to my question almost as I finished typing it! This may be a record for how quickly one can answer his own post. Of course, you can easily figure out what you need to know with this line of code:
myInvocationResponse.getOutputParameter("my_output_param").getClass().getName();
The xml variable is a org.apache.xerces.dom.DocumentImpl.
Jared
Views
Replies
Total Likes
There are too many LC data types to map in a table. The idea is to be familiar with the data types in Java by using the Javadocs and casting the return value to the valid type. You are right - when a process returns XM, you can use org.w3c.dom.Document in your Java app. Likewise, if the process returns a LiveCycle type such as com.adobe.livecycle.assembler.client.AssemblerResult, you can cast it to AssemblerResult.
Views
Replies
Total Likes