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 corresponding synchronization in the Gateway user interface.

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. Select Configuration.
    2. Select Deployments.
    3. Select Add.
    4. In the General tab, enter the following values:
      • Select Application Provider: Select Sample from the drop-down.
      • Deployment Name: Enter Sample with Listener.
    5. In the Deployment tab, 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. 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 Adapter Request to confirm the projects have been imported to P6.

Related Topics

Primavera Gateway User Role

Transferring Data between Applications: Example

Transferring Data Between Distinct Environments of an Application: Example

Moving Data between Applications

Monitoring the Transfer of Data between Applications

Setting Up Event-triggered Synchronizations



Legal Notices
Copyright © 2013, 2015, Oracle and/or its affiliates. All rights reserved.

Last Published Friday, March 27, 2015