Hi,
We have implemented the Review & Approve workflow, and we have some isssues regarding the workflow.
Eg: a workflow is initiated on a content and 2 other resources are added to this same sent to the reviewer for review. after the review when the revr approves/rejects a mail needs to be triggered to the workflow initiator, and the content owners separately i,e 3 contents and three different mails to the owners.
We have tried to send mails to the different owners separately and it works, but we do not have the content details separetely.
var i;
for (i in bpm_package.children)
{
var ownerGuy = bpm_package.children[x].properties.creator;
var ownerMail = people.getPerson(ownerGuy).properties["cm:email"];
var mail = actions.create("mail");
mail.parameters.to = ownerMail;
mail.parameters.subject = "Document Approved: " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties["cm:email"];
mail.parameters.text = "Hiiiiiiiiiiii,"+ people.getPerson(ownerGuy).properties["cm:firstName"] +" Your content has been approved by the reviewer"+bpm_assignee.properties["cm:firstName"]+""+bpm_assignee.properties["cm:lastName"]+" with the following review comments: mail.execute(bpm_package);
}
In the above code we are able to get the creator's info. How can we fetch the content info respectively?
the content name, node link
Please Help
Thanks,
Hari