How to follow robotlegs events and workflow?

Enrique's Avatar


30 Jun, 2011 08:16 PM

Hi !
Do you have a recommended way for following events and workflow in robotlegs?

I find myself reading the context to see what commands are executed when some event is dispatched, and that is the easy part, finding the mediator that listen an event is more difficult (many times I end searching for the string event in the file system).

I'm looking for an application that let me design graphically, with boxes(=[contexts, mediators, commands, models]) and arrows(=events), the entire project, can you recommend me some program for this?

Thanks !

  1. 1 Posted by Stray on 30 Jun, 2011 08:26 PM

    Stray's Avatar

    Hi Enrique - what IDE are you using, and are you familiar with using Ruby scripts in your command line?

    John Lindquist has a fantastic plugin for IntelliJ that digs in to this sort of thing, and I have a simple but effective script that dumps out your event-mediator relationships into your terminal window (in mac).

    Would either of these be helpful?


  2. 2 Posted by Enrique on 30 Jun, 2011 08:45 PM

    Enrique's Avatar

    I'm under windows and using Flash Builder :(
    I think something like Enterprise Architect should work, but I was looking for something easier and if it's specific for robotlegs (with boxes for commands, mediators, etc) much better !
    I think that with a graphic of the dispatchers, events and listeners is very easy to follow the application.

  3. Support Staff 3 Posted by creynders on 30 Jun, 2011 08:49 PM

    creynders's Avatar

    This makes me wonder whether there's any benefit to dumping mediators in favor of view controlling commands? Or let's call them shortlived mediators or so.
    One benefit would be that the mappings get centralized just as with other commands.
    Probably I'm overseeing some very in-your-face things now.

  4. 4 Posted by Stray on 30 Jun, 2011 08:50 PM

    Stray's Avatar

    You're definitely right there - we're looking into ways to support such things in the future.

  5. 5 Posted by Stray on 30 Jun, 2011 08:56 PM

    Stray's Avatar

    Sorry - to be more specific, I was saying Enrique was right.

    For creyenders - I think the new Thing() overhead would be a problem as view responses normally need to be quicker and the view would have to be injected into the object before the function was run... but ymmv!

  6. Support Staff 6 Posted by creynders on 30 Jun, 2011 08:59 PM

    creynders's Avatar

    It's just something I used with one of the gazillion versions of my JS port I made, in which I basically had an eventMap that accepted either a class or a function as a handler and based on that distinction either instantiated the class and called an execute method or simply called the handler. It worked pretty smooth, but granted I never really tested it performance-wise.

  7. 7 Posted by Enrique on 30 Jun, 2011 09:21 PM

    Enrique's Avatar

    I think it's not so difficult to make an app for this, we could even use robotlegs to make an AIR app that reads the code in .AS and MXML files searching for dispatch, dispatchEvent, addEventListener, addContextListener, addViewListener, and eventMap.mapListener and draw the flow for us.
    I think this design could work fine:
    (really really sorry for that, I have only paint here :( )

    What do you think?

  8. 8 Posted by Enrique on 01 Jul, 2011 03:10 PM

    Enrique's Avatar

    I found these Flex applications for making diagrams, maybe is possible to adapt them for designing robotlegs diagrams.

  9. 9 Posted by Enrique on 01 Jul, 2011 05:28 PM

    Enrique's Avatar

    Do you know some utility like this but for robotlegs?
    If I understand it well I think it helps to understand even an unknown PureMVC application.

  10. Support Staff 10 Posted by Ondina D.F. on 02 Nov, 2011 05:40 PM

    Ondina D.F.'s Avatar

    Feel free to reopen this discussion in case you have more questions or you need further assistance with this issue. Please open new threads for new issues.
    Thank you for posting

  11. Ondina D.F. closed this discussion on 02 Nov, 2011 05:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac