private void runMFE(MFEInputParameters mfeInputs) { if (MFEExecutor == null) { throw new Exception("MFE executor instance not found."); } try { List <DataTypes.ICompoundGroup> compoundGroups = MFEExecutor.Execute(mfeInputs); this.ExperimentContext.CompoundGroups = compoundGroups; EventAggregator.GetEvent <CompoundGroupsGenerated>().Publish(true); //SetApplicationState("MFEExecuted"); ActivateNextWorkflowPhase(); } catch (Exception e) { Console.WriteLine(e.StackTrace); throw new Exception("MFE execution failed. " + e.Message); } }
private void LoadMFEInputs() { try { if (MFEExecutor != null) { MFEInputParameters mfeParams = MFEExecutor.GetParameters(); this.EventAggregator.GetEvent <MFEInputsLoaded>().Publish(mfeParams); } else { throw new Exception("MFE executor instance not found."); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); MessageBox.Show(ex.Message); } }