Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to map work classes to different tables in 1 class group

SA-6799

Summary



We want to store different work objects in different database tables, however the work objects belong to same work pool/class group.

When we create a separate database table for the classes, they are gnored and the objects still get written to the table of the work pool/class group.



Resolution



Per the documentation, work items in one class group are stored in the same table by design.  If your business requirements dictate otherwise, you should separate them in the class structure too.

All instances of classes that are associated with a class group share a common key definition and common lock definition. This allows the database software (such as, Oracle or Microsoft SQL Server) to save the instances as rows in one table in the PegaRULES database.

The common key format also ensures that the same database table is accessed when an instance is converted from one class (within a class group) to another class (in that same class group). For example, a work item may initially be entered incorrectly as a merchandise order, but later be reclassified as a merchandise return request. Both work types have the same key structure and belong to a common work pool (class group).

https://pdn.pega.com/sites/default/files/help_v71/procomhelpmain.htm#data-/data-admin-/data-admin-db-/data-admin-db-classgroup/related.htm

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

25% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us