Book a Demo

Author Topic: Codeminer query  (Read 3134 times)

srireynold

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Codeminer query
« on: September 01, 2022, 03:28:26 am »
I have been trying to use the codeminer feature and add queries in sparx-queries.mfql file. Our target is to trace code paths from our controller to data repository class and read method attributes in them. But I am not able to
1) find a way to chain query output from one function to another. Ex: For each method in controller, method calls made. Or for each repository method, the list of calling methods.

2) find a way to transfer this query output to text or other file. Seeing them in query window is not sufficient as this output will be used to understand our component dependencies.

Both these are crucial for us to build a script to scan our code projects on a monthly basis. There is no help item on this in user guide or other forum topics. Please help!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Codeminer query
« Reply #1 on: September 01, 2022, 05:09:01 am »
Maybe a Sparxian can give you a hint. My personal view: I never heard of this feature, so it' probably a newer "invention". Like quite a number of features I woud account that for a marketing instrument. I have not seen a single of those working as they should. So I simply stay away from all these gimmicks. EA is nice for it's basic features (though they could impove there as well). But for the rest: don't waste your time.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Codeminer query
« Reply #2 on: September 01, 2022, 10:36:42 pm »
I never used it, but there's an article on Sparx Community that might help: https://community.sparxsystems.com/news/1458-code-analyzer-in-sparx-enterprise-architect-16
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


srireynold

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Codeminer query
« Reply #3 on: September 02, 2022, 01:11:10 am »
Thanks for the responses!
I have gone through their pages there is no reference to how we can store result of a query in a variable or call it as function insider another query which is what we need. Is there a way we can make someone from Sparx reply? Is emailing their support the only way ?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Codeminer query
« Reply #4 on: September 02, 2022, 05:09:48 am »
You can mail Sparx' support directly. Assuming you have a license they are usually quite fast to reply.

q.

AntonSpray

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • Just Smile
    • View Profile
Re: Codeminer query
« Reply #5 on: September 02, 2022, 07:42:15 am »