09-03-2010 04:31 AM
var mail = actions.create("mail-attach");
mail.parameters.toacc = "user1";
mail.parameters.from = bpm_assignee.properties["cm:email"];
mail.parameters.subject = "Document" ;
for (var i = 0; i < bpm_package.children.length; i++) {
var doc = bpm_package.children[i];
var docTemplate = companyhome.childByNamePath("/Data Dictionary/Email Templates/Notify Email Templates/doc.html");
var args = new Array();
args["comment"]= "+doc_note+";
var result = doc.processTemplate(docTemplate, args);
mail.parameters.text = result;
mail.execute(doc);
}
09-03-2010 07:37 AM
09-03-2010 07:59 AM
09-03-2010 01:10 PM
var mail = actions.create("mail-attach");after we have established what what is, can you explain next:
mail.parameters.toacc = "user1";
mail.parameters.from = bpm_assignee.properties["cm:email"]; THIS IS USER THAT TASK IS ASSIGNED TO
mail.parameters.subject = "Document" ;
for (var i = 0; i < bpm_package.children.length; i++) {//HIRE YOU SAY: FOR EVERY DOCUMENT IN WORKFLOW ADD IT INSIDE MAIL
var doc = bpm_package.children;
var docTemplate = companyhome.childByNamePath("/Data Dictionary/Email Templates/Notify Email Templates/doc.html");
var args = new Array();
args["comment"]= "+doc_note+";
var result = doc.processTemplate(docTemplate, args);
mail.parameters.text = result;
mail.execute(doc);
}
User doesn't have to specify, "user1" is the email receiver ( mail.parameters.toacc = "user1"; )this is true in WFs but in alfresco browser does not work, because who is user1?? you can answer this to me, who is user1 .
09-06-2010 08:11 AM
1: where you want to put your action? ( on space for instance in details space dialog)..
2: you need to open dialog when you click on action
3: you need to zip space
4: select user to send mail to.
4: send mail and atachment with it
where do you want to put your action on.I'd like to put this action inside the web client UI (explorer), the problem is not "where" but "how" to do this thing.
this is true in WFs but in alfresco browser does not work, because who is user1?? you can answer this to me, who is user1 .
you want to have action on space "send by email" in alfresco browser NOT IN WORKFLOW, to click on it, in dialog you want to select user to sent to(you have to do this, because there is no way alfresco to know this), and put zipped docs hire. please confirm mi this part
11-26-2010 07:28 AM
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.