@SuppressWarnings({ "unchecked", "rawtypes" })
public List<IdentityLink> getIdentityLinkQueryToList() {
if (this.taskIdentityLinks==null||this.taskIdentityLinks.size() == 0) {
this.taskIdentityLinks=new ArrayList<IdentityLinkEntity>();
CacheHandler cacheHandler = Context.getProcessEngineConfiguration().getCacheHandler();
Object valueObject = cacheHandler.getCacheData("IdentityLink_" + this.id);
if (valueObject != null) {
this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObject;
return (List) this.taskIdentityLinks;
} else {
List valueObjectTemp = (List) Context.getCommandContext().getIdentityLinkManager().findIdentityLinksByTaskId(this.id);
if (valueObjectTemp.size() > 0) {
cacheHandler.putCacheData("IdentityLink_" + this.id, valueObjectTemp);
this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObjectTemp;
return (List) this.taskIdentityLinks;
} else {
return (List) this.taskIdentityLinks;
}