Apr 14, 2010

Loading string as workflow

Here is some sample code that loads string as workflow

Stream stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(stringXaml));
Activity wf = ActivityXamlServices.Load(stream);
IDictionary results = WorkflowInvoker.Invoke(wf);