Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Create the updatesite
Create the updatesite [message #1674599] Sat, 14 March 2015 20:37 Go to next message
Marcelo F. Terenciani is currently offline Marcelo F. TerencianiFriend
Messages: 10
Registered: April 2014
Junior Member
Hi Bob,

I made changes to the metamodel, but it does not know how to reference these changes in the modeler.

How do I modify the pom.xml to grab my bpmn2 metamodel jars instead of the ones from the bpmn2 update site?

best regards

[Updated on: Tue, 17 March 2015 12:38]

Report message to a moderator

Re: Create the updatesite [message #1689529 is a reply to message #1674599] Mon, 23 March 2015 20:07 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

I'm assuming that you want to build your own update site for downloading BPMN2 Modeler, is that correct? In that case, you'll need to edit the parent pom.xml and change the <url> for the eclipse-bpmn2 repository to point to your own bpmn2 metamodel update site, here:


	<repositories>
		...
		<repository>
			<id>eclipse-bpmn2</id>
			<url>http://my.bpmn2.metamodel.update.site/</url>
			<layout>p2</layout>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>



HTH,
Bob
Re: Create the updatesite [message #1689827 is a reply to message #1689529] Tue, 24 March 2015 12:26 Go to previous messageGo to next message
Marcelo F. Terenciani is currently offline Marcelo F. TerencianiFriend
Messages: 10
Registered: April 2014
Junior Member
Thank you Bob,

That's right. I did what you suggested, the problem is that when I install my plugin in a new eclipse was not possible to find the classes that I modified.
As if he had not finding the metamodel. Do you have any idea what might be going on?

I am using the bintray to store the update site.

Metamodel: http://dl.bintray.com/ledes/bpl-framework
Modeler: http://dl.bintray.com/ledes/bplframework-modeler


best regards






Re: Create the updatesite [message #1689850 is a reply to message #1689827] Tue, 24 March 2015 13:42 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Ah, right. I forgot that there's an ant build step that adds dependent repository URIs for the metamodel and BPEL to the generated content.xml file of the update site (see the content.jar file in your update site).

You'll need to edit the <platform>-sites.properties file in org.eclipse.bpmn2.modeler.updatesite for the platform version you are building. I'm guessing that you're targeting Eclipse Kepler, so edit the kepler-sites.properties, and change the line

associate.sites=http://download.eclipse.org/modeling/mdt/bpmn2/updates/milestones/S20130822/,http://download.eclipse.org/bpel/site/


to this:

associate.sites=http://dl.bintray.com/ledes/bpl-framework,http://download.eclipse.org/bpel/site/


and you should be good to go Smile

Cheers,
Bob
Re: Create the updatesite [message #1689865 is a reply to message #1689850] Tue, 24 March 2015 14:18 Go to previous messageGo to next message
Marcelo F. Terenciani is currently offline Marcelo F. TerencianiFriend
Messages: 10
Registered: April 2014
Junior Member
thank you for fast response.

Still giving error (The error happens when I click the "Finish" button to create a new Process Diagram). I added the repository and changed the associate.sites.

I'm running the commands:

"mvn clean install" in the metamodel

and

"mvn clean install -P platform-kepler" in the modeler

Any other command that I have to run?

best regards,

Marcelo
  • Attachment: Erro.png
    (Size: 5.73KB, Downloaded 103 times)
  • Attachment: CreatePD.png
    (Size: 11.55KB, Downloaded 95 times)

[Updated on: Tue, 24 March 2015 14:32]

Report message to a moderator

Re: Create the updatesite [message #1689935 is a reply to message #1689865] Tue, 24 March 2015 17:14 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

The initial error appears to be related to a new type you've created (VariabilitySpecification) Most likely there's something wrong with your bpmn2 ecore. At least this proves that you are now installing your bpmn2 model instead of the one at eclipse Wink

If possible, can you send me the ecore and I'll take a quick look to see if there's anything obvious. Please feel free to use my email bbrodt@redhat.com if you don't want to share with the entire world.

[Updated on: Tue, 24 March 2015 17:19]

Report message to a moderator

Re: Create the updatesite [message #1690065 is a reply to message #1689935] Tue, 24 March 2015 22:38 Go to previous messageGo to next message
Marcelo F. Terenciani is currently offline Marcelo F. TerencianiFriend
Messages: 10
Registered: April 2014
Junior Member
Hi Bob

tank you.

The Ecore is attached.

Observation: If I install the metamodel (using update site) before installing the modeler works without giving error.
  • Attachment: BPMN20.ecore
    (Size: 274.05KB, Downloaded 76 times)

[Updated on: Tue, 24 March 2015 23:55]

Report message to a moderator

Re: Create the updatesite [message #1690081 is a reply to message #1690065] Wed, 25 March 2015 07:17 Go to previous message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi Marcelo,

The ecore looks OK to me, clearly there's something more going on here than I can see without having your entire plugin in front of me. I'm afraid you'll have to debug into the code to figure out what's going on. Start with the performFinish() method of your new file wizard and see where it leads.

Bob
Previous Topic:Finally, some tutorials explaining how to use all of this cra... stuff
Next Topic:default sequence flow gets lost when adding new condition
Goto Forum:
  


Current Time: Mon Aug 20 06:56:11 GMT 2018

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

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

Back to the top