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

Application Profile document showing old case type descriptions



When creating a new application profile document, the old case type descriptions are shown instead of new updated ones.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a case with a description - then create an application profile document.
  2. Alter the case description then regenerate the application profile.
  3. The application profile document will still contain the old

Root Cause

A defect in Pegasystems’ code or rules. Case Type is a new rule type added in Pega 7.x. In 6.x for documentation, we use class description.


Add the below code to get the case type description in below Available rule and do a Save-As to your application RuleSet:
Section-  Embed-Accel-DocWorkType.Document

if ( pgWTClass != null )
                    strDescription = pgWTClass.getString( "pyDescription" );
                   //Check if casetype rule is present and get description from Casetype rule
                   StringMap CTkeys = new HashStringMap();
                CTkeys.put( "pxObjClass", "RULE-OBJ-CASETYPE" );
                CTkeys.put( "pyClassName", strClassName );
                   CTkeys.put( "pyPurpose", "pyDefault" );
                  ClipboardPage CTPage = tools.getDatabase().open( CTkeys, false );

                  //Replacing the new line character with <br> tag as carriage returns are ignored during word conversion.

                 boolean hasNewline = strDescription.contains("\n");

                   }catch(Exception e){
                       oLog.error("Exception while fetching case type rule-"+e.getMessage());


Published October 27, 2016 - Updated October 8, 2020

Was this useful?

0% 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