Workflow Rules Container
Workflow Rules Container
Web Central provides a container in which all workflow rules are executed. The container provides a safe environment in which to execute business logic.
Before calling the workflow rule, the container:
- formats input parameter values passed in from the UI into Java objects – strings, boolean values, numeric values, Date and Time objects.
- opens a database connection (or borrows an existing unused connection from the connection pool) and creates a new database transaction that the workflow rule can use to retrieve, update, create, or delete database records.
After the workflow rule is executed, the container:
- commits all database changes made by the workflow rule – if the rule has finished successfully.
- rolls back all database changes made by the workflow rule – if the rule failed or threw an exception.
- converts workflow rule output parameters into the format expected by the UI.
- returns the error information to the UI for display (if the rule has failed).