This content has been marked as final. Show 3 replies
It's because the output parameter of the CreatePDF operation is not a document variable but a map (Result).
What you need to do is create a variable of type "map" and sub-type "document" and specify that variable as the output result parameter.
Then after that, use a SetValue to extract the document from the map using the following xPath expression : /process_data/myMap[@id='ConvertedDoc']
and put it in you outputPDF variable.
The reason it returns a map is because ConvertPDF can return more than just the converted document.
Thanks a lot Jasmin.
It's working well.
I have created a custom component that creates a List containing the following types of objects
I have installed this on the Workbench and everything seems fine.
If I use the service with a process what should be the Output Parameter type for it, I tried using a variable with type : list
and sub-type :object ; but I got an error :
Exception data: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@28a028a of type: [B to type: interface java.util.List
Is there some way around it (like Type-Casting)?