Home » Modeling » Modeling (top-level project) » Open BPMN model in main method
Open BPMN model in main method [message #381205] |
Fri, 21 September 2007 12:41 |
Eclipse User |
|
|
|
Originally posted by: anders.ottosson3.telia.com
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$1Diagnos ticWrappedException:
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
|
|
|
Re: Open BPMN model in main method [message #381245 is a reply to message #381205] |
Fri, 21 September 2007 13:18 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070303010506020600000200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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$1Diagnos ticWrappedException:
> 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
--------------070303010506020600000200
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anders,<br>
<br>
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. <br>
<br>
SOA Tools Platform Webmaster,<br>
<br>
Swordfish is a cool name. <span class="moz-smiley-s11"><span> 8-) </span></span>
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:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emft/newsgroup-mailing-list. php"> http://www.eclipse.org/modeling/emft/newsgroup-mailing-list. php</a><br>
</blockquote>
<br>
Anders Ottosson wrote:
<blockquote cite="mid:fd0e6t$fpj$1@build.eclipse.org" type="cite">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:
<br>
---
<br>
Exception in thread "main"
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'version'
not found. (<a class="moz-txt-link-freetext" href="file:/C:/src/test/BPMN/credit_report.bpmn">file:/C:/src/test/BPMN/credit_report.bpmn </a>, 2, 175)...
<br>
---
<br>
<br>
The code I have tried with is:
<br>
....
<br>
ResourceSet resourceSet = new ResourceSetImpl();
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put( "bpmn",
new BpmnResourceFactoryImpl());
<br>
<br>
BpmnPackageImpl.eINSTANCE.eClass();
<br>
Resource resource =
resourceSet.getResource(URI.createFileURI(fileName), true);
<br>
<br>
try {
<br>
resource.load(null);
<br>
} catch (Exception e) {
<br>
e.printStackTrace();
<br>
}
<br>
....
<br>
<br>
I have added the following jars to the classpath:
<br>
org.eclipse.core.runtime_3.2.0.v20060603.jar
<br>
org.eclipse.emf.common_2.3.0.v200709042200.jar
<br>
org.eclipse.emf.ecore.change_2.3.0.v200709042200.jar
<br>
org.eclipse.emf.ecore.xmi_2.3.1.v200709042200.jar
<br>
org.eclipse.emf.ecore_2.3.1.v200709042200.jar
<br>
org.eclipse.stp.bpmn.diagram_1.0.0.061.jar
<br>
org.eclipse.stp.bpmn.edit_1.0.0.061.jar
<br>
org.eclipse.stp.bpmn_1.0.0.061.jar
<br>
<br>
Any help would be greatly appreciated!
<br>
<br>
Regards
<br>
Anders
<br>
</blockquote>
<br>
</body>
</html>
--------------070303010506020600000200--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Open BPMN model in main method [message #381248 is a reply to message #381245] |
Thu, 27 September 2007 13:33 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Ed,
Swordfish is a runtime project, while the STP project is hosted at
eclipse.stp.
I have already replied to this question on our newsgroup, and I added at
the time that contacting you through the EMF newsgroup would be a good
way to get help with EMF.
Anders, please let us know if the code I gave you is not working in the
thread we had began. I'll look at it again then.
Thanks,
Antoine
Ed Merks wrote:
> 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$1Diagnos ticWrappedException:
>> 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
>
--
Intalio, the Open Source BPMS Company
<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
|
|
|
Re: Open BPMN model in main method [message #600023 is a reply to message #381205] |
Fri, 21 September 2007 13:18 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070303010506020600000200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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$1Diagnos ticWrappedException:
> 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
--------------070303010506020600000200
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anders,<br>
<br>
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. <br>
<br>
SOA Tools Platform Webmaster,<br>
<br>
Swordfish is a cool name. <span class="moz-smiley-s11"><span> 8-) </span></span>
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:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emft/newsgroup-mailing-list. php"> http://www.eclipse.org/modeling/emft/newsgroup-mailing-list. php</a><br>
</blockquote>
<br>
Anders Ottosson wrote:
<blockquote cite="mid:fd0e6t$fpj$1@build.eclipse.org" type="cite">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:
<br>
---
<br>
Exception in thread "main"
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'version'
not found. (<a class="moz-txt-link-freetext" href="file:/C:/src/test/BPMN/credit_report.bpmn">file:/C:/src/test/BPMN/credit_report.bpmn </a>, 2, 175)...
<br>
---
<br>
<br>
The code I have tried with is:
<br>
....
<br>
ResourceSet resourceSet = new ResourceSetImpl();
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put( "bpmn",
new BpmnResourceFactoryImpl());
<br>
<br>
BpmnPackageImpl.eINSTANCE.eClass();
<br>
Resource resource =
resourceSet.getResource(URI.createFileURI(fileName), true);
<br>
<br>
try {
<br>
resource.load(null);
<br>
} catch (Exception e) {
<br>
e.printStackTrace();
<br>
}
<br>
....
<br>
<br>
I have added the following jars to the classpath:
<br>
org.eclipse.core.runtime_3.2.0.v20060603.jar
<br>
org.eclipse.emf.common_2.3.0.v200709042200.jar
<br>
org.eclipse.emf.ecore.change_2.3.0.v200709042200.jar
<br>
org.eclipse.emf.ecore.xmi_2.3.1.v200709042200.jar
<br>
org.eclipse.emf.ecore_2.3.1.v200709042200.jar
<br>
org.eclipse.stp.bpmn.diagram_1.0.0.061.jar
<br>
org.eclipse.stp.bpmn.edit_1.0.0.061.jar
<br>
org.eclipse.stp.bpmn_1.0.0.061.jar
<br>
<br>
Any help would be greatly appreciated!
<br>
<br>
Regards
<br>
Anders
<br>
</blockquote>
<br>
</body>
</html>
--------------070303010506020600000200--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Open BPMN model in main method [message #600071 is a reply to message #381245] |
Thu, 27 September 2007 13:33 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Ed,
Swordfish is a runtime project, while the STP project is hosted at
eclipse.stp.
I have already replied to this question on our newsgroup, and I added at
the time that contacting you through the EMF newsgroup would be a good
way to get help with EMF.
Anders, please let us know if the code I gave you is not working in the
thread we had began. I'll look at it again then.
Thanks,
Antoine
Ed Merks wrote:
> 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$1Diagnos ticWrappedException:
>> 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
>
--
Intalio, the Open Source BPMS Company
<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
|
|
|
Goto Forum:
Current Time: Tue Sep 24 06:14:16 GMT 2024
Powered by FUDForum. Page generated in 0.06766 seconds
|