I have created a custom invoke workflow activity which uses the following code to dynamically invoke a workflow specified in a DB. I was expecting the new workflow to be instantiated in a new thread, so the "main" workflow could continue to execute normally
while the newly invoked one starts with its execution.
Instead, what is happening is that the control does not return back to the main process until the new wf gets persisted or it is completed. This is almost like a synchronous invoke workflow, while what I need is an asynchronous call.
Could someone please help me?
Many thanks in advance.
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
this.RaiseEvent(ActCustomInvokeWfAsync.BeforeInvokedEvent, this, new EventArgs());
if (this.TargetWorkflow == null)
throw new InvalidOperationException("TargetWorkflow property must be set to a valid Type that derives from Activity.");
IStartWorkflow startWorkflow = executionContext.GetService(typeof(I
View Complete Post