This paper takes control of a group of logical circuit switches as an example to demonstrate the application of WF in the algorithm, and this article is a combination of [rules engine], we can be a good comparison of the effect of C # code, State machine, rule engine, flow chart in the process control and algorithm of the respective characteristics
In the [Rule engine] article, I use C # code separately, WF3. X's state machine workflow, WF3. X's rule engine three ways to implement
This paper is realized by WF4.0 flowchart,
Application Scenarios
1.Y device startup to start X device, x device shutdown to first turn off Y device
2.N device startup to start M device, m device shutdown to turn off N device first
3.M equipment, n equipment to rely on a device power supply, so to start m or N devices must first start a device
4. To turn off a device, the M device and N device must be turned off
5. Because of the power consumption efficiency of n equipment, n equipment running, in order to ensure safety, should be irrelevant equipment shut down
Rules for the Kai n device