Book a Demo

Author Topic: object creation, manipulation in activity diagram, generate code from it  (Read 3852 times)

jpapp

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-1
    • View Profile
Hello!
Is this possible? I was able to create object from a class, call functions with arguments, but for eg I was not able to set values to variables, call object's functions... How shall this be achieved in an activity diagram and can I get code from it?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: object creation, manipulation in activity diagram, generate code from it
« Reply #1 on: February 07, 2017, 01:39:10 am »
Use context menu Features/Run state. It's all free text, but you can express what you need.

q.

jpapp

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-1
    • View Profile
Re: object creation, manipulation in activity diagram, generate code from it
« Reply #2 on: February 07, 2017, 02:45:15 am »
Yes, but in the same time, if I try to simulate the corresponding activity diagram, the simulation engine throws errors :/ Is there any workaround for that? I would use the same diagram for simulation and generation as well.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: object creation, manipulation in activity diagram, generate code from it
« Reply #3 on: February 07, 2017, 03:34:52 am »
You probably should have indicated that in your question (title). I have no idea about the simulation.

q.