Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
June 26, 2017, 03:16:08 PM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: Fabrication AsyncCommand  (Read 5326 times)
fipsn
Newbie
*
Posts: 2


View Profile Email
« on: April 15, 2010, 12:13:31 AM »

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
« Reply #1 on: June 29, 2010, 09:04:10 AM »

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 PM »

thx!

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


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

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 PM »

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
Jump to: