PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: fipsn on April 15, 2010, 12:13:31



Title: Fabrication AsyncCommand
Post by: fipsn on April 15, 2010, 12:13:31
Hi there,

is there an implementation of the AsyncCommand Utility in "fabrication-way"?

I'd really need it...

thx in advance
fipsn


Title: Re: Fabrication AsyncCommand
Post by: rafal.szemraj on June 29, 2010, 09:04:10
Hi,

AsyncFabricationCommand is present in latest Fabrication release ( v. 0.7 ).


Title: Re: Fabrication AsyncCommand
Post by: fipsn on June 29, 2010, 11:36:38
thx!

forgot it was so easy to implement ;)


Title: Re: Fabrication AsyncCommand
Post by: grimmwerks on February 15, 2011, 02:09:35
But how is this best implemented?  Do you call a base AsyncMacro -- so it's multicore puremvc?


Title: Re: Fabrication AsyncCommand
Post by: grimmwerks on February 15, 2011, 02:33:04
I just attempted

package com.investlab.mix.mixclient.controller
{
   import com.investlab.mix.common.MixConstants;
   
   import org.flexunit.internals.namespaces.classInternal;
   import org.puremvc.as3.multicore.interfaces.INotification;
   import org.puremvc.as3.multicore.patterns.command.AsyncMacroCommand;
   
   import org.puremvc.as3.multicore.patterns.command.MacroCommand;
   
   public class InitJSONRoundTrip extends AsyncMacroCommand
   {
      public function InitJSONRoundTrip()
      {
         super();
      }
      
      override protected function initializeAsyncMacroCommand () : void
      {
         addSubCommand(InitJSONConverters);
         addSubCommand(InitInterbahnServiceProxyRepository);
         addSubCommand(InitInterbahnStompConnection) ;
         addSubCommand(InitInterbahnServiceFactory) ;
         addSubCommand(RunJSONRoundTrip);
      }
      
   }
}



all those subCommands being of the AsyncFabricationCommand class, but when this macroCommand was hit once again:
Error: multitonKey for this Notifier not yet initialized!

extremely frustrated... are there any examples of async commands in fabrication?