09-17-2012 04:09 PM
09-22-2012 08:39 AM
message.searchingFor=Searching for "{0}"…
In order for the name of the document to be inserted into the subject, you need to adapt the code that generates the subject line, so it passes the required value into the message.10-16-2012 07:47 PM
String assignee = "";
String fileName = "";
//put all document names in string fileName
if (workflowPackage != null)
{
List<ChildAssociationRef> children = services.getNodeService().getChildAssocs(workflowPackage);
for (ChildAssociationRef childAssoc : children) {
NodeRef childNodeRef = childAssoc.getChildRef();
fileName = fileName + (String) services.getNodeService().getProperty(childNodeRef, ContentModel.PROP_NAME) + ", ";
}
fileName = fileName.substring(0, fileName.length() - 2);
}
//get assignee name
for (String assignedAuthority : assignedAuthorites)
{
assignee = assignee + assignedAuthority;
}
NodeRef p = services.getPersonService().getPerson(assignee);
if (p != null)
{
assignee = (String) services.getNodeService().getProperty(p, ContentModel.PROP_FIRSTNAME);
}
subject = "Needs approval - " + fileName;
——————————————————————-
templateArgs.put(ARG_ASSIGNEE, assignee);
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.