Hello, I am trying to add automation, but i need to configure the
automationObjectHelper to wait until the server retrieves the
information. So basically I need the automation framework to freeze at
the execution of the command, and continue when the result method is
finished.

This is the idea of what is done but not working:

    private var request: Boolean = false;

    private function isComplete(): Boolean
    {
      return !request;
    }

    public function execute( event : CairngormEvent) : void
    {
      request = true;
      Automation.automationObjectHelper.addSynchronization(isComplete);
      doExecute(event);
    }

    public function result( event : Object ) : void
    {
      request = false;
      doResult(event);
    }

But the isComplete function is never used from the
automationObjectHelper.  I saw some examples and in all of them are
doing the same.
Am i missing something here?
Any help will be appreciated.

Thank you,
Regards
Martin


Reply via email to