Hi all.
I have the following question.
I have a workflow, with an activity of "sdk script", this is for generating pages to a document, however occasionally I am presenting the following error:
"timeout waiting for client startup"
The code is the following:
namespace WorkflowActivity.Scripting.ConvierteapáginasLF { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Text; using Laserfiche.RepositoryAccess; using Laserfiche.ClientAutomation; using System.Linq; public class Script1 : ScriptClass90 { protected override void Execute() { using (ClientManager lfclient = new ClientManager()) { string servidor = "XXXXXXXXX"; string repositorio = "XXXXXXXXX"; string usuario = "XXXXXX"; string password = "XXXXXX"; int id_DOcumento = Convert.ToInt32(this.GetTokenValue("BuscaDocumento_FirstResult_ID").ToString()); LaunchOptions options = new LaunchOptions(); options.ServerName = servidor; options.RepositoryName = repositorio; options.UserName = usuario; options.Password = password; options.HiddenWindow = true; lfclient.LaunchClient(options); System.Collections.Generic.List<ClientWindow> OpenFolderBrowsers = lfclient.GetAllClientWindows(ClientWindowType.Main).ToList(); this.SetTokenValue("Contador", OpenFolderBrowsers.Count); MsgBox(OpenFolderBrowsers.Count+""); MainWindow FolderBrowser = OpenFolderBrowsers[0] as MainWindow; GeneratePagesOptions Options = new GeneratePagesOptions(); Options.ShowUI = true; System.Collections.Generic.List<int> doc = new List<int>(); doc.Add(id_DOcumento); FolderBrowser.GeneratePages(doc, Options); } } } }
What could be the possible error?