Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Fabrication AsyncCommand  (Read 10855 times)
fipsn
Newbie
*
Posts: 2


View Profile Email
« 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
Logged
rafal.szemraj
Moderator
Full Member
*****
Posts: 41


View Profile WWW Email
« Reply #1 on: June 29, 2010, 09:04:10 »

Hi,

AsyncFabricationCommand is present in latest Fabrication release ( v. 0.7 ).
Logged
fipsn
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: June 29, 2010, 11:36:38 »

thx!

forgot it was so easy to implement ;)
Logged
grimmwerks
Jr. Member
**
Posts: 14


View Profile Email
« Reply #3 on: February 15, 2011, 02:09:35 »

But how is this best implemented?  Do you call a base AsyncMacro -- so it's multicore puremvc?
Logged
grimmwerks
Jr. Member
**
Posts: 14


View Profile Email
« Reply #4 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?
Logged
Pages: [1]
Print