Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELEO] module UML 2.1 To PHP in acceleo 3.0(Does this module is compatible?)
[ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #682329] Fri, 10 June 2011 20:51 Go to next message
Cl is currently offline ClFriend
Messages: 3
Registered: June 2011
Junior Member
Hi everybody, i'm new in the acceleo word.
I had to build a CASE in one of my computer science ingeneering school course.

My question is: does the current version of the UML 2.1 to PHP module(search for : 'module-uml2-vers-php' in google, i cannot post the link Sad ) is compatible with acceleo 3.0?

Indeed, i follow the tutorial but in the generated file (which correspond to the ones of the module) i only got "hard coded value".


As you can see, the basic class (entity one) that i put in my uml file isn't generated...

I found a page that describe acceleo equivalence (search for : 'acceleo_equivalence.html' in google) but it seems that some commands are missing (for, ...).

Can you help me finding a solution?

Thanks for your help.

Clément Lefranc

[Updated on: Fri, 10 June 2011 20:52]

Report message to a moderator

Re: [ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #682624 is a reply to message #682329] Sat, 11 June 2011 16:52 Go to previous messageGo to next message
Mariot Chauvin is currently offline Mariot ChauvinFriend
Messages: 174
Registered: July 2009
Senior Member
Hi Clément,

Comments below.

Le 10/06/2011 22:51, Cl a écrit :
> Hi everybody, i'm new in the acceleo word.
> I had to build a CASE in one of my computer science ingeneering school
> course.

Welcome to acceleo world :)

>
> My question is: does the current version of the UML 2.1 to PHP
> module(search for : 'module-uml2-vers-php' in google, i cannot post the
> link :( ) is compatible with acceleo 3.0?
>

I think you refer to this : http://acceleo.org/pages/module-uml2-vers-php/

We don't have migrated them yet to acceleo 3 syntax but we have migrated
UML to Java templates :
http://www.obeonetwork.com/page/uml-to-java-generator

However feel free to start the migration or start new templates. We hope
that acceleo community will be interested to write and distribute
templates for many languages and frameworks.

> Indeed, i follow the tutorial but in the generated file (which
> correspond to the ones of the module) i only got "hard coded value".
>
>
> As you can see, the basic class (entity one) that i put in my uml file
> isn't generated...
>

I don't see anything (neither in my nntp readers nor in the web forum).
However as written previously these templates have not been migrated, so
you should not expect anything working out of the box.

> I found a page that describe acceleo equivalence (search for :
> 'acceleo_equivalence.html' in google) but it seems that some commands
> are missing (for, ...).

Here is the equivalence table link :
http://help.eclipse.org/helios/topic/org.eclipse.acceleo.doc/doc/html/acceleo_equivalence.html

Control structures such as for and if did not change intrinsically.
If you are not confident with new syntax, do not hesitate to use the
code completion, just type "for" and then "CTRL + Space".

Anyway if you have more specific questions, or need help to migrate some
lines from acceleo 2 to acceleo 3 syntax, just ask on this newsgroup/forum.

>
> Thanks for your help.
>
> Clément Lefranc
>

Regards,

Mariot
--
Mariot Chauvin @ Obeo

Blog : http://mariot-thoughts.blogspot.com
Twitter :http://twitter.com/mchv
Professional support : http://obeo.fr/pages/maintenance-and-support/
Re: [ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #682910 is a reply to message #682329] Sun, 12 June 2011 12:46 Go to previous messageGo to next message
Cl is currently offline ClFriend
Messages: 3
Registered: June 2011
Junior Member
Hi Mariot Chauvin,
thanks for your reply.

The fact is that i have to convert to PHP not Java Wink

Can i know the main differences between acceleo 2.8 and Acceleo 3.0 (couple with obeo tracability)?

If there is not to much i think working with acceleo 2.8 will be easier...

EDIT: I just tried with the acceleo 2.8, i got exactly the same result :/ (the classes of the default UML are not generated...)

[Updated on: Sun, 12 June 2011 13:39]

Report message to a moderator

Re: [ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #684182 is a reply to message #682910] Wed, 15 June 2011 07:39 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Clément,

There is currently no "off the shelf" UML to PHP generators available for Acceleo 3.0. You will have to either write your own, or convert the legacy Acceleo 2.8 UML2PHP module. (We plan to migrate it to Acceleo 3, yet it has not been done yet.)

If that module fails with even Acceleo 2.8, you will have to ask on its dedicated forum as I do not have the answer.

Laurent Goubet
Obeo
Re: [ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #684246 is a reply to message #682910] Wed, 15 June 2011 09:39 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Can i know the main differences between acceleo 2.8 and Acceleo 3.0 (couple with obeo tracability)?


Acceleo 3.x is a completely new version of Acceleo, the language changed to the MOFM2T standard of the OMG and the tooling was greatly improved with:
* static typing, real time error detection and quick fixes
* a profiler, a debugger and the traceability in the result view
* a brand new editor with syntax highlighting, code completion, outlines and refactoring
etc.

Contrary to Acceleo 2.x it can also very easily be used outside of Eclipse without any dependencies with Eclipse and you can easily integrate it in an existing Ant or Maven based workflow with Tycho for example.

You can find more about Acceleo 3 in the user guide available on the Obeo Network (there are videos of most of the features available in Acceleo too).

Obeo Traceability on the other hand is a commercial tool built on top of Acceleo to handle the traceability of the generated code. With Traceability you can easily determine what element of the model and what part of the generator have been used to generate a specific piece of code, etc. You can find more about it on the Obeo Network too.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: [ACCELEO] module UML 2.1 To PHP in acceleo 3.0 [message #684411 is a reply to message #684246] Wed, 15 June 2011 14:43 Go to previous message
Cl is currently offline ClFriend
Messages: 3
Registered: June 2011
Junior Member
Thanks both of you for your reply.
I'm actually in contact with Mr Dugre (of the Obeo team) to get a obeo traceability licence, he knows my project.

Is it possible to be in touch with Mr Mortier, developper of the UML2PHP module? (in order to have some explanations and that way to eventually proceed to the module migration in my side, with his collaboration eventually)?

Best Regards,

Clément Lefranc
Previous Topic:XPand UML Version
Next Topic:[ACCELO] Associations and attributes
Goto Forum:
  


Current Time: Fri Apr 26 02:21:51 GMT 2024

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

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

Back to the top