Here is the simple code to create .xoml file from WF workflow;
using (XmlWriter writer = XmlWriter.Create(@"D:\Temp\MyWorkflow.xoml"))
{
WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer();
SimpleWorkFlow sm = new SimpleWorkFlow();
serializer.Serialize(writer, sm);
}
{
WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer();
SimpleWorkFlow sm = new SimpleWorkFlow();
serializer.Serialize(writer, sm);
}
No comments:
Post a Comment