Writing error functions  Writing rule object error functions

Chapter 3: Building Production Objects

Error functions attached to rule objects

When an error function is attached to a rule object, e-Biz Impact executes the error function when an error is encountered while processing the rule object, its components, and filters. An error function attached to a rule object can attempt to correct problems encountered during transaction. The error function can look for and attempt to repair the most common errors that halt transaction processing, such as a transaction containing an unexpected item that needs to be added to a translation table.

When an error function attached to a rule can repair the data in the blob, the error function should return a value of 1 (one) to indicate that processing can continue.

If the error function attached to the rule cannot return the data in the blob to a state where e-Biz Impact can continue, the function must return a value of 0 (zero). e-Biz Impact then executes the primary error function, which is the error function attached to the production object.





Copyright © 2005. Sybase Inc. All rights reserved. Writing rule object error functions

View this book as PDF