Message Publisher Activity
The message publisher activity publishes messages to a topic. The topic must be preconfigured in the Google Cloud Pub/Sub service.
SettingsThe Settings tab has the following fields:
Field | Description | ||||||
---|---|---|---|---|---|---|---|
Google Pub/Sub Connection |
(Required: Yes) Select Google Cloud Pub/Sub Connection |
||||||
Topic ID |
(Required: No) Configure the ID of the topic to publish messages. The topic with the given ID must be available in theGoogle Cloud Pub/Sub project. Optionally, you can configure the topic name. You can dynamically set the topic ID on the Input tab. |
||||||
Enable Message Ordering |
(Required: No) Enable delivery of messages based on the ordering key. The following options are available:
Note: To enable ordering of messages, you must enable the message ordering feature when creating the subscription in the Google Cloud Pub/Sub service.
|
||||||
Message Data Format |
(Required: Yes) Format of the data to be sent. For JSON format, configure JSON schema or sample JSON data on the Input Settings tab. By default the data format is set to String. |
The Input Settings tab has the following fields:
Field | Description |
---|---|
Schema for JSON data |
(Required: No) Applicable when Message Data Format on the Settings tab is set to JSON. Enter the JSON schema or JSON sample payload for the message data. |
Message Attributes |
(Required: No) Message attributes to be sent |
The Input tab has the following fields:
Field | Description |
---|---|
topicId |
(Required: No) The topic ID to publish messages. The topicId value would override the value of Topic ID that is set on the Settings tab. |
message |
(Required: Yes) Message data to be sent. When Message Data Format on the Settings tab is set to String, the data type is string. When Message Data Format on the Settings tab is set to JSON, the data type is a JSON object. |
messageAttributes |
(Required: No) Value for the message attributes configured on the Input Settings tab. |
messageOrderingKey |
(Required: No) Value for the message ordering. This field is available only when Enable Message Ordering on the Settings tab is set to True. |
The Output tab has the following field:
Field | Description |
---|---|
messageId |
(Required: Yes) Identity of the published message |
If you want this activity to iterate multiple times within the flow, enter an expression that evaluates to the iteration details. Select a type of iteration from the Type menu. The default type is None, which means the activity does not iterate. For more information, see the "Using the Loop Feature in an Activity" topic in the .
Retry On ErrorThe Message Publisher activity can resend the messages for the following errors:
-
DEADLINE_EXCEEDED
-
UNAVAILABLE
-
INTERNAL
-
RESOURCE_EXHAUSTED
Set the retry count and interval to appropriate values. For more information on the error codes, see the Google Cloud Pub/Sub documentation and for information on Retry on Error tab, see the "Using the Retry on Error Feature in an Activity" topic in the TIBCO Flogo® Enterprise User Guide.