Book a Demo

Author Topic: Unale to generate java code from interactions  (Read 4377 times)

José Farinha

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Unale to generate java code from interactions
« on: November 29, 2016, 04:10:50 am »
Has anyone tried to generate (Java) code from an interaction and been successful?

I have a class with interactions and operations that are supposed to have those interactions as their bodies – I specified it by means of the ‘Behavior’ separator. When I generate code for that class I get empty bodies for such operations, with the id of the interaction in a comment line, like this:
    //{03EC634A-D116-4828-AE60-33ED1DD07EE2}

No trace of any code corresponding to the interaction.
I also tried to remove the operation and have the interaction alone, to check it is generated as a method, as the EA manual says it would.

Thanks in advance for your attention

PS: I’ve submitted this question to the support line more than a week ago, but got no answer so far other that the automatic reply. Could anyone tell me as well if these timings are typical?


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Unale to generate java code from interactions
« Reply #1 on: November 29, 2016, 05:13:04 am »
I suspect the code gen pattern does not respect the 'Behavior' check mark but only takes the plain text. You might need to look into he macros to find that out (good luck).

Usually Sparx is quite responsive. Check your spam folder. Eventually send an inquiry.

q.

José Farinha

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Unale to generate java code from interactions
« Reply #2 on: December 01, 2016, 06:10:46 am »
Thanks, qwerty.

The problem was that I had an EA Professional edition, which doesn’t support code generation from behaviors (incl. interactions), contrarily to what I interpreted from the product editions chart and user manual.

Meanwhile, I upgraded to the Business & SE edition and code has started showing up.

But it comes with lots of problems. It looks like this feature is quite incipient in EA. There are also some clear bugs.

Best regards
José


 

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Unale to generate java code from interactions
« Reply #3 on: December 01, 2016, 07:32:09 am »
Well, I would have guessed so. Those "ultimate"  features usually are not worth he money (except for the vendor; and not talking for all features). The problem with those things is that you can not easily generalize them and you need hands on anyway. So, what I'd do in those case, the money is better spent in some scripting.

q.