Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Some 'calls' are lost
icon9.gif  Some 'calls' are lost [message #1729394] Wed, 13 April 2016 17:29 Go to next message
Hulk Esp is currently offline Hulk EspFriend
Messages: 5
Registered: March 2016
Junior Member
Hi,

I have this Java class (with Spring annotations):


@Service
public class MyService implements IMyService {
    @Autowired
    private IMyDAO myDAO;
  

   
    @Override
    public InfoDTO methodTest(String id) {
        InfoDTO info = myDAO.getInfo(id);
        info.setTest("test");
	return info; 
    }     
}



I used Modisco to discover the KDM model. I iterate all the Action Elements of kind "method invocation" in order to get the Calls element. Then, I access the "to" and "from" references. My problem is that I don't find the Calls element that represents the invocation from 'MyService ' to 'IMyDAO .getInfo' (line myDAO.getInfo ).... The only Calls that i find is the invocation from 'MyService ' to 'InfoDTO ' (line info.setTest("test")).

How to get the Calls element (from an Action Elements of kind "method invocation" ) that represents that invocation?. Does Modisco create an element that represents it?.

i'm using Modisco 0.12.2.

Thanks!.



Re: Some 'calls' are lost [message #1729534 is a reply to message #1729394] Fri, 15 April 2016 08:12 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 667
Registered: July 2009
Senior Member
Hello,
Thanks for using some of the MoDisco components.
The Java-to-KDM transformation is partial in the sense that not all Java model elements are necessarily transformed into KDM ones as it may be expected.
Please, submit a bug so that we can keep track of this limitation and solve it when possible.
If the KDM representation is not strongly needed, in the meantime you can also exploit directly the Java model which is complete.
Kind regards,


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:XML Discoverer - standalone
Next Topic:KDM to UML does not work
Goto Forum:
  


Current Time: Wed Jul 18 21:34:37 GMT 2018

Powered by FUDForum. Page generated in 0.02196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top