Traversal of delivery process? [message #46038] |
Wed, 21 November 2007 02:35  |
Eclipse User |
|
|
|
Hi all,
Here's an EPF composer code question:
I'm building a project management application that needs to read the closure
of a delivery process, including its contained capability patterns and task
descriptors.
Using the LibraryService and LibraryServiceUtil classes I've managed to
programmatically open the bundled method library and read its delivery
processes and their contained capability patterns and activities.
However, I don't seem to be able to get all the Task Descriptors. (Oddly
enough I do get them for the identify_and_refine_requirements in the
construction_phase_iteration, but they are missing in all the other
activities...)
Here's the sequence of operations I use:
String libraryPath =
" file:/C:/EclipseProcessFramework/EPF_Composer_1.2.0.1/epf-co mposer/OpenUP/ ";
URI libraryURI = new URI(libraryPath);
MethodLibrary lib = LibraryService.getInstance().openMethodLibrary("xmi",
libraryURI);
LibraryService.getInstance().setCurrentMethodLibrary(lib);
Map<String, Process> deliveryProcesses =
LibraryServiceUtil.getDeliveryProcesses();
List<CapabilityPattern> capabilityPatterns=
deliveryProcess.getIncludesPatterns();
List<BreakdownElement> activities= capabilityPattern.getBreakdownElements();
List<BreakdownElement> breakdownElements = activity.getBreakdownElements();
My questions are:
1. Is there any additional initialization that I need to do, for the above
code to work correctly?
2. Is this the right approach or are there other ways to get to the
information I'm looking for?
Any information would be much appreciated!
thanks,
Bjorn
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04338 seconds