Open topic with navigation

TIBCO Flogo® Connector for TIBCO Cloud™ Messaging 1.3.3

# eFTL Message Subscriber Trigger

The eFTL Message Subscriber trigger listens for a published message from the TIBCO Cloud Messaging service.

Important: See the limitations outlined in the Overview section before using this trigger.

## Trigger Settings

The Trigger Settings tab has the following fields:

Field | Description
--- | ---
Connection | Name of the TIBCO Cloud Messaging eFTL connection.
Durable Subscriber | By default, this field is set to False. Setting this field to True changes the subscriber to a durable subscriber. As a durable subscriber, if the app goes down, any incoming messages during the period when the app was down are preserved and delivered once the app comes back up again. Note: A trigger marked as a durable subscriber should have been running at least once for it to receive pending messages that were sent while the app was down. When this field is set to True, the following fields are displayed: Durable Name: Enter a name for the subscription. This is a required field. Durable Type: The following durable types are supported: Shared- For multiple instances of an app, the messages received are distributed among the app instances in a round-robin manner. Standard- For every unique instance of an app, all the apps receive all the messages. The messages are not distributed. Note: In a single app, the same connection cannot be used for two or more TCMMessageReceiver triggers and two or more handlers in a single trigger for the Standard durable type. To configure the Standard durable type for two more triggers or handlers create different connections. In container deployment, if an app is scaled to more than one instance only the last instance receives all messages. Message Ack Mode: The following acknowledgment types are supported: Auto- In this mode, messages are auto acknowledged as soon as they are received from the TCM. In case of failure in business logic, the messages are not redelivered. Use this mode if message redelivery is not preferred. Explicit- In this mode, the message received by the eFTL Message Subscriber Trigger must be explicitly acknowledged within the flow by using the eFTL MessageAck activity. Any unacknowledged messages are re-delivered to the new durable subscriber configured with the same durable name.
Destination | Name of the message destination. If this field is left blank, then it receives all the messages. If not, it only receives the messages with the specific destination set.
Processing Mode | The trigger processes the messages in one of the following modes: Sync- The Sync mode is the default mode. The handler receives and processes only one message at a time. This mode guarantees the processing order of the messages. Async- The handler receives messages concurrently. This mode does not guarantee the processing order of the messages. The total concurrent messages handled by the trigger are based on the type of the engine runner. You can set the engine runner type by using the FLOGO_RUNNER_TYPE variable. The following values are supported: POOLED: The total concurrent messages handled by the trigger handler. To achieve higher concurrency, set FLOGO_RUNNER_WORKERS to a higher value. For an app, the total number of messages processed concurrently is equal to the number of trigger handlers configured with async processing multiplied by FLOGO_RUNNER_WORKERS. For example, if two TCM trigger handlers are configured with async mode and FLOGO_RUNNER_WORKERS is set to 10, 20 messages would be processed concurrently at a given time. DIRECT: Currently, 200 concurrent messages are handled by the trigger handler. For an app, the total number of messages processed concurrently is equal to the number of trigger handlers configured with async processing multiplied by 200. For example, if two TCM trigger handlers are configured with async mode then 400 messages would be processed concurrently at a given time.
Content Matcher | To specify the attributes that match the incoming message click Add row. For each attribute, specify its name, type, and value. Note: You can configure the app property for Content Matcher. The value of the property must be a valid JSON object in the format: `{"k1": "v1", "k2":"v2"}` For the Boolean data type content matcher (dynamic), messages are received for both `true` and `false` values

Important: You cannot have two subscribers with the same durable name but different destinations running concurrently. You must stop the subscriber that was already running before you start the second subscriber. This is also true for blue-green deployments supported by PaaS platforms, such as TIBCO Cloud Integration. So, do not update the destination name in blue-green deployments.

## Output Settings

The field selected on this tab is available in the output schema of the Map to flow Inputs tab.

Field | Description
--- | ---
Message Schema | An example JSON object that you want to receive from the TIBCO Cloud Messaging service.

## Map to flow Inputs

This tab displays the schema specified on the Output Settings tab in a tree structure format. The output of a trigger is displayed for informational purposes only and cannot be modified or altered.

The properties that are displayed on the Output tab schema correspond to the output of this trigger and can be used as input by subsequent activities in the flow.

The Map to flow Inputs tab has the following fields:

Field | Description
--- | ---
message | The message field is preconfigured to map the trigger output to the flow input.
metadata | The metadata includes the following details:
| • | messageId: The ID of the message
| • | deliveryAttempt: The number of times the message delivery is attempted by the message service. This field can be used to identify duplicate messages.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Flogo® Connector for TIBCO Cloud™ Messaging

Copyright © 2018-2024. Cloud Software Group, Inc. All Rights Reserved.