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] Mon, 04 July 2011 20:27
phisco123  is currently offline phisco123
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 = i.next();
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: Wed Jul 23 14:14:57 EDT 2014

Powered by FUDForum. Page generated in 0.01430 seconds