11-29-2011 11:24 AM
I have a requirement to implement a reply function using an extended Nuxeo mail folder.
Basically I need to include the Nuxeo stored subject and message body as well as the from/to email addresses in the mailTo mail action when the from field is clicked in the extended mail folder's content view.
Questions:
Since I do not have the standard mail content view when I extended the mail folder: What .xml extensions to I need to provide/override in Studio to get the standard mail content view and add the subject and email body text to the 'reply" email?
Is there a better approach?
Is Java Mail an overkill?
Thanks, in advance for any assistance.
12-14-2011 02:35 PM
JIRA entry created
12-14-2011 03:15 PM
How is you Automation chain called from the UI? A button? An action? Something else? This is not clear to me from your description as you did several different tests.
Normally chains that are called through action buttons or links produce an action link of #{operationActionBean.doOperation('yourchain')}
and this propagates the Seam context automatically. Are you doing the call differently?
If you call a Seam-related operation from an Automation chain that's not called through Seam, you have to propagate the proper Seam context from the UI level by passing the conversationId
.
To do that you have two choices:
12-14-2011 04:33 PM
Automation chain is called from UI via a button, created in Studio and linked to a content view. The button is next to the Delete, Add to worklist, Copy buttons on the content View. The content view is displaying the contents of a extended MailFolder.Add to worklist button works ok, my button does not, so I looked at how the Add to worklist button works for an example. I have used SEAM outside of Nuxeo, for other projects, so I assumed, as stated above, the SEAM context (conversationId) is handled "under the covers" if I used a simple Studio UI implementation.
12-14-2011 04:45 PM
The content view is created with a Studio layout, using a set of templates used to display email message fields by the standard email folder. I needed to extend the email folder to create the button(s) I need to work on the email messages contained in the folder.
01-05-2012 01:59 PM
Actually, I think that your null pointer exception is for the object "Document". What you should do is, just after the Fetch Selected Documents, to run an Execution Flow > Run Document Chain. The reason is that the "Document" object is not available when the input is "Documents".
You can see a sample of this at the page 99 on the following slides
A stacktrace would help to make sure of what is null.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.