It's all about the answers!

Ask a question

License History Provider

SEC Servizi (97123760) | asked Feb 06 '18, 9:07 a.m.

Anyone knows if there is a License History Provider similar to Process Area History Provider to retrieve history details about license assignment e.g. who assigned, when assigned, which type of license etc.

Thanks in advance.

One answer

permanent link
SEC Servizi (97123760) | answered Feb 08 '18, 8:52 a.m.
edited Feb 08 '18, 8:53 a.m.
We found something strange... Repository stores first license assignment. Scenario:
  1. Assign license
  2. Remove license
  3. Assign license
  4. Query license assignment as:
LicenseAssignmentQueryModel queryModel = LicenseAssignmentQueryModel.ROOT;
IItemQuery itemQuery = IItemQuery.FACTORY.newInstance(queryModel);
IPredicate predicate = queryModel.contributor()._eq(itemQuery.newItemHandleArg());
List<IItemHandle> items = queryService.queryItems(itemQuery, new Object[]{ contributorH }, IQueryService.ITEM_QUERY_MAX_PAGE_SIZE).getItemHandles();
Query results will contain details from first assignment (pt. 1) not the last one (pt. 3) e.g., modified and modifiedBy fields.
Sadly, you cannot obtain this details at pt. 2 via API even if data are present on database.

Looking for some hints from RTC Devs...

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.