Book a Demo

Author Topic: Can anyone share experience with code sync?  (Read 3734 times)

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Can anyone share experience with code sync?
« on: March 23, 2010, 10:05:45 pm »
Hi,

I am currently a bit afarid of using code synchronization in pratice. Has anyone experience with it (good or bad)?

Especially when the process flow goes like that:

Platform Indepentdent Model (PIM) -> Transformation -> Platform Specific Model (PSM) -> Code Generation


1.) Now, if I change the source code, for example by adding new classes, methods, changing parameters, does it really work syncing it back to EA?
2.) What about source commenting? Are they transferred back as notes to EA?
3.) Are changes synced back to the PIM as well (automatically or manually)?
4.) What if I create only public interfaces in EA and I don't want the implementation from the source code back in the model, is it possible to exclude it?

Thanks,

Jan
« Last Edit: March 23, 2010, 10:07:10 pm by ebeb »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can anyone share experience with code sync?
« Reply #1 on: March 24, 2010, 09:22:31 am »
1) Yes.
2) Yes.
3) No.  Transformations are one way only.
4) Not sure exactly what you're asking.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Can anyone share experience with code sync?
« Reply #2 on: March 24, 2010, 03:49:55 pm »
Here is a thought if you are using C# you can use partial classes to separate generated code from hand crafted.
Happy to help
:)

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Re: Can anyone share experience with code sync?
« Reply #3 on: March 24, 2010, 06:38:44 pm »
Quote
4) Not sure exactly what you're asking.

OK, I'm trying to say, that I'm only creating interfaces, mostly and for classes I only design public operatioins + attributes.

When I generate the source and start implementing I'll add all the private stuff. Can I tell EA not to sync back the private elements?

Quote
Here is a thought if you are using C# you can use partial classes to separate generated code from hand crafted.

Nope. Java/Python/C!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can anyone share experience with code sync?
« Reply #4 on: March 25, 2010, 08:32:35 am »
The import source directory command has an option to not include private members.