Transferring Data Using the Sample Event Listener: Example

Primavera Gateway delivers an out-of-the-box sample event listener that you can use to demonstrate event-triggered synchronization jobs with the Sample provider. The event listener monitors the event of creating or updating project objects in the Sample provider. The event listener is an XML file, SampleEvents.xml, which contains events that should occur in the Sample provider (source application) to trigger a synchronization in the Gateway user interface.

Prerequisites

Procedure

Set up an event-triggered synchronization to import two projects E-1833 and E-1922 from the Sample provider to P6 as follows:

  1. Copy the SampleEvents.xml file.

    From folder: ..\<Gateway_HOME>\sample\sampleprovider\src\com\oracle\pgbu\pdi\sampleevent

    To folder: ..\<Gateway_HOME>\sample.

    Note: Set the Java system properties file for the Sample provider as follows:
    -Dsample.data.path= <location of the Sample database file>

  2. Add an application deployment connection and associate an event listener with the Sample provider:
    1. In the sidebar, select Configuration.
    2. Select the Deployments tab.
    3. Select Add....

      The Deployment wizard displays.

    4. In the General step, enter the following values:
      • Select Application Provider: Select Sample from the drop-down.
      • Deployment Name: Enter Sample with Listener.
    5. In the Deployment step, select Next.
    6. In the EventFilePath, enter the location of the SampleEvents.xml file, ..\<Gateway_HOME>\sample\SampleEvents.xml.
    7. Select Save.
  3. Open the SampleEvents.xml file:
    1. Reset the flag value as: EventProcessed = "false"
    2. Save the XML file.
  4. Add a synchronization job for the Sample provider:
    1. In the sidebar, select Monitoring.
    2. Select Refresh to update the results.
    3. Select the Sample Import Project Synchronization job.
    4. Select Job Details.
    5. Select Update Destination, P6 Web Services Request to confirm the projects have been imported to P6.


Legal Notices | Your Privacy Rights
Copyright © 2013, 2022

Last Published Thursday, October 6, 2022