How to generate workflow code file
Hi all,
I'm developping workflow designer.I have found System.Workflow.ComponentModel.Serialization.ActivityCodeDomSerializer
class can get CodeDom object,how but am I not too clear generate workflow code file(.cs and .designer.cs and .vb and .designer.vb file).Who can give me the detailed explanation how to make or provide some sample code?
thanks.
Hi Sergey,
Thanks for your reply.I also want to consult a your question.
I want to get StateMachineWorkflowActivity's .layout file,but I do not want to use LoadDesignerLayout method and SaveDesignerLayout method of WorkflowDesignerLoader class.Ask how I should do?
If you just want to get the file, you can also use the GetFileReader and GetFileWriter methods on the Loader service (get a handle from an IServiceProvider). In your implementation of the loader, you can look for the file based on the input and get a reader to that file.
If you actually want to apply that layout, you'll want to use the methods you mentioned on the EndLoad to format your state machine.
What is it exactly that you are trying to do with the layout file?
Matt
Hi Matt,
My meaning is makes one not to inherit WorkflowDesignerLoader the designer,therefore I cannot use the method of WorkflowDesignerLoader.But the layout file and the WorkflowDesignerLoader is the close correlation,therefore my this tentative plan is possibly not right.Thanks for your reply.
Chris