# TIBCO EMS trigger

The **TIBCO EMS trigger** is a [Connector Event trigger](https://docs.cloud.google.com/application-integration/docs/triggers#event-triggers) that lets you invoke an integration based on
the TIBCO EMS events that you've subscribed to in your TIBCO EMS connection.

> [!NOTE]
> **Important:** Integration Connectors is a billable component of Google Cloud. For information about the costs and charges of using Integration Connectors, see [Integration Connectors pricing](https://docs.cloud.google.com/integration-connectors/docs/pricing).

## Before you begin

If you plan to create or configure a new connection for the **TIBCO EMS trigger**, make sure that you have the following IAM role on the project:

- Connector Admin (`roles/connectors.admin`)
- For information about granting roles, see [Manage access](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access).

Grant the following IAM roles to the service account that you want to use for the **TIBCO EMS trigger**:

- Application Integration Invoker (`roles/integrations.integrationInvoker`)
- For information about granting roles to a service account, see [Manage access to service accounts](https://docs.cloud.google.com/iam/docs/manage-access-service-accounts).

## Add the TIBCO EMS trigger


To add a **TIBCO EMS trigger** to your integration, perform the following steps:

1. In the Google Cloud console, go to the **Application Integration** page.

   [Go to Application Integration](https://console.cloud.google.com/integrations)
2. In the navigation menu, click **Integrations**


   The **Integrations List** page appears listing all the integrations available in the Google Cloud project.
3. Select an existing integration or click **Create integration** to create a new one.


   If you are creating a new integration:
   1. Enter a name and description in the **Create Integration** pane.
   2. Select a region for the integration.

      > [!NOTE]
      > **Note:** The **Regions** dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, Click **Enable Region** . See [Enable new region](https://docs.cloud.google.com/application-integration/docs/enable-new-region) for more information.

   3. Select a service account for the integration. You can change or update the service account details of an integration any time from the **Integration summary** pane in the integration toolbar.

      > [!NOTE]
      > **Note:** The option to select a service account is displayed only if you have enabled integration governance for the selected region.

   4. Click **Create**.


   The newly created integration opens in the *integration editor*.
4. In the *integration editor* navigation bar, click **Triggers** to view the list of available triggers.
5. Click and place the **TIBCO EMS trigger** element in the integration editor.
6. To configure the **TIBCO EMS trigger**, you can either use an existing TIBCO EMS connection available in Integration Connectors, or create a new TIBCO EMS connection using the inline connection creation option.

## Configure TIBCO EMS trigger using an existing connection


You can configure the **TIBCO EMS trigger** using an existing TIBCO EMS connection in Integration Connectors. Note that the **TIBCO EMS trigger** is an [Connector Event trigger](https://docs.cloud.google.com/application-integration/docs/triggers#event-triggers), therefore you can only use a TIBCO EMS connection with event subscription enabled to configure the trigger.

For information about how to configure a **TIBCO EMS trigger** using a new TIBCO EMS connection, See [Configure TIBCO EMS trigger using a new connection](https://docs.cloud.google.com/application-integration/docs/configure-tibcoems-trigger#create)

To configure a **TIBCO EMS trigger** using an existing TIBCO EMS connection, perform the following steps:

1. Click the **TIBCO EMS trigger** element in the integration editor to open the trigger configuration pane.
2. Click **Configure trigger**.
3. Provide the following configuration details in the **Connector Event Trigger Editor** page:
   1. **Region:** Select the region of your TIBCO EMS connection.
   2. **Connection:** Select the TIBCO EMS connection that you want to use.

      Application Integration only displays those TIBCO EMS connections that are active and have an event subscription enabled.
   3. Select `Queue` or Topic as the `JMS Source Type`.
      - If you select `Queue`, provide the TIBCO EMS queue name in the JMS Source Name column.
      - If you select `Topic`, provide the TIBCO EMS topic name in the JMS Source Name column.
   4. **Service Account** : Select a service account with the [required IAM roles](https://docs.cloud.google.com/application-integration/docs/configure-tibcoems-trigger#iam) for the TIBCO EMS trigger.
4. Click **Done** to complete the trigger configuration and close the page.

## Configure TIBCO EMS trigger using a new connection

To configure the **TIBCO EMS trigger** using a new TIBCO EMS connection, perform the following steps:

1. Click the **TIBCO EMS trigger** element in the integration editor to open the trigger configuration pane.
2. Click **Configure trigger**.
3. Skip the **Region** field.
4. Click **Connection** and select the **Create Connection** option from the drop-down menu.
5. Complete the following steps in the **Create Connection** pane:
   1. In the **Location** step, choose the location for the new TIBCO EMS connection:
      1. **Region:** Select a region from the drop-down list.
      2. Click **Next**.
   2. In the **Connection Details** step, provide details about the new TIBCO EMS connection:
      1. **Connector version:** Choose an available version of the TIBCO EMS connector from the drop-down list.
      2. **Connection Name:** Enter a name for the TIBCO EMS connection.

         > [!NOTE]
         > **Note:** Connection names must meet the following criteria:
         > - Connection names can use letters, numbers, or hyphens.
         > - Letters must be lower-case.
         > - Connection names must begin with a letter and end with a letter or number.
         > - Connection names cannot exceed 63 characters.

      3. (Optional) **Description:** Enter a description for the connection.
      4. (Optional) **Enable Cloud Logging:** Select this checkbox to store all log data of the connection.
      5. **Service Account** : Select a service account with the [required IAM roles](https://docs.cloud.google.com/application-integration/docs/configure-tibcoems-trigger#iam) for the TIBCO EMS connection.
      6. **Enable event subscription:** Select this option to enable the event subscription for the TIBCO EMS connection.

         > [!NOTE]
         > **Note:** This connector doesn't support the `Enable only event subscription` option.

      7. (Optional) Expand **Advanced settings** to configure the connection node settings.


         For more information about the connection node settings for TIBCO EMS, see the [TIBCO EMS connection](https://docs.cloud.google.com/integration-connectors/docs/connectors/tibcoems/configure) documentation.
      8. (Optional) Click **+ Add label** to add a label to the connection in the form of a key-value pair.
      9. Click **Next**.
   3. Optionally, if you want to use SSL, select **Enable SSL** . This displays the SSL configuration details.
      1. Select a trust store type. It can be either **Public** , **Private** , or **Insecure Connection**.
      2. Select the certificates as displayed based on your trust store selection.
      3. If you are using mTLS, select the key store certificates in the **Key Store** section. Also select the Client Root Certificate in the **Additional Configuration** section.
      4. Optionally, select the TLS version.
      5. Enter the supported cipher suite. Enter multiple cipher suites, as comma separated values. For more information, see [Supported cipher suites](https://docs.cloud.google.com/application-integration/docs/configure-tibcoems-trigger#cipher-suite).

      > [!NOTE]
      > **Note:**
      > - All your certificates must be X.509 certificates and must be in PEM (Privacy Enhanced Mail) format.
      > - Your Client Private Key must be in PKCS#8 format.
      > - You can't directly select a certificate when configuring SSL. You must store all your certificates and private keys as a Secret Manager Secret, and then select the required secret during SSL configuration.

   4. In the **Destinations** step, provide the TIBCO EMS instance details:
      1. **Destination Type:** Select **Host address**.
      2. **Host:** Enter the hostname or IP address of your TIBCO EMS instance.
      3. Click **Next**.
   5. In the **Authentication** step, provide the authentication details for the TIBCO EMS instance:
      1. Select your desired authentication type and enter the relevant details to access the provided TIBCO EMS host URL. To understand how to configure these authentication types, see [Configure authentication](https://docs.cloud.google.com/integration-connectors/docs/connectors/tibcoems/configure#configure-auth).

      2. Click **Next**.
   6. **Review**: Review the provided TIBCO EMS connection details.
   7. Click **Create** to complete creating a new TIBCO EMS connection.
6. Click **Done** and close the page.

### Supported cipher suites

| TLS version | Supported cipher suites |
|---|---|
| 1.2 | - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 - TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 - TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_DHE_RSA_WITH_AES_128_CBC_SHA - TLS_DHE_RSA_WITH_AES_256_CBC_SHA - TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 - TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 1.3 | - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 - TLS_AES_128_GCM_SHA256 |

## Trigger output

The **TIBCO EMS trigger** takes a couple of minutes to complete the event subscription configuration. You can view the status
of your event subscription in the trigger configuration pane under **Event Subscription details**.

The **TIBCO EMS trigger** indicates the status of an event subscription using the following states:

- `Creating`: Indicates that the trigger is subscribing to the event subscription.
- `Active`: Indicates that the trigger is successfully subscribed to an event subscription.
- `Error`: Indicates that the there is an issue with the configured event subscription.

In addition to the event subscription status, the **Event Subscription details** section also
displays other details such as connection region, connection name, and event subscription name.

The following image shows a sample layout of the TIBCO EMS trigger configuration pane:
![image showing TIBCO EMS trigger configuration pane](https://docs.cloud.google.com/static/application-integration/images/tibcoems.png) ![image showing TIBCO EMS trigger configuration pane](https://docs.cloud.google.com/static/application-integration/images/tibcoems.png)

### Trigger output variable


For each event, the **TIBCO EMS trigger** generates a `ConnectorEventPayload`
output variable (in JSON format) which you can use in your downstream tasks. The output
variable will have the payload from your TIBCO EMS event. For example:

```json
{
"message": "Hello world",
"messageContentType": "Text"
}
```

### View event subscriptions

To view and manage all the event subscriptions associated with a connection in Integration Connectors, do the following:

1. Go to **Integration Connectors \> Connections** page.

   [Go to the Connections page](https://console.cloud.google.com/connectors/connections)
2. Click the connection for which you want to view the subscriptions.
3. Click the **Event subscriptions** tab.

   This displays all the event subscriptions for the connection.

## Edit TIBCO EMS trigger

You can edit a **TIBCO EMS trigger** to change or update the connection configuration and event subscription details.

> [!NOTE]
> **Important:** When you edit or modify a TIBCO EMS trigger, you can either retain the previously configured event subscription that is attached to the trigger, or you can delete it. Deleting an event subscription will affect all the published integrations using that event subscription.

To edit a TIBCO EMS trigger, perform the following steps:

1. Click the **TIBCO EMS trigger** element in the integration editor to open the trigger configuration pane.
2. Click **Configure TIBCO EMS trigger**.
3. Do the following in the **Connector Event Trigger Editor** page:
   1. To retain the previously configured event subscription, click **Retain** , else click **Delete** .

      > [!WARNING]
      > **Warning:** Deleting an event subscription will affect all the published integrations using the event subscription. This task cannot be undone.

   2. Update the connection configuration and event subscription details as desired.
   3. Click **Done**.
4. You can view the updated connection and event subscription details in the trigger configuration pane under **Event Subscription details**.

## Quotas and limits

For information about quotas and limits, see [Quotas and limits](https://docs.cloud.google.com/application-integration/docs/quotas).

## What's next

- Learn about [all tasks and triggers](https://docs.cloud.google.com/application-integration/docs/all-triggers-tasks).
- Learn how to [test and publish an integration](https://docs.cloud.google.com/application-integration/docs/test-publish-integrations).

- Learn about [error handling](https://docs.cloud.google.com/application-integration/docs/error-handling-strategy).
- Learn about [integration execution logs](https://docs.cloud.google.com/application-integration/docs/introduction-logs).