Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » About Getting task from XMI files
About Getting task from XMI files [message #692658] Tue, 05 July 2011 00:27
phisco123  is currently offline phisco123 Friend
Messages: 3
Registered: July 2011
Junior Member
I saw a topic called
"Getting RoleSets from xmi files"... this topic was posted by a guy called quentin..

So, here's the thing... when this Guy
Quentin says:

" I can list all the roles from my EPF Composer model, I can also list all the tasks and phases, as well as the work products, etc."

How can he do it???... I mean, I tried to do it with the same code that he posted but it doesn't work:

ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.getResource(fileURI,true);
for (Iterator i = resource.getAllContents(); i.hasNext()Wink {
Object o =;
if (o instanceof Task) {
Task ta = (Task)o;
System.out.println(" - Role : " + ta.getPresentationName());

It doesn't even read the xmi.. It doesn't get in it...

So, would you help me with this... or if you have a code example of how to do it, that would be awsome...

I really need to get the info(task, roles...) from the xmi file

Ok, that' all, I hope you can help me..

Thanks a lot...
Previous Topic:EPF XMI files and UMA.ecore
Next Topic:EPF XMI files to XHTML
Goto Forum:

Current Time: Fri Oct 07 10:47:50 GMT 2022

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

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

Back to the top