10-07-2013 10:41 AM
01-19-2016 05:37 AM
04-01-2016 03:23 PM
06-20-2016 09:25 PM
01-25-2017 07:15 AM
Hi,
I have tried your approach but I face problem with
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'fg-mail' is defined
I think that fg-mail (mail) is derivate that you mentioned.
Is it that one from Savic Prvoslav which you forward?
Could you please send it to me edo_nick@azet.sk
Thanks in advance
01-25-2017 01:24 PM
I have uploaded the file. It should be discoverable looking for documents titled Send HTML Mail With Attachments
The file is SendHTMLMailWithAttachments.zip. Source code is in the zip.
If you can't find it, reply & I will send it you directly.
01-26-2017 04:46 AM
Thank you. I found it.
01-30-2017 11:03 AM
Hi. I have tried to use this javascript in workflow script task.
Workflow failed with exception
javax.script.ScriptException: ReferenceError: "actions" is not defined in <eval> at line number 1
This line contains: var mail = actions.create("fg-mail");
01-31-2017 04:37 AM
Eduard
Javascript in Workflows execute in a different context to Javascript in Alfresco and it seems Alfresco “actions” are not defined in that context. Alfresco workflow is Activiti which has some common objects, but not that many it would seem.
I have very little experience of workflow but this does not surprise me and I doubt that you could easily make Alfresco “actions” available in workflow.
To use my action you could use the following workaround:-
· Create a rule on the folder that contains the documents that will be in your workflows. It can be a set of folders & sub folders of course.
· Create a custom aspect called anything you like but let’s call it “sendmail” with properties mailsent (Boolean) and mailsentat (date).
· Get your workflow to add this aspect to your document when you want to send your email.
· Get you rule to check if this aspect exists on your document whenever your document is updated and if the aspect doesn’t exists add it, send the mail and update the properties. If the aspect does exist, check the values and see if mailsent is true. If it isn’t, send the mail and update the properties.
Now; I suspect that you could make my special mail object available in Activiti via configuration, but that is well beyond my paygrade.
Bob
02-10-2017 03:30 PM
Hi rjohnson,
I installed alfresco 5.1 and I have the same problem
could you please send me your code? My mail is: paul.zan@gmail.com
Thank you so much
Paul
02-11-2017 07:33 PM
Paul
The source is available within the portal.
Search for
SendHTMLMailWithAttachments.zip
If you can’t find it; let me know.
Bob
Tags
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.