How to resolve path of item in change
![]()
I have a:
I searching for a way to find the 'remote path' of the item in IChange. But the path relevant to the change.
From the
I tried to use 'IConfiguration.fetchCompleteItem' applied on 'IChange.item()'
But i case item already deleted from the component, all I got is null.
In other cases I get the current path in the component, not the path in the change. For example, If the change was move/rename then the path in the change is different than the current exists one.
Thank
Boaz
|
3 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Feb 04 '16, 12:53 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please see if
Getting your stuff - using the RTC SDK to zip a repository workspace helps.
|
![]()
Well, the code below will find the full remote path of IChange.beforeState() and IChange.afterState()
And it works even in case item already deleted from the component.
Reading the documents, I didn't understand why 'determineAncestorsInHistory' does the trick.
* @param itemOfState item with valid state like {@link IChange#beforeState()} or {@link IChange#afterState()} |
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.