Creating the Content Platform Engine Webhook Event Action

To create the initial message for the integration, you create an event action and a subscription in the Administration Console for Content Platform Engine.

Before you begin

Before creating the Webhook event action and subscription, install the 5.5.4 Event-Driven External Service Invocation Extensions add-on on the object store using the Webhook. For instructions, see Installing an add-on feature to an object store.

Procedure

To create a Webhook event action and subscription:

  1. In the domain navigation pane, click the object store that you use for Automation Document Processing.
  2. In the object store navigation pane, go to Data Design > Classes > Other Classes > Event Action > External Event Action > Webhook External Event Action.
  3. From the Actions menu, click Create Instance, and then enter values for the following options.
    • Display Name - for example, ADP Webhook Event Action
    • Descriptive Text - for example, ADP Webhook Event Action
    • Event Receiver Credentials - Enter the credentials in complete HMAC JSON header format, for example, {"credentialType":"HMAC", "credentialSecret":"eb497ac4891d6009d8ef601bfdf6c3f5"}. You might want to type out the special characters if you are copying the credentials to avoid errors when the JSON is parsed.
    • External event receiver endpoint URL - Enter the App Connect Enterprise project, for example, http://app_connect_server:7800/AutomatedDocumentProcessingSample/v1/finalization
    • Receiver Registration Identifier - Enter FinalizeWebhook.
  4. Click Next, then click Finish.
    You can see the created Event Action by going to object store > Events, Actions, Processes > Event Actions.
  5. Create a subscription to the Webhook event action:
    1. Select the object store, then navigate to the target class, for example, Invoice: Data Design > Classes > Document > Invoice.
      This target document class was created by the deployment of your document processing project.
    2. From the Actions menu of the Subscription tab, select New Subscription…
    3. Enter value for Display Name and click Next.
    4. Click Next.
    5. Select Document Processing Finalization Event and click Next.
    6. Select the ADP WebHook Event Action created earlier, and click Next.
    7. Click Next, then click Finish.
      You can view the created Event Action and Subscription by navigating to object store > Events, Actions, Processes > Subscriptions.