in reply to Generate a Sequence diagram

Even if you're getting errors, the module is probably many hours worth of work farther along in the project than any four minute PerlMonks solution. So why not post what errors you are getting, and what code you're using so that we can help you to succeed in employing the tool that already exists?


Dave

Replies are listed 'Best First'.
Re^2: Generate a Sequence diagram
by sbmp111 (Novice) on Aug 20, 2011 at 20:54 UTC

    Hi Dave, thanks for your response!!!! I tried in many ways by customising it, etc... sometimes i get error like 'destroy object referece...' sometime it runs but no proper output, hardly dummy xml format will only be printed.

    Of course it works, for 'rolling a dice' the given example. But that doesn't work for other programs which are quite complex or inheriting mulitple modules?

    ANy ideas or suggestion...!!!

      I already gave my suggestion, but to reiterate: Post code, sample data, error messages, and expected output. Otherwise we're guessing.


      Dave

        My intesnsion is to generate sequence diagrams from perl modules/scripts"

        I am manually running the below command:- "perl -d:CallSeq Session.pm" this will generate the tmon.out And then I am running in the current directory the following command "perl /home/sbmp/UML/UML/gs.pl UML::Sequence::PerlSeq methods Session.pm >aa.xml" this is equivalent to "perl genericseq.pl UML::Sequence::PerlSeq methods Session.pm >aa.xml" I copied genericseq.pl gs.pl...and added few print statements. As I was unable to get anything "genericseq.pl", so copied and renamed.

        Out put is this!! <?xml version='1.0' ?> <sequence> <class_list> <class name='Secana' born='0' extends-to='0'> <activation_list> <activation born='0' extends-to='0' offset='0' /> </activation_list> </class> </class_list> <arrow_list> </arrow_list> </sequence>

        if i get the xml format file then I can convert it to png or svg using existing scripts The "methods" file contais the following :- ======================== Apache::Session::File File::Path Secana::UI::Logger ======================== Session.pm is one of the module, but I have other complex modules, which inherit multiple modules. I don know wher I am doing wrong... or the prog works for complex inheritance r not?