Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » Traversal of delivery process?
Traversal of delivery process? [message #585722] Wed, 21 November 2007 07:35
Bjorn Gustafsson is currently offline Bjorn GustafssonFriend
Messages: 9
Registered: July 2009
Junior Member
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
Previous Topic:Why aren't my Activity Diagrams being published?
Next Topic:Missing activity diagrams
Goto Forum:
  


Current Time: Fri Apr 26 20:23:39 GMT 2024

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

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

Back to the top