How to create an Enterprise layer using Blueprint

How to create an Enterprise layer application using Pega Blueprint.

Also how to create abstract data types ?

Are you talking about the Enterprise application? The Enterprise layer will be created as part of the blueprint while application import based on the Organization defined. If your question is related to Enterprise application, it has to be created manually.We can create EmbeddedData in Blueprint that is associated to the case level data model.

Question 1: how to create an enterprise application (assuming you mean an org layer app)

After doing your first import, the system will have created a ruleset that contains your org layer infrastructure. The easiest way to create an enterprise app layer is to:

  1. do a save as of the application you are in and
    1. associate it with the ruleset for the org layer,
    2. name it for the enterprise layer,
    3. remove the implementation layer ruleset
    4. update the application URL
    5. update the settings for the data and int classes to point to the org layer ones
    6. Save
  2. For your implementation layer application,
    1. set it to be built on the newly created org layer application
    2. save
    3. remove the org layer ruleset
    4. save
  3. if you want to make deployment easier:
    1. Do a save-as of your org layer class creating version 01
    2. Create a product rule that promotes Org App version 01
    3. When you create new versions of your org layer app, you can use the 01 version to promote all your new patch org app versions and you will not have to modify the product rule as you define new application versions unless there are rules that you need to promote that aren’t already picked up by association or ruleset.

Question 2: Abstract data classes

The short answer is that blueprint will not create abstract classes. The closest you can get is to add an embedded property to a case type (and name the property what you would want the class name to be - you can change the property name afterward). When the class gets created, it will be concrete, but no tables will be created for it, so you can change the class to be abstract post-import (or leave it alone).

As an example, lets say you need an address class and want to be able to use it in many places with names like a “mailing address”, “home address”, “business address”. You open the data tab of the first case you want to add an address to. Name the property “Address” and set it as an embedded type. Add some properties to address, like your line 1, line 2, etc. Save the property. Now you can edit the name of the property to be Business Address, but you will see the data type changed from Embedded to “Address”.

On import, address will be concrete, but it will be pointed to PR_Other. You can modify the class to be abstract at that point if you wish.