Use gateway with a custom integration template

When you develop a custom integration template, you may have to integrate with Collibra DGC workflows or configure the security of those templates.

The gateway template provides an example and a quick start for adding those features to the integration templates. The only thing you need to do to reuse gateway features, is "registering" the integration template that the gateway has to use.

Prerequisites

You have installed collibra-domain. See Import the Collibra domain in Anypoint Studio.

Steps

To use the gateway with a custom integration template, follow these steps:

  1. In your new integration template, find the VM connector in the palette:
  2. Drag the connector to create the message source of your main integration template:

    The name of the connector (The entry point) is by default VM.

  3. Double-click the connector to change its properties:
    1. On the General tab, update the Display Name to a meaningful name.
    2. From the Connector Configuration list, select shared_vm_connector .
    3. Define the Queue Path. It specifies the name by which the gateway recognizes the integration. It corresponds to the flowId parameter that is used when triggering integrations with the use of the gateway. See Triggering an integration.

  4. Drag and drop a VM connector at the end of your integration flow.

    The added VM connector is also added as the last element of the exception handling strategy. When an exception occurs during the integration process, it is also useful to notify the workflow about it and close the Collibra DGC session.

  5. Double-click the connector to change its properties:

    1. On the General tab, update the Display Name to a meaningful name.
    2. Select shared_vm_connector from the Connector Configuration list.
    3. In the Queue Path field, type gateway_end_process.

  6. Define the payload, which must be sent to the gateway, by adding an expression in front of the end point.
    Example of setting a response to "Success" using the Expression component:

Result

Your integration script is fully integrated with the Collibra gateway template.