Book a Demo

Author Topic: Activitity Diagram - For loop  (Read 3538 times)

Putta Swamy

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Activitity Diagram - For loop
« on: August 20, 2009, 08:00:29 pm »
Hi,

I am newbie to EA and UML.

I would like to generate code for "FOR loop" functionality using Behavior diagrams.

I am using EA 7.5 System Engineering Model.

Could you please provide an example activity diagram for "FOR loop"?

Thanks and regards,

Swamy Putta

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Activitity Diagram - For loop
« Reply #1 on: August 20, 2009, 09:09:55 pm »
Here: http://www.sparxsystems.com/uml_tool_guide/code_engineering/code_generation___activity_dia.html
It explains how to create loops in an activity diagram to generate a loop in the generated code.
I doubt that a FOR loop is implemented in the standard code generation templates, but you can probably create a template for it.

Geert

Putta Swamy

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Activitity Diagram - For loop
« Reply #2 on: August 20, 2009, 10:32:40 pm »
I studied this article already. But present basic code template is not generating code if while loop has decision actions.

Can you tell me where we need to set the values for EASL conditions Lower and Upper? If these values are null, while loop is getting generated. I don't know where to set these values.

regards,

Swamy
« Last Edit: August 20, 2009, 10:33:21 pm by puttaswamy »