Authoring of workflows can use code, markup languages, or a combination of both code and markup.
Types of Authoring modes:
1. Code only:
The default authoring mode for windows workflow foundation is code only. This provides the code behind mode.(C# or VB) to declare the workflow structure. A code only workflow must be compiled. This mode shoud be choosed only if the workflow solution will not change over a time.
2. No Code:
This mode provides the author a workflow by using workflow markup. we can then compile the workflow with the Windows Workflow Foundation command-line workflow compiler, or we can load the workflow markup file into the workflow runtime engine.
If we have a workflow definition entirely in XOML we can use workflow activation and avoid compilation. Activation is useful when building a large number of dynamic workflows. We merely need to pass the XML into the workflow runtime to have a run-able instance of a workflow.
Eg:
3. Code seperation:
This mode provides us to define workflows by using workflow markup and combining it with C# or Visual Basic code-behind implementations—similar to the ASP.NET model.The code only workflow must be compiled. This mode is choosed if the workflow will change over a time.Also complex business rules can be handled in this mode.
No comments:
Post a Comment