-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateProfile.cs
More file actions
28 lines (23 loc) · 899 Bytes
/
CreateProfile.cs
File metadata and controls
28 lines (23 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Activities;
using System.ComponentModel;
namespace FormulatedAutomation.UiPathProfiler.Activities
{
public class CreateProfile : CodeActivity
{
[Category("Input")]
[RequiredArgument]
public InArgument<string> OutputDir { get; set; }
[Category("Output")]
public OutArgument<string> ProcessCSVPath { get; set; }
[Category("Output")]
public OutArgument<string> SoftwareListCSVPath{ get; set; }
protected override void Execute(CodeActivityContext context)
{
string csvPath = OutputDir.Get(context);
Profiler profiler = new Profiler(csvPath);
Profiler.OutputFiles outputFiles = profiler.WriteProfile();
ProcessCSVPath.Set(context, outputFiles.ProcessListPath);
SoftwareListCSVPath.Set(context, outputFiles.SoftwareListPath);
}
}
}