Skip to main content



      Home
Home » Archived » EPF » Traversal of delivery process?
Traversal of delivery process? [message #46038] Wed, 21 November 2007 02:35 Go to next message
Eclipse UserFriend
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
Re: Traversal of delivery process? solved [message #46127 is a reply to message #46038] Fri, 23 November 2007 16:01 Go to previous message
Eclipse UserFriend
Sorry for the noice -
I figured it out:
Traversing the structure using the content providers for the process views
did the trick.

thanks,
Bjorn
Re: Traversal of delivery process? solved [message #585752 is a reply to message #46038] Fri, 23 November 2007 16:01 Go to previous message
Eclipse UserFriend
Sorry for the noice -
I figured it out:
Traversing the structure using the content providers for the process views
did the trick.

thanks,
Bjorn
Previous Topic:Automated tests of published OpenUP
Next Topic:Custom Category misbehavior across plugins
Goto Forum:
  


Current Time: Wed May 07 23:42:28 EDT 2025

Powered by FUDForum. Page generated in 0.04338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top