Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - Execution Session #3978

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Ginger/Ginger/AutomatePageLib/NewAutomatePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public partial class NewAutomatePage : GingerUIPage, INotifyPropertyChanged
ProjEnvironment mEnvironment = null;
BusinessFlow mBusinessFlow;
Activity mActivity = null;
Context mContext = new Context();
Context mContext = new();

ApplicationAgentsMapPage mApplicationAgentsMapPage;
ActivitiesListViewPage mActivitiesPage;
Expand All @@ -94,7 +94,7 @@ public partial class NewAutomatePage : GingerUIPage, INotifyPropertyChanged
bool mExecutionIsInProgress = false;
bool mSyncSelectedItemWithExecution = true;

GridLength mLastAddActionsColumnWidth = new GridLength(350);
GridLength mLastAddActionsColumnWidth = new(350);

ObjectId mRunnerLiteDbId;
ObjectId mRunSetLiteDbId;
Expand Down Expand Up @@ -1013,10 +1013,6 @@ private async Task RunAutomateTabFlow()

//execute
await mExecutionEngine.RunBusinessFlowAsync(mBusinessFlow, true, false).ConfigureAwait(false);
if (WorkSpace.Instance.Solution.LoggerConfigurations.SelectedDataRepositoryMethod == ExecutionLoggerConfiguration.DataRepositoryMethod.LiteDB)
{
((ExecutionLogger)mExecutionEngine.ExecutionLoggerManager.mExecutionLogger).RunSetUpdate(mRunSetLiteDbId, mRunnerLiteDbId, mExecutionEngine);
}
this.Dispatcher.Invoke(() =>
{
if (WorkSpace.Instance.UserProfile.AutoGenerateAutomatePageReport)
Expand Down Expand Up @@ -1816,6 +1812,7 @@ private void GenerateReport()
{
if (mExecutionEngine.ExecutionLoggerManager.Configuration.SelectedDataRepositoryMethod == ExecutionLoggerConfiguration.DataRepositoryMethod.LiteDB)
{
((ExecutionLogger)mExecutionEngine.ExecutionLoggerManager.mExecutionLogger).RunSetUpdate(mRunSetLiteDbId, mRunnerLiteDbId, mExecutionEngine);
CreateLiteDBReport();
return;
}
Expand Down Expand Up @@ -1886,6 +1883,10 @@ private void CreateLiteDBReport()

private void ShowExecutionSummaryPage()
{
if (mExecutionEngine.ExecutionLoggerManager.Configuration.SelectedDataRepositoryMethod == ExecutionLoggerConfiguration.DataRepositoryMethod.LiteDB)
{
((ExecutionLogger)mExecutionEngine.ExecutionLoggerManager.mExecutionLogger).RunSetUpdate(mRunSetLiteDbId, mRunnerLiteDbId, mExecutionEngine);
}
ExecutionSummaryPage w = new ExecutionSummaryPage(mContext);
w.ShowAsWindow();
}
Expand Down
Loading