-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LifeCycle Diagram erstellen #1500
Labels
Comments
in etwa so? YForm LifecycleAblauf-DiagrammstateDiagram-v2
[*] --> Initialize: YForm Constructor
Initialize --> PreBuildValuesAndActions: Load Input Values
PreBuildValuesAndActions --> BuildValueObjects: Create Value Objects
BuildValueObjects --> BuildValidateObjects: Create Validate Objects
BuildValidateObjects --> BuildActionObjects: Create Action Objects
BuildActionObjects --> ValuePreValidation: Submit
ValuePreValidation --> ValueInitAndEnter: No Validation Errors
ValuePreValidation --> HasErrors: Validation Errors
ValueInitAndEnter --> ValidateExecution: Execute Value Objects
ValidateExecution --> ValuePostValidation: Run Validations
ValuePostValidation --> ActionExecution: No Validation Errors
ValuePostValidation --> HasErrors: Validation Errors
ActionExecution --> PreAction: Pre Actions
PreAction --> PostAction: Execute Actions
PostAction --> ActionsDone: Post Actions
ActionsDone --> [*]: Form Done
HasErrors --> [*]: Show Form Again
note right of Initialize
Load parameters, form elements
Initialize objparams
end note
note right of PreBuildValuesAndActions
Setup objparams,
session data,
CSRFToken
end note
note right of ValuePreValidation
CSRF check
Custom pre-validation
end note
note right of ValuePostValidation
Validate rules execution
Fill value pools
end note
note right of ActionExecution
Email sending
Database operations
Custom actions
end note
Detaillierter Lifecycle-Ablauf1. InitialisierungYForm Constructor
Parameter-Initialisierung
2. Build-PhasePre-Build
Value Objects erstellen
Validate Objects erstellen
Action Objects erstellen
3. Validierungs-PhasePre-Validation
Value Processing
Validation Execution
Post-Validation
4. Action-PhasePre-Actions
Action Execution
Post-Actions
5. AbschlussErfolgreicher Abschluss
Fehlerfall
BesonderheitenValue PoolsYForm verwendet verschiedene Value-Pools für unterschiedliche Zwecke:
CSRF-Protection
Debugging
Extension PointsWichtige Extension Points im Lifecycle:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://vuejs.org/guide/essentials/lifecycle#lifecycle-diagram
Das könnte ich mir auch gut für YForm vorstellen. Wann passiert was.
The text was updated successfully, but these errors were encountered: