cancel
Showing results for 
Search instead for 
Did you mean: 

Getting exception while Retreving the history identityLinks

sai576
Champ on-the-rise
Champ on-the-rise
I am getting Null Pointer Exception while trying to retreving the history identityLinks in the following way.

HistoricIdentityLinkEntityManager historicIdentityLinkEntityManager=new HistoricIdentityLinkEntityManager();
List<HistoricIdentityLinkEntity> identityLinks=historicIdentityLinkEntityManager.
                                                                                  findHistoricIdentityLinksByTaskId(taskId);//Getting NullPointer Exception

for (HistoricIdentityLinkEntity identityLink: identityLinks)
{
    if(identityLink.getType().equals(IdentityLinkType.CANDIDATE))
    {
      List<Group> groups = identityService.createGroupQuery().groupId(identityLink.getGroupId()).list();
   for(Group group : groups)
   {
      System.out.println("group==>"+group.getId());
   }
   }
}

Whatever i am passing taskId that is present in table.I checked that one also.If anything mistake in my code tell me where did i mistaken.

Thanks &Regards
Sai Kumar R

2 REPLIES 2

sai576
Champ on-the-rise
Champ on-the-rise
Anyone could help regarding above one.

trademak
Star Contributor
Star Contributor
You are using an internal class and just instantiate it and think you can just use it?
We offer an API via the HistoryService to work with historic data. Please use that entry point.

Best regards,
Getting started

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.