Okwatangen

Hi,

I'm trying to load another seq. wf into a seq. wf by having the calling wf requesting a manager object to return a wf that is defined in another wf lib.

Is it possible Seems like everything is designtime with regards to the out-of-tha-box invokewf activity Do I need to build a custom activity> any examples

Thx alot, this wf shizzle roxx




Re: Windows Workflow Foundation Howto dynamicly load a workflow from another lib

Dave Britton - VERTIGO

Not sure this is exactly what you are looking for, but I dynamically load Workflows from a generic host and it goes something like this:

private Assembly workflowAssembly;

private Type workflowType;

private WorkflowRuntime wfRunTime;

private WorkflowInstance wfInstance;

...

workflowAssembly = System.Reflection.Assembly.LoadFile(workflowAssemblyFullName);

workflowType = workflowAssembly.GetType(workflowFullName);

...

wfInstance = wfRunTime.CreateWorkflow(workflowType);

wfInstance.Load();

wfInstance.Start();

etc....

Regards,
Dave






Re: Windows Workflow Foundation Howto dynamicly load a workflow from another lib

Tom Lake - MSFT

I have a sample custom activity that invokes a workflow that is not known until runtime, it can be found here.