Esempio n. 1
0
 void AddExecutionToExecutionManager(IDSFDataObject dsfDataObject, IDev2Activity resource)
 {
     Dev2Logger.Debug("Got Execution Manager", GlobalConstants.WarewolfDebug);
     if (_executionManager != null)
     {
         if (!_executionManager.IsRefreshing || dsfDataObject.IsSubExecution)
         {
             Dev2Logger.Debug("Adding Execution to Execution Manager", GlobalConstants.WarewolfDebug);
             _executionManager.AddExecution();
             Dev2Logger.Debug("Added Execution to Execution Manager", GlobalConstants.WarewolfDebug);
         }
         else
         {
             Dev2Logger.Debug("Waiting", GlobalConstants.WarewolfDebug);
             _executionManager.Wait();
             Dev2Logger.Debug("Continued Execution", GlobalConstants.WarewolfDebug);
         }
     }
     if (resource == null)
     {
         throw new InvalidOperationException(GlobalConstants.NoStartNodeError);
     }
 }