I am trying to run my script in managed mode. The script is being done in Workflow. I would like to know if anyone had any insight on this with running in this specific mode or if it is even possible to run a script in Workflow through this mode.
protected override void Execute()
{
// Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session
Start();
}
public void Start(){
thread = new Thread(new ThreadStart(beginProgram));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
}