Condition mode is like is very simple mode, be like because of condition is a simple object, want to complication implementation design mode is not easy, misapplication circumstance is very much.
My individual once had designed the game condition machine of system of a large game, game condition
With time brash, did not realize condition mode truly.
In implementing project of an electron government affairs at present, need undertakes flow position changes, in design of electronic government affairs, I discover, if flow completely at the beginning according to the job
The standard is developed, difficulty is very great, it and union of specific project practice cannot hold, and working shedding standard has Wfmc now, still have Bpml, the choice is harder also. Because of
This, I decide.
Because, I need to do API of machine of a condition, perhaps say condition plane frame, offer particular system to call: Kind if the archives is on the move,application or information transmit a telegraphy send application to wait.
Good condition mode must accomplish at 2 o'clock:
1.Status change must differentiate from outside other logic come out.
2.Condition must
Should accomplish this at 2 o'clock, must make clear status change mechanism first, status change is real be by Event incident drive,
In MVC mode it is Event-condition-Action implementation commonly. What condition mode needs to enclose is the Condition-State in Event-condition-State
Part.
The concern of clear understanding condition and flow is very main also, because condition is not isolated,
flow, flow is along with time change, condition is intercept flow a certain time piece. Accordingly, must understanding opportunity of condition of implementation of use condition mode is real is for more
Good the earth's surface is amounted to and show flow.
The concern of condition and flow and incident is as follows:
| Event
___currentState__ | ______newState___
Previous12 Next
