Author Topic: How to generate a sequence diagram from an existing project?  (Read 1045 times)

Ivan987

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to generate a sequence diagram from an existing project?


I tried to deal with the documentation.
I have built a sequence diagram.
I get


This is all?
(Full image: https://i.ibb.co/Cvj0SHG/image.png)


My expectations: to see in the diagram the detailed work of the **Worker()** method of the **ParserWorker** class
Path: Node_Root.Package1.Parser.Core.ParserWorker
How to make the Worker() method to be displayed in detail on the diagram?
Is it possible?

Project:
Folder: c:\ProjectTest\5214\ParserExtrem\Project\
Github: https://github.com/jhon65496/ParserSequenceDiagrams



Class: ParserWorker;
Method: Worker();
Code: [Select]
private async void Worker()
{
    for(int i = parserSettings.StartPoint; i <= parserSettings.EndPoint; i++)
    {
        if (!isActive)
        {
            OnCompleted?.Invoke(this);
            return;
        }

        var source = await loader.GetSourceByPageId(i);
        var domParser = new HtmlParser();

        var document = await domParser.ParseAsync(source);

        var result = parser.Parse(document);

        OnNewData?.Invoke(this, result);
    }

    OnCompleted?.Invoke(this);
    isActive = false;
}


Charting process









































Step-1


Step-2


Step-3








Result