File Listener Basic Understanding | For Training Call/Whatsapp : 9652532753

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 12

  • @sandeeppega4888
    @sandeeppega4888 ปีที่แล้ว +1

    Thanks Harsha for making this video and explaining this concept clearly about requestors in admin studio .. this question was asked in interview

  • @shubhamchoubey3685
    @shubhamchoubey3685 หลายเดือนก่อน +1

    Sir please upload Part 2 of the file listener

  • @vn3384
    @vn3384 ปีที่แล้ว

    @harshatrainings - if once is checked in , is it going to execute only once for each file? For ex today I run a file and once is checked and it will only execute once. How about tomorrow's run ? How to handle the header row of the next day's file. ?

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  ปีที่แล้ว

      1. *"If 'once' is checked, is it going to execute only once for each file?"*
      In Pega's File Listener configuration, the "Run Once" option, if checked, indicates that the listener will process the file only once. Once the file has been successfully processed by the listener, it won't process the same file again, even if it remains in the monitored directory.
      2. *"For example, today I run a file and 'once' is checked, and it will only execute once. How about tomorrow's run?"*
      If you run the File Listener with the "Run Once" option checked today, and it successfully processes a file, then tomorrow, the listener will not process the same file again, regardless of whether the file is still in the monitored directory or not. The "Run Once" behavior applies on a per-file basis, so once a file has been successfully processed, it won't be processed again by the listener, even in subsequent runs.
      3. *"How to handle the header row of the next day's file?"*
      When dealing with data files that have header rows and are processed by Pega's File Listener, you'll need to consider a few aspects:
      *Header Detection:* If the structure of the header remains consistent across different files, you can configure your processing logic to detect the header row based on its structure. This way, the listener can skip the header row and start processing the actual data rows.
      *Header Configuration:* Alternatively, you can configure the expected header structure in your File Listener rule. This configuration allows the listener to recognize the header row and treat it separately from the data rows.
      *Dynamic Header Handling:* If the header structure can change, you might need to dynamically detect the header row as explained in the previous response. Your processing logic should handle cases where the first row contains the header and where it doesn't.
      Remember that the exact approach will depend on the specifics of your use case, including the type of files you're processing, the consistency of the header structure, and the capabilities of Pega's File Listener tool.

  • @SriHarsha-g1d
    @SriHarsha-g1d 9 หลายเดือนก่อน

    Please explain about keep page and checkpoint processing options

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  9 หลายเดือนก่อน

      1. **Keep Page:**
      - The "keep page" processing option specifies whether the data page should be retained in memory after a user session ends.
      - When "keep page" is enabled, the data page remains in memory even after the user session ends, allowing subsequent users to access the data page without needing to reload it from the data source.
      - This option is beneficial for data pages that are frequently accessed by multiple users and need to be cached for improved performance and efficiency.
      - However, enabling "keep page" for large or frequently updated data pages can consume significant memory resources, so it's essential to use this option judiciously.
      2. **Checkpoint:**
      - The "checkpoint" processing option specifies whether the data page should be saved to the clipboard before committing a transaction or at predefined intervals.
      - When "checkpoint" is enabled, Pega periodically saves the state of the data page to the clipboard during user interactions or at specific checkpoints.
      - This option ensures that the data page's current state is preserved, allowing users to resume their work or recover data in case of system failures or interruptions.
      - "Checkpoint" is useful for data pages containing user input or transient data that needs to be persisted periodically to prevent data loss.
      Both "keep page" and "checkpoint" processing options play a crucial role in optimizing performance, managing memory usage, and ensuring data integrity in Pega applications. By understanding these options and their implications, developers can design efficient data pages that meet the application's requirements and user expectations.

  • @anjanponnam9677
    @anjanponnam9677 5 หลายเดือนก่อน

    Hi Sir, how to transfer external system files to pega server location

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  5 หลายเดือนก่อน

      Transferring files from an external system to a Pega server location involves a few steps, including configuring Pega to accept the files and using appropriate mechanisms to upload or transfer the files. Here's a step-by-step guide on how to achieve this:
      Step 1: Configure Pega to Accept Files
      1. **Create a Service Package:**
      - Go to `Records > Integration-Resources > Service Package`.
      - Create a new service package or use an existing one.
      2. **Create a Service File:**
      - Go to `Records > Integration-Services > Service File`.
      - Create a new Service File instance.
      - Configure the Service File rule with details like the file path, file pattern, and other processing details.
      3. **Configure File Listener:**
      - Go to `Records > Integration-Resources > File Listener`.
      - Create a new File Listener instance.
      - Configure the File Listener to monitor a specific directory on the Pega server.
      Step 2: Prepare the Pega Server Location
      Ensure that the Pega server has a designated directory where files will be transferred. This directory should have appropriate permissions set for reading and writing files.
      Step 3: Transfer Files to Pega Server
      You can transfer files to the Pega server using various methods like FTP, SFTP, or using an API call. Here’s an example using SFTP:
      Using SFTP
      1. **Install an SFTP Client:**
      - Use any SFTP client like WinSCP, FileZilla, or command-line tools.
      2. **Connect to Pega Server:**
      - Open your SFTP client and connect to the Pega server using the server’s hostname, port, username, and password.
      3. **Transfer Files:**
      - Navigate to the directory on the Pega server where the files should be uploaded.
      - Upload the files from your local system to the Pega server directory.
      #### Example Using Command-Line SFTP
      ```bash
      sftp username@pega-server-address
      cd /path/to/pega/directory
      put local-file-path
      exit
      ```
      Step 4: Process Uploaded Files in Pega
      1. **File Listener Configuration:**
      - Ensure that the File Listener is configured to pick up the files from the directory where you uploaded them.
      - The File Listener should be configured to call an appropriate activity or service to process the files.
      2. **Activity to Process Files:**
      - Create an activity that will process the files as they are picked up by the File Listener.
      - The activity can parse the file content and perform necessary operations like creating work objects, updating data, etc.
      Example of a Simple Activity
      - Create an activity with the following steps:
      - **Step 1:** Use the `Obj-Open` method to open the file.
      - **Step 2:** Process the file content.
      - **Step 3:** Perform any required operations like creating work objects.
      ### Summary
      By following these steps, you can transfer files from an external system to a Pega server location and configure Pega to process these files. Here’s a brief summary:
      1. **Configure Pega to accept files:**
      - Create Service Package, Service File, and File Listener.
      2. **Prepare Pega server location:**
      - Ensure the directory for file uploads.
      3. **Transfer files using SFTP or other methods:**
      - Use an SFTP client to upload files.
      4. **Process files in Pega:**
      - Configure File Listener to monitor the directory.
      - Create an activity to process the files.
      This setup ensures that files from external systems can be securely transferred to the Pega server and appropriately processed.

    • @anjanponnam9677
      @anjanponnam9677 5 หลายเดือนก่อน

      @@HarshaTrainingsacademy Thanks so much sir

  • @ahladareddy4587
    @ahladareddy4587 4 ปีที่แล้ว

    I am getting Listener status as Sleeping . What to do now?