About Publishing and Subscribing to Events
Two types of events are available: published events and system events.
-
Published events
Create and select any events that you need to publish and subscribe to in an integration. You can also define custom header-based filters in events.
Define the events in JSON-formatted or XML schema files.
-
System events
You don't have to create a system event because Oracle Integration creates it for you. Similarly, you can't publish a system event. However, a system event is always available to be subscribed to, and only in a project. System events are available for specific activities.
Available System Events
When an activity raises a system event, you can subscribe to the event without having to create or publish it. You can subscribe to a system event only within a project.
System event | Activity that raises the event |
---|---|
File created |
Creating a file in File Server Note: A system event currently isn't raised when you create a file using the File server action. All other methods of creating a file do raise an event. |
File deleted |
Deleting a file in File Server Note: A system event currently isn't raised when you delete a file using the File server action. All other methods of deleting a file do raise an event. |
File downloaded |
Downloading a file Note: A system event currently isn't raised when you download a file using the File server action. All other methods of downloading a file do raise an event. |
Folder created |
Creating a folder in File Server |
Folder deleted |
Deleting a folder in File Server |
Watch a video to learn more:
Life Cycle for Published Events
The life cycle for published events consists of three high-level steps. These steps are described using an event named Patient Moved as an example. References are provided to more specific documentation for performing these steps.
The publish and subscribe feature enables you to decouple producers and subscribers. This decoupling enables you to define an event and start building your subscriber for the event before the event is published. You can create an event type (can be a producer, subscriber, or someone else). Creating an event type defines a contract, meaning that there's a contract to produce and subscribe.
Step | Description | For Specific Details... |
---|---|---|
1 - Create an event | Create a JSON-formatted or XML schema event on the
Events page of Oracle Integration. For
this example, the Patient Moved event contains the following
JSON-formatted
contents:
You can also define custom headers to which to add filters later when creating a subscribing integration. See Define Custom Header Filters to Trigger Integrations. |
See Create Events to Publish and Subscribe to in Integrations. |
2 - Create an event publishing integration | Create a publishing integration to publish the event:
|
See Publish Events in an Integration. |
3 - Create an event subscription integration | Create a subscription integration to subscribe to the
event:
|
See Subscribe to Events in an Integration. |