tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/7-equivalent-of-swiz-commandchainRobotlegs: Discussion 2013-04-28T10:30:56Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/5589492009-11-08T19:39:45Z2009-11-08T19:39:45ZEquivalent of Swiz CommandChain<div><p>To give a little context for this. When you have a complex
process, such as initialization of an AIR app (loading config,
checking connectivity, autoupdate, local data/creds,
auto-authentication, remote data loading), its not clear where this
management should live.</p>
<p>I want to be able to declare this process all in one place, but
it doesn't belong in view mediators, commands are stateless, and
this spans multiple services.</p>
<p>My thought is that the answer to this is promoting 'controllers'
to a first-class framework entity. In particular, they should be
used to manage complex, stateful processes not associated with a
particular view or service. In this case, it would be called
InitializationService.</p>
<p>Would love to hear how people address this - as its one of the
harder problems when implementing a framework.</p></div>dwabyicktag:robotlegs.tenderapp.com,2009-10-18:Comment/5589492009-11-08T20:52:38Z2009-11-08T20:52:38ZEquivalent of Swiz CommandChain<div><p><a href=
"http://github.com/robotlegs/robotlegs-utilities-StateMachine">http://github.com/robotlegs/robotlegs-utilities-StateMachine</a></p>
<p>I ported the PureMVC StateMachine to robotlegs and I think it
provides this sort of stateful process of commands.</p>
<p><a href=
"http://github.com/joelhooks/robotlegs-examples-UnionPlatformChatClient">
http://github.com/joelhooks/robotlegs-examples-UnionPlatformChatClient</a></p>
<p>here's an example of it in action.</p></div>Joel Hookstag:robotlegs.tenderapp.com,2009-10-18:Comment/5589492009-11-08T20:57:45Z2009-11-08T20:57:45ZEquivalent of Swiz CommandChain<div><p>I also brought over the Loadup, though this one isn't a port so
much as a rewrite:<br>
<a href=
"http://github.com/joelhooks/robotlegs-utilities-Loadup">http://github.com/joelhooks/robotlegs-utilities-Loadup</a></p>
<p>example:<br>
<a href=
"http://github.com/joelhooks/robotlegs-examples-LoadupAsOrdered">http://github.com/joelhooks/robotlegs-examples-LoadupAsOrdered</a></p>
<p>still WIP, but it works.</p></div>Joel Hookstag:robotlegs.tenderapp.com,2009-10-18:Comment/5589492009-11-09T17:32:37Z2009-11-09T17:32:37ZEquivalent of Swiz CommandChain<div><p>This looks cool. One question - where are the utilities SWC that
the project references? I can definitely just hook up source code,
but would prefer the SWC, if its available.</p></div>dwabyicktag:robotlegs.tenderapp.com,2009-10-18:Comment/5589492009-11-10T00:13:45Z2009-11-10T00:13:45ZEquivalent of Swiz CommandChain<div><p>"My thought is that the answer to this is promoting
'controllers' to a first-class framework entity."</p>
<p>There is no real need to promote controllers directly into the
framework in my opinion. One can implement a controller by
extending Actor and using it's eventMap to respond to async
operations.</p>
<p>I do agree that it would be great to adopt the useful patterns
from Swiz (and Flight!). This will definitely happen in the
up-coming months.</p></div>Shaun Smith