Using IBM AppConnect on Cloud to connect ServiceNow with IBM MQ

Introduction

In this post I’ll describe how to forward ServiceNow data to an IBM MQ queue for further processing e. g. in a on-premise data center. This is an example how to connect two cloud applications using IBM AppConnect.

Use-Case

As ServiceNow user you have to process your incidents e. g. in the on-premise data center. For this purpose the incidents will be passed as messages to a IBM MQ queue. An on-premise incident processing application will consume the messages from the queue.

IBM AppConnect on Cloud Integration

I implemented this scenario in a simple IBM AppConnect on Cloud event-driven flow:

  1. The flow processing is triggered by ServiceNow. This is provided by the input ServiceNow node. The „incident“ data type has been configured as input data.
  2. In the flow the „Urgency“ ticket field is validated. Depeneding on the field value the incident data is sent to one of the 2 output MQ queues. This logic is provided by the „If“ node:
  3. The flow application logging is implemented by the „Log“ nodes.  The logs are displayed in the „Logs“ AppConnect perspective. Here is a „Log“ node configuration example:
  4. The output is forwarded to one of the MQ queues which is implemented using MQ nodes:

Application Access Configuration

The flow is connected to ServiceNow and IBM MQ. The application access is configured in the AppConnect „Catalog“ view for each required application. For example for ServiceNow a particular account is created:

The „ClientId“ and „ClientSecret“ values are configured in ServiceNow in „System OAuth/Application Registry“ view.

Integration Test

  1. To test the flow I log in to ServiceNow and create a new incident:
  2. The incident creation triggers the flow and the incident content is passed to the DEV.QUEUE.1: