execute() Lifecycle
- The ‘onExecute’ event is the first event to be called when the execute() method is executed.
- ‘cbBegin’ callback is called for the first time; it is used to set the initial value.
- Callback ‘cbValid’ is called before validation for validation of valid (MetaView).
Utilization: Use for confirm() before deletion, user validation
- Validates columns of validation (MetaView).column.valid(value)
- The
cbFail
callback handles logical failures.
- ‘cbBind’ callback controls the http transfer style for special processing (image, integrated login)
- bind (MetaView) requests bind.columns from the http server.
- The ‘cbResult’ callback is used for processing response results.
- Binds data and values to output (MetaView) according to outputOptions.
- The ‘cbOutput’ callback performs output-related processing, such as html, as a response result or output.
- Callback ‘cbError’ is called when an error or exception occurs after cbBind.
- Callback ‘cbEnd’ is called last.
Utilization: redirect, success message, other command.example() chain connection
- The ‘onExecuted’ event is the last event called when the execute() method is executed.