Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Oriented Architecture Tools Platform (STP) » BPMN parsing problem : feature not found
BPMN parsing problem : feature not found [message #607594] Thu, 20 December 2007 09:39
Eclipse UserFriend
Originally posted by:

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.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
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")
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=""
xmi:id="_l1KbkZgZEdyr1JEvf_kQJA" iD="_l1KbkJgZEdyr1JEvf_kQJA">
<pools xmi:type="bpmn:Pool" xmi:id="_l1zUwZgZEdyr1JEvf_kQJA"
iD="_l1zUwJgZEdyr1JEvf_kQJA" name="Processus">

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 ?

Previous Topic:[Announce] BPMN2 component proposal
Next Topic:BPMN parsing problem : feature not found
Goto Forum:

Current Time: Mon Jan 25 18:35:52 GMT 2021

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

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

Back to the top