public void QuickDebug()
        {
            if (DebugOutputViewModel.IsProcessing)
            {
                StopExecution();
                Thread.Sleep(500);
            }
            if (WorkflowDesignerViewModel.ValidatResourceModel(ContextualResourceModel.DataList))
            {
                var successfuleSave = Save(ContextualResourceModel, true);
                if (!successfuleSave)
                {
                    return;
                }
            }
            else
            {
                _popupController.Show("Please resolve all variable errors, before debugging." + System.Environment.NewLine, "Error Debugging", MessageBoxButton.OK, MessageBoxImage.Error, "true");
                SetDebugStatus(DebugStatus.Finished);
                return;
            }

            SetDebugStatus(DebugStatus.Configure);
            var inputDataViewModel = SetupForDebug(ContextualResourceModel, true);

            inputDataViewModel.LoadWorkflowInputs();
            inputDataViewModel.Save();
        }
Exemple #2
0
        public void QuickDebug()
        {
            if (DebugOutputViewModel.IsProcessing)
            {
                StopExecution();
            }
            if (WorkflowDesignerViewModel.ValidatResourceModel(ContextualResourceModel.DataList))
            {
                if (!ContextualResourceModel.IsWorkflowSaved && !_workspaceSaved)
                {
                    var successfuleSave = Save(ContextualResourceModel, true);
                    if (!successfuleSave)
                    {
                        return;
                    }
                }
            }
            else
            {
                _popupController.Show(StringResources.Debugging_Error,
                                      StringResources.Debugging_Error_Title,
                                      MessageBoxButton.OK, MessageBoxImage.Error, "", false, true, false, false, false, false);

                SetDebugStatus(DebugStatus.Finished);
                return;
            }
            var inputDataViewModel = SetupForDebug(ContextualResourceModel, true);

            inputDataViewModel.LoadWorkflowInputs();
            inputDataViewModel.Save();
        }