Skip to main content



      Home
Home » Modeling » MoDisco » Some 'calls' are lost
icon9.gif  Some 'calls' are lost [message #1729394] Wed, 13 April 2016 13:29 Go to next message
Eclipse UserFriend
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 04:12 Go to previous message
Eclipse UserFriend
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,
Previous Topic:XML Discoverer - standalone
Next Topic:KDM to UML does not work
Goto Forum:
  


Current Time: Fri May 23 12:02:10 EDT 2025

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

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

Back to the top