From: Vinícius d. S. O. <vin...@gm...> - 2021-06-28 07:41:51
|
Em seg., 28 de jun. de 2021 às 04:27, Manuel Collado <mco...@gm...> escreveu: > The fact that a rule exist doesn't ensures it will be executed. Use of > 'next' or 'getline' can prevent the execution of some rules. That's not a problem. Wrong code can always be written. > It seems you want to check if the user wants to handle record errors. Yes. > It > this is want you want, then an alternative is to check the existence of > a specific user-defined function, instead of a rule. > > I.e., instead of expecting the user to write some "JSONRECORDERROR" > rule, expect the user to write some "JsonRecordError()" function. If > there is such function the extension will invoke it. If not, the > extension will execute a default error handling action. Maybe that'd do. Can such a function use the statement next? How'd that work, the plugin calling the function triggering next? Thanks for the idea anyway. It does seem simpler (to implement). -- Vinícius dos Santos Oliveira https://vinipsmaker.github.io/ |