Friday, November 29, 2024

Constellation debug tools

 






Redux : Client cache
XRay : LiveUI Inspector
    PCore.getDebugger().toggleXRay(true)
GetState : Same as Redux tool

Sunday, November 24, 2024

Pega constellation DX component

  1. Install NodeJS
  2. npm i @pega/custom-dx-components
  3. npx @pega/custom-dx-components@~24.2 init
  4. npm run create (To create component)
  5. npm run startStorybook
  6. npm run buildComponent

 For easier organization and maintenance, you can group components in libraries. The component libraries can be created in different rulesets, which in turn can be used for different applications.

When you publish a component to Pega Infinity™, it creates or updates a Rule-UI-Component instance. This instance is pushed by Pega Infinity to the configured Constellation App Static Service. The Rule-UI-Component instances are exported in a RAP file for deployment to other Pega Infinity environments.When a component is published, a zipped version of the component folder is stored as a Pega Infinity Rule-UI-Component rule instance. Pega Infinity automatically pushes this component zip file to the Constellation App Static Service for access during UI rendering.

The naming convention of the component key is <organization>_<library>_<component

  • organization - This value is found in the organization property of the package.json file in your project's root folder.
  • library - This value is requested when the component is created and can also be set as default in the tasks.config.json file.
  • name - This value is requested when the component is created.
Types of constellation DX components
Field
Allows to configure interactive UI elements such as text boxes, buttons, and sliders.
Widget
Improves usability through built-in logic and functionality. For example, the attachment widget allows users to upload documents.
  • PAGE (Portal widgets) - This widget can be used only in landing pages.Example, Todo and App announcements.
  • CASE (Utilities pane widgets) - This widget can be used only in case views.
  • PAGE & CASE (Both) - This widget can be used in portal landing pages, and the Utilities pane for both case and data views. Example, Pulse
Layout template
Provides layouts for the fields and widgets on a form. Grid, Flex are the basic React components for layouts. Layout templates provide slots called Regions. Authors can add fields, field groups, views, widgets into the regions. 
You can create three types of Constellation DX component layout templates using the Constellation DX Component Builder:
  • Details : Applying the Details template renders the child components referenced in the Regions as read-only. Example: Details of Case view and Data type, Partial views use Details template use Details template.
  • Form : Forms are designed to efficiently collect data from the users of your application
  • Page : Page layout templates control the layout of landing pages. 
https://github.com/pegasystems/constellation-ui-gallery
https://github.com/pegasystems/constellation-ui-gallery/releases

Wednesday, November 20, 2024

DORA - DevOps Research and Assessment

  1. Deployment frequency
  2. Lead time for changes : The time it takes from code commit to deployment to production.
  3. Mean time for recovery:
  4. Change failure rate:





Container : Run instances of Docker images. They are isolated environments sharing host OS kernal, ensuring lightweight and consistent execution.
Docker hub : cloud-based registry where docker images are stored and shared publicly or privately

Configuration management with Ansible
Automate infrastructure setup and application configuration
Post-deployment configs, such as setting environment variables or configuring databases.

Monitoring tools
  • Prometheus - Metric collection and alerting
  • Kibana - Log aggregation and analysis
  • Splunk - Operational intelligence and insights
  • Grafana - Dashboards for visualizing metrics

  • Continuous Integration - Code quality, Unit tests, Dependency
  • Continuous Delivery - Pre prod (Manual/Click to deployment to production)
  • Continuous Deployment - Deploy to production
Security -Shift left
  • Left- Plan, Code, Build, Test
  • Right - Release, Deploy and Monior



Saturday, November 16, 2024

Data Flow

 Rule-Decision-DDF (Decision Data Flow)

  1. Real time data flow
  2. Batch data flow
Input
  • Abstract - If this Data flow is configured as destination in other Data flow 
  • Data set 
  • DB Table 
  • Report definition - 
Output 
  • Abstract - If this Data flow is input to other Data flow
  • Data set
  • Data flow 
  • Case 
  • DB table

Processing shapes

  • Compose - Combine data from two sources
  • Convert - Change the class of incoming data
  • Filter
  • Data transform
  • Merge - Similar to UNION in SQL query
  • Strategy
  • Text analyzer
  • Event strategy

Tuesday, November 12, 2024

Database class mapping wizard

  •  pzCreateTableForClass - Activity to create table in Pega DB, and creates Data-Admin-DB-Table instance.
  • Database class mapping wizard - Creates a concrete class and maps to a particular DB table.

  • Classes that inherit from Work- should be either be a class group or belongs to a class group



Job schedulers

 - Adv.Agent are grouped together, and access group configured is applied to all agents in the group.

- Adv.Agents use Agent schedules.

- On disabling an instance of System-JobScheduler-Override.

- Jobschedulers offer both perf statistics & run statistics.



Pega Calendar

  1. Operator
  2. Organization
  3. pyCalendar on WorkPage