Publisher Activity

You can use the Publisher activity to create and publish messages to a topic. You can create a message with your data and attributes, and send a request to the Google Pub/Sub server to publish the message to the topic.

General

The following table describes the configurations on the General tab of the activity:

Field Module Property? Description
Name No The name of the activity
Google PubSub Connection Yes The name of the shared connection given in the Google PubSub configuration shared resource
Project ID Yes The project ID created on the Google PubSub server
Topic ID Yes The topic ID of the topic where the activity wants to publish messages

Description

On the Description tab, you can add a short description of the activity.

Tags

On the Tags tab, you can create tags with a name and expression.

Input

The following table describes the fields on the Input tab of the activity:
Field Data Type Description
TopicID String The topic ID of the topic, where you want to publish a message
Data String The body of the message you want to publish to a topic
Attributes String A key-value pair that you want to define for a message
Note: You must either have a non-empty Data field or at least one attribute to publish a message.

Output

The Output tab shows the response of the invoked service. The Output tab displays the output schema of the activity as a tree structure. The output is read-only. The information in the schema varies based on the fields selected on the General tab.

Output Item Data Type Description
TopicName String The name of the topic where the message is to be published
MessageID String A unique ID assigned by the Google PubSub server, to the message to be published

Fault

The Fault tab shows the exceptions thrown by this activity. The following exceptions are thrown by the activity:
  • GooglePublisherException
  • GooglePubSubConnectionException
  • GooglePubSubPluginException
  • PublisherInvalidInputException
Error Schema Element Data type Description
msg String The error message returned by the plug-in.
msgCode String The error message returned by the plug-in.