Anders,
Isn't the BPMN modeling coming from the STP project? I think your
question should be directed toward their specific newsgroup. I think
I've added the right one to the "to" list of the reply.
SOA Tools Platform Webmaster,
Swordfish is a cool name. 8-)
Could I ask that on your home page your Newsgroups Navigation link that
you direct your users to the newsgroup you want them to use. I would
suggest a page much like the one we have for EMFT which will encourage
your uses to search the newsgroup first:
http://www.eclipse.org/modeling/emft/newsgroup-mailing-list.php
Anders Ottosson wrote:
Is
there a way to open a bpmn-model in a standalone main method? Since I'm
a n00b at Eclipse BPMN/GMF/EMF I have tried the FAQ (from EMF) examples
with no luck, the result is always:
---
Exception in thread "main"
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'version'
not found. (file:/C:/src/test/BPMN/credit_report.bpmn, 2, 175)...
---
The code I have tried with is:
...
ResourceSet resourceSet = new ResourceSetImpl();
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("bpmn",
new BpmnResourceFactoryImpl());
BpmnPackageImpl.eINSTANCE.eClass();
Resource resource =
resourceSet.getResource(URI.createFileURI(fileName), true);
try {
resource.load(null);
} catch (Exception e) {
e.printStackTrace();
}
...
I have added the following jars to the classpath:
org.eclipse.core.runtime_3.2.0.v20060603.jar
org.eclipse.emf.common_2.3.0.v200709042200.jar
org.eclipse.emf.ecore.change_2.3.0.v200709042200.jar
org.eclipse.emf.ecore.xmi_2.3.1.v200709042200.jar
org.eclipse.emf.ecore_2.3.1.v200709042200.jar
org.eclipse.stp.bpmn.diagram_1.0.0.061.jar
org.eclipse.stp.bpmn.edit_1.0.0.061.jar
org.eclipse.stp.bpmn_1.0.0.061.jar
Any help would be greatly appreciated!
Regards
Anders
|