Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Service Oriented Architecture Tools Platform (STP) » BPMN parsing problem : feature not found
BPMN parsing problem : feature not found [message #374403] Thu, 20 December 2007 04:39 Go to previous message
Eclipse User
Originally posted by: s.balard.prometil.com

Hi,
I've generated BPMN java classes architecture from bpmn.xsd using EMF
genmodel tools. I want to access to BPMN data throught these classes. I've
created a short main method :

public static void main(String[] args) {

// Create a resource set.
ResourceSet resourceSet = new ResourceSetImpl();

final ExtendedMetaData extendedMetaData = new BasicExtendedMetaData(
resourceSet.getPackageRegistry());

resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
extendedMetaData);
resourceSet.getPackageRegistry().put("bpmn", BpmnPackage.eINSTANCE);

resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap()
.put("bpmn", new BpmnResourceFactoryImpl());

// Get the URI of the model file.
URI fileURI = URI.createFileURI(new File("resources/modeler.bpmn")
.getAbsolutePath());
Resource resource = resourceSet.getResource(fileURI, true);

BpmnDiagramImpl root = (BpmnDiagramImpl) resource.getContents().get(0);

System.out.println("loading ok");
}

Here, first lines of modeler.bpmn :

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:BpmnDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:bpmn="http://stp.eclipse.org/bpmn"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmi:id="_l1KbkZgZEdyr1JEvf_kQJA" iD="_l1KbkJgZEdyr1JEvf_kQJA">
<pools xmi:type="bpmn:Pool" xmi:id="_l1zUwZgZEdyr1JEvf_kQJA"
iD="_l1zUwJgZEdyr1JEvf_kQJA" name="Processus">
...
</pools>
</bpmn:BpmnDiagram>

I have a problem with xmi:XXX attribute type. Indeed, for
BpmnResourceFactory, feature version is not defined in bpmn.xsd, it's a
xmi attribute (defined in xmi.xsd).
My question : Is it possible to specify to ignore this attribute type
(with xmi prefix) in BpmnResourceFactory or can I delegate xmi attributes
treatment to another ResourceFactory ?

Regards,
Sebastien
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:BPMN parsing problem : feature not found
Next Topic:Problem with SequenceEdge display
Goto Forum:
  


Current Time: Sat May 25 22:55:37 EDT 2013

Powered by FUDForum. Page generated in 0.02735 seconds