I am attempting to start a workflow on an alternative server using the built in SDK options.
I created the following script inside the SDK Script activity and it runs without any error, but the workflow "Invoke Me" never starts.
If I copy the exact code over to Visual Studio, and add the references to the SDK DLL's it works and the workflow starts.
Has anyone ever successfully used this SDK method inside of the workflow SDK Script object?
namespace WorkflowActivity.Scripting.SDKScript { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Text; using Laserfiche.RepositoryAccess; using Laserfiche.Workflow; using Laserfiche.Workflow.Objects; /// <summary> /// Provides one or more methods that can be run when the workflow scripting activity is performed. /// </summary> public class Script1 : RAScriptClass102 { /// <summary> /// This method is run when the activity is performed. /// </summary> protected override void Execute() { // Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session string workflowServer = "batman"; string workflowApplication = "Custom"; using (WorkflowConnection connection = WorkflowConnection.CreateConnection(workflowServer, workflowApplication)){ string workflowName = "Invoke Me"; PublishedWorkflow workflowToStart = connection.Database.GetPublishedWorkflow(workflowName); Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters.Add("Test","123"); workflowToStart.StartWorkflow(parameters); } } } }