Subscription Activity

You can use the Subscription activity to receive messages published to a topic. Based on your requirement, you can use Auto or Client acknowledge mode.

Note: You must have a subscription to the topic to be able to view messages published to a 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
Subscription ID Yes The Subscription ID of the subscription created for a topic
Acknowledge Mode No Select an acknowledge mode from the following:
  • Auto: The message is automatically acknowledged after it is received by the activity
  • Client: The message is in unacknowledged state after it is received by the activity
Note: Ensure that the message is confirmed in the client mode using a ActiveMatrix BusinessWorks™ Confirm activity. If a message is not acknowledged before the process instance ends, the Google PubSub server attempts to re-deliver the message.

Description

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

Advanced

The following table describes the fields on the Advanced tab of the activity:
Field Module Property? Description
Sequence Key No

This field contains an XPath expression that specifies which processes should run in sequence. Process instances with sequencing keys evaluating to the same value, are executed sequentially in the sequence, the process instance was created.

Custom Job Id No

This field contains an XPath expression that specifies a custom job ID for every job in the process instance.

Tags

On the Tags tab, you can add tags to the activity using the button.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multiple conversations.

Output

The following table describes the output elements on the Output tab of the activity.

Output Item Data Type Description
MessageID String The message ID assigned by the Google PubSub server.
PublishTime String The time at which the message was published. This is populated by the Google Pubsub server.
Data String The message received by the activity

Fault

The Fault tab shows the exceptions thrown by this activity. The following exception is thrown by the activity:

  • GooglePubSubPluginException
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.