Define a Trigger that Registers Itself with Producer Application

The Rapid Adapter Builder developer can use triggers to host APIs that can receive webhook events.

This procedure gives an overview of how a webhook payload is transformed into a simplified format and displayed in the Oracle Integration mapper.
Ensure that a flow to register and unregister exists in the adapter definition document. For more information on how to define a flow, see Invoke a POST API.
  1. Open the adapter definition document in Visual Studio Code Editor.
  2. Define a pass-through trigger.
  3. Add a subscription section that references the flows to register and unregister.

    Sample code:

    "triggers":{
       "pageChangeEvent": {
          "displayName": "Wiki Page Updated Event",
          "description": "This trigger detects when a Wiki Page Updated Event is raised.",
          "type": "webhook",
          "httpMethod": "POST",
          "request": {
            "schemaType": "application/schema+json",
            "schema": {
              "$ref": "#/schemas/eventSchema"
            }
          },
          "subscription": {
            "register": "flow:eventRegisterFlow",
            "deregister": "flow:eventDeregisterFlow"
          }
        }
    }