This content has been marked as final.
Show 6 replies
-
1. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
HowardTreisman Apr 11, 2007 4:25 AM (in response to (Steve_Woodruff))Hi Steve
You should be able to index into the particular document within the list using syntax something like:
/process_data/mylist[1]
(Remember that xpath is 1-based, not zero-based)
Once you have a particular document, there is an xpath function to get the filename of the document (can't remember the syntax, and don't have a running Workflow to test on, but it should show up in the XPath browser.)
I hope this helps...
Howard
http://www.avoka.com -
2. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
(Steve_Woodruff) Apr 12, 2007 2:08 AM (in response to (Steve_Woodruff))Hi Howard,
I'm sorry, I did not find the method to get the filename of a Document object.
The XPath expression builder features the following Document methods:
-
-
getDocLength(com.adobe.idp.Document)
which works fine and returns the object's size in bytes. -
getDocAttribute(com.adobe.idp.Document, String)
which does not work because the Documents instantiated by email receiver do not seem to feature any attributes (invokinglistAttributes()
on the Document objects in the list, returns a Set of length 0). -
setDocAttribute(com.adobe.idp.Document, String, String)
-
getDocContentType(com.adobe.idp.Document)
which _always_ returnsnull
, even for very common files like PDF (I guess the email receiver does not callsetContentType(String)
on Document objects it instantiates). -
setDocContentType(com.adobe.idp.Document, String)
Also, invoking the document'sgetFile().getName()
is pretty useless, as it returns some random number like '3388160831619972562'.
What did I miss?
Regards,
Steve -
-
3. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
HowardTreisman Apr 21, 2007 4:58 AM (in response to (Steve_Woodruff))Hi Steve
You're entirely correct, my apologies for relying on my (somewhat shaky) memory, rather than looking it up.
Please see my other post in response to this question.
We could look at doing something to help you with this.
Regards,
Howard
http://www.avoka.com -
4. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
(WorkflowUser) May 27, 2007 3:50 PM (in response to (Steve_Woodruff))You need to pass the property "wsfilename" to the getDocAttribute -
5. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
(WorkflowUser) May 27, 2007 3:51 PM (in response to (Steve_Woodruff))You need to use "wsfilename" attribute to get the filename.So Pass the "wsfilename" to the getDocAttribute method -
6. Re: Email Receiver QPAC: how to get filenames of attachments stored in list variable?
HowardTreisman May 27, 2007 4:01 PM (in response to (Steve_Woodruff))Hi
The EmailReceiver doesn't set wsfilename, so you can't get it using getDocAttribute.
If either of you would like to discuss further, please email info-at-avoka.com.
Howard