Author Topic: Generating activity diagram from c++ code  (Read 2752 times)

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Generating activity diagram from c++ code
« on: February 16, 2023, 12:09:38 am »
Hello Dear EA users and developers,

I am not sure whether this forum is the correct place to ask this questions but I will try my chance. Sorry for any inconvenience.

Is there a plug-in you know to generate activity diagrams out of c++ code? I found many useful ones to generate static structure such as class diagram, however, I found it hard to find a tool to generate activity diagrams.

Best,

mr nobody 11

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13288
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generating activity diagram from c++ code
« Reply #1 on: February 16, 2023, 12:28:35 am »
Generate Activity Diagram from code? I'm not even sure that is theoretically possible, and I definitely don't know any tools that do this.

How do you imagine this functionality? I really don't see how I could make a meaningful activity diagram based on code alone.

I could try to understand what the code does, and make a synthesis of that into meaningful chuncks of behavior; but I don't think AI is quite that far yet. For now that still remains the domain of the bags of flesh.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Generating activity diagram from c++ code
« Reply #2 on: February 16, 2023, 05:51:34 am »
IFAIK you can create SDs from runing code via debug (from EA; never tried that). But ADs? No way! ADs are about business, code only translates part of that. And, as Geert already said, there is no way to produce AD from code.

q.

jfzouain

  • EA User
  • **
  • Posts: 151
  • Karma: +6/-1
    • View Profile
Re: Generating activity diagram from c++ code
« Reply #3 on: February 16, 2023, 08:10:03 am »
As all have said no way to produce AD from code, but you can produce code from AD.
« Last Edit: February 16, 2023, 08:13:56 am by jfzouain »
Best regards

Jose Zouain

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Generating activity diagram from c++ code
« Reply #4 on: February 17, 2023, 03:46:56 am »
I found some papers about the topic, putting their links here.

"A number of existing tools (both open-source and proprietary) allow programmers to
generate activity diagrams from C++ source code. These include: Moritz (an extension
to Doxygen), IBM Rational Rhapsody, Crystal FLOW, AthTek Code to FlowChart Converter,
Code Visual to Flowchart, AutoFlowchart, devFlowcharter" , quoted from the paper on the second link.


https://www.researchgate.net/profile/Rasha-Alsarraj/publication/351097609_Designing_and_implementing_a_tool_to_transform_source_code_to_UML_diagrams/links/608691e2881fa114b42b5256/Designing-and-implementing-a-tool-to-transform-source-code-to-UML-diagrams.pdf

https://arxiv.org/pdf/1405.3240.pdf

mr nobody 11

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Generating activity diagram from c++ code
« Reply #5 on: February 17, 2023, 04:18:12 am »
I looked at the AD in the paper (Fig. 4) and that's just rubbish. Who would need such an AD?

The 2nd link works via annotations. Means someone put in the parts relevant from an existing AD. Where is the point?

q.
« Last Edit: February 17, 2023, 04:22:26 am by qwerty »

mr nobody 11

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Generating activity diagram from c++ code
« Reply #6 on: February 17, 2023, 04:22:45 am »
I think the first link I provided does not provide any good result. And also, I did not linked them here to say they are exactly what I am looking for. Just to give an idea that it exists in some forms.

You can search for better ones If you are interested, and let me know. I would appreciate.

mr nobody 11
« Last Edit: February 17, 2023, 04:24:33 am by mr nobody 11 »