Book a Demo

Author Topic: Call Operation not properly invoked in Simulations  (Read 3242 times)

M. LaPointe

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Evolve. Get picked for the next universe.
    • View Profile
Call Operation not properly invoked in Simulations
« on: February 27, 2014, 05:14:21 pm »
When running an Interpreted Simulation on Call Operations in an Activity Diagram, the Behavior code assigned in the called method does not seem to execute. (The problem does not seem to exist for regular Actions.)

Is this an issue, or am I missing something in setting up Call Operations for Interpreted Simulations?

To reproduce:
    1. Add an Activity Diagram
    2. Add Initial and Final elements to the Diagram
    3. Add a Call Operation Action that invokes the method of an class
    4. Connect the elements with Control Flow connectors
    5. Enter the following text in the called method’s Behavior field:
    sim.Test='Sim Test Variable';
     Trace("var: " + sim.Test);

6. Invoke an Interpreted Simulation
7. Observe the Simulation output window; no custom output is observed[/list]

It's worth noting that this same setup hangs on the first Operation Call during an Interpreted Simulation in EA 11 Beta.

Thanks!

[size=9]Running EA 10.0.1009 Corporate on Windows 8[/size]
« Last Edit: February 27, 2014, 05:15:39 pm by LaPointeMW »
Best regards,

M. LaPointe

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Call Operation not properly invoked in Simulat
« Reply #1 on: February 28, 2014, 08:25:08 am »
I don't think there's any attempt to load script code from called operations.

M. LaPointe

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Evolve. Get picked for the next universe.
    • View Profile
Re: Call Operation not properly invoked in Simulat
« Reply #2 on: February 28, 2014, 10:51:38 am »
Thanks. So is there any way to run simulations with the actual method calls?
Best regards,

M. LaPointe