01-19-2014 11:40 PM
01-20-2014 03:44 AM
02-07-2017 10:29 AM
hey I'm using alfresco community 5.0.d and I could not find this file in the directory.
I want to filter the people search in workflow assignee. (Refer to screenshot)
I need to find the right file which execute or get the list of people after search is made.
Thanks
01-23-2014 05:21 PM
01-23-2014 08:42 PM
personObject.properties.userName = node.properties.userName;
personObject.properties.name = (node.properties.firstName ? node.properties.firstName + " " : "") +
(node.properties.lastName ? node.properties.lastName : "") +
" (" + node.properties.userName + ")" + (node.properties.site ? node.properties.site + " " : "");
personObject.properties.jobtitle = (node.properties.jobtitle ? node.properties.jobtitle : "");
/**
* Creates an Object representing the given person node.
*
* @method createPersonResult
* @param node
* @return Object representing the person
*/
function createPersonResult(node)
{
var personObject =
{
typeShort: node.typeShort,
isContainer: false,
properties: {},
displayPath: node.displayPath,
nodeRef: "" + node.nodeRef
}
// define properties for person
personObject.properties.userName = node.properties.userName;
personObject.properties.name = (node.properties.firstName ? node.properties.firstName + " " : "") +
(node.properties.lastName ? node.properties.lastName : "") +
" (" + node.properties.userName + ")" + (node.properties.site ? node.properties.site + " " : "");
personObject.properties.jobtitle = (node.properties.jobtitle ? node.properties.jobtitle : "");
return personObject;
}
/**
* Creates an Object representing the given group node.
*
* @method createGroupResult
* @param node
* @return Object representing the group
*/
function createGroupResult(node)
{
var groupObject =
{
typeShort: node.typeShort,
isContainer: false,
properties: {},
displayPath: node.displayPath,
nodeRef: "" + node.nodeRef
}
// find most appropriate name for the group
var name = node.properties.name;
if (node.properties.authorityDisplayName != null && node.properties.authorityDisplayName.length > 0)
{
name = node.properties.authorityDisplayName;
}
else if (node.properties.authorityName != null && node.properties.authorityName.length > 0)
{
var authName = node.properties.authorityName;
if (authName.indexOf("GROUP_") == 0)
{
name = authName.substring(6);
}
else
{
name = authName;
}
}
// set the name
groupObject.properties.name = (node.properties.authorityDesignationTag ? "[D] " : "") + name;
return groupObject;
}
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.