Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Askar Ibragimov

Pages: [1]
1
General Board / Re: Build customized UML diagram from source code
« on: May 15, 2014, 06:45:21 pm »
Quote
I would start from the standard reverse engineering, and then write and add-in to do additional post processing.
I guess that means parsing the code, figuring out the dependencies, and creating the required relations in EA.

EA has an API that you can use for your add-in/script

Geert

Thanks for the reply!
As I am a complete novice to it, where I can read more about addins and what exact tools / languages/ scripting I can employ to reach my goal?

2
General Board / Build customized UML diagram from source code
« on: May 15, 2014, 06:33:55 pm »
Hello, I am fairly new to EA. I have a particular code and would like to generate custom UML from the code. Presently, with default settings, I was able to backward engineer my code but it just generated classes "blocks" and shows no apaprent connections between classes. We use "loose binding" strategy in our code.


Here's a representation of what I need to obtain:

Code is a bunch of such C#routines within a Webapi class:

  public class ProjectConfigurationController : WebApiController
    {

        [HttpPost]
        public ProjectStoreResponseDto CreateNewProject(ProjectConfigurationDto project)  
        {
            var reply = CommandProcessor.ProcessCommand(new ProjectConfigurationSaveCommand(project)) as GenericSaveCommandResponse;
         return reply;
        }

  
        [HttpPut]
        public void UpdateProject(ProjectConfigurationDto project)
        {
            try
            {
                var reply = CommandProcessor.ProcessCommand(new ProjectConfigurationSaveCommand(project)) as GenericSaveCommandResponse;
                AssertResponse(reply);
            }
            catch (Exception exception)
            {
        
                throw new HttpResponseException(HttpStatusCode.InternalServerError);
            }
        }
}


and I need a diagram that displays something like this



that is, command names are picked from code, and interface name of ProcessCommand is also used.

I appreciate any pointers about how can I semi- or fully-automatically create such a custom diagram.

Pages: [1]