Book a Demo

Author Topic: How do you pass objects via Object Flow edges to 'Call Operation' Actions?  (Read 3053 times)

cwm9

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
When generating C++ code from an activity diagram, it doesn't appear that the connections between pins has anything to do with the code that is generated.

The name of the pin which has been chosen as the target becomes the name of the object upon which the operation is invoked.

For parameters, the only way I can find to pass a value (whether constant or variable) is to set the 'value' option hidden in the pin's property settings on the 'Pin' page.  This value doesn't show up anywhere on the diagram, nor does it seem possible to pass an object or value to the pin with an Object Flow edge connector.

The end result is it is possible to have a diagram that doesn't in any way match the code that is generated, since the code that is generated is not dependent upon Object Flow connections, and the actual parameters passed depend only upon a non-visible option on the properties page.

Am I missing something?  Is there any way to use connectors to set the parameter values?  Is there a way to pass an actual object to a target pin rather than simply using the name of the pin?

Thanks.

m.hommen

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Did you find a solution for your problem? If yes could you share a hint, please.