Is there any API avaialble which generates Load Rule for Given Components with Hierarchy considered
vinitha dsouza (147●2●23●136)
| asked Jun 28 '18, 10:06 a.m.
edited Jul 03 '18, 11:34 a.m. by David Lafreniere (4.8k●7) Dear Team,
|
Accepted answer
David Lafreniere (4.8k●7)
| answered Jul 03 '18, 11:33 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Sep 18 '18, 9:18 a.m.
There is no out-of-the-box feature which will generate a load rule that will load and respect the component hierarchy in the workspace.
You might have to write your own code to do this. The client-side API for retrieving a component hierarchy of a particular stream or repository workspace is:
IWorkspaceConnection.getComponentHierarchy() (although technically the method is on IFlowNodeConnection, which is the parent class of IWorkspaceConnection).
From there you would have to walk the hierarchy to determine what you need.
Note: There is no API to give the 'parents' of a given component. A component only knows about it's children, and not the other way around. Also be aware that a given component may appear in multiple hierarchy branches (i.e. have multiple parents).
vinitha dsouza selected this answer as the correct answer
|
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.