Description
This workflow is triggered whenever the user creates a new record for a model. When this workflow does not exist or is not active, the system uses the default creation logic. The new record can be received in the normal way with webapp::get_record() -> Record
. When this workflow is executed the model workflow is responisble to create the record within the database. Otherwise it will get lost.
Example
/// This function should not be shown in the actionbar pub fn show() { false } /// Normal main function pub async fn main() { // get the new record over api let record = webapp::get_record() // debug print it dbg(record); // TODO: Create this record in an own service within the database } pub async fn test() {}