Overview
Advanced Message Queuing Protocol (AMQP) is an open standard for passing business messages between applications or organizations. You can use Service Designer module to define an AMQP task. An AMQP task publishes the service request to an external system (Process Orchestrator) via a message broker.
The AMQP sends the service request to an exchange, which accepts the message from Service Catalog and routes them to message queues. RabbitMQ is an open source message broker software that implements the AMQP standard. An external system (Process Orchestrator) will access RabbitMQ with the required APIs to retrieve the messages and process them.
A new task type called Queue Service Request is available in the Service Designer module under the Plan tab to publish the service request data to a message broker. For more information on how to publish data using AMQP task, see Cisco Prime Service Catalog Designer Guide.
Message Queue
An exchange accepts messages from a producer application and routes them to message queues. The exchange that will be created for the pre, post, and the main AMQP tasks will be all of ‘fanout’ type with a default queue created for each of them and bound to each of them. The names of the default queues would be <topic-name>_queue. The topic name is the name that the user enters in the Service Designer > Plan tab for the ‘Queue Service Request’ task.
Note To prevent poodle attack, Prime Service Catalog integration with RabbitMQ server supports SSL protocol with TLSv1.2 version only. If TLSv 1.2 is not specified, then clients cannot connect to RabbitMQ server for consumption of messages and connections fail with this exception: javax.net.ssl.SSLException: Received fatal alert: protocol_version
Following is a sample code to create an exchange and queue and how to consume a message.
package amqpProject;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.QueueingConsumer;
public class SampleProcess {
public static void main(String[] argv) throws Exception {
String exchangeName = "testExchange";
String queueName = exchangeName+"_queue";
String brokerIpAddress = "10.142.10.77";
String userName = "admin";
String password = "cisco123";
ConnectionFactory factory = new ConnectionFactory();
factory.useSslProtocol("TLSv1.2"); !--Included to prevent Poodle attack
factory.setHost(brokerIpAddress);
factory.setUsername(userName);
factory.setPassword(password);
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
channel.exchangeDeclare(exchangeName, "fanout", true, false, null);
channel.queueDeclare(queueName, true, false, false, null);
channel.queueBind(queueName, exchangeName, "");
QueueingConsumer consumer = new QueueingConsumer(channel);
channel.basicConsume(queueName, true, consumer);
while (true) {
QueueingConsumer.Delivery delivery = consumer.nextDelivery();
String message = new String(delivery.getBody());
System.out.println(" [x] Received from "+queueName+":-");
System.out.println(message);
}
}
}
REST-based nsAPIs
There is a set of REST API for returning the message broker details for a service and its tasks. The signature and the response returned by it are given below. The input required is the service name that will be accepted as a path parameter. All the AMQP tasks for that service with the exchange details will be returned to the caller.
Given below is the sample response for a Service specific API:
http://localhost:8088/RequestCenter/nsapi/messagebroker/service/<service name>
{"tasks":[{"name":"PRE:amqpTask1","connectionIdentifier":"am1","messageFormat":"JSON","exchangeName":"AQAB_Pre","payloadType":"All Message Details (large)","isAutoComplete":"true","transformationType":"JOLT","outboundTransformationName":"","inboundTransformationName":""},{"name":"amqpTask1","connectionIdentifier":"am1","messageFormat":"JSON","exchangeName":"post_exchange_0307","payloadType":"All Message Details (large)","isAutoComplete":"true","transformationType":"JOLT","outboundTransformationName":"","inboundTransformationName":""},{"name":"POST:amqpTask1","connectionIdentifier":"am1","messageFormat":"JSON","exchangeName":"AQAB_Post","payloadType":"All Message Details (large)","isAutoComplete":"false","transformationType":"JOLT","outboundTransformationName":"","inboundTransformationName":""}]}
Overview API
The Overview API gathers all the exchanges that are configured in the Service Designer module and makes a call to find out what are the exchanges and queues that are already created in the RabbitMQ server. The Overview API performs a lookup on AMQP server to get information on queues and the output is sent across in JSON format.
Using Overview API and noCache parameter:
-
When you specify RabbitMQ information through the UI and use the Overview API without noCache parameter, the information is retrieved from both cache and database.
-
However, when you directly access database to insert RabbitMQ information, you must use Overview API with noCache =1 to ensure that the latest information is fetched.
The sample response from the RabbitMQ server is as follows:
http://localhost:8088/RequestCenter/nsapi/messagebroker/overview
{"connections":[{"connectionIdentifier":"am1","host":"10.78.0.247","port":5671},{"connectionIdentifier":"am2","host":"10.78.0.247","port":5671},{"connectionIdentifier":"am3","host":"10.78.0.247","port":5671},{"connectionIdentifier":"AM4","host":"10.78.0.247","port":5671},{"connectionIdentifier":"am5","host":"10.78.0.247","port":5671}]}
http://localhost:8080/RequestCenter/nsapi/messagebroker/overview?connectionIdentifier=am1
{"rabbitmq_version":"3.6.1","username":"admin","password":"UhP0zDGRoC2R7isv9qCQ6A==","ipAddress":"10.78.0.247","recoveryInterval":300000,"vhost":"/","inboundQueue":"psc_inbound_queue","authorization_key":"owL7ViRfE4Sce0aG1jSzZInkIVw5CsM7acQ5rlswpXzF/kForoUjlfrVVUOuA+CqSFSTuJlLQ5GRUMmzzxbV2xtrMvhGed6x1WU08MbDLKydSSY5UQvoAS7aZ0dROdXvF+G4uD4nAlQ6HSIc6dBct3M+dDJcm02z9OshvMaCmkvZa380B8/MbbBhu5Q3FntzWkAVY/FobU9gvlidoDt1Ty0CmAgfvPbP6joLXYaTPHjaqjYaBaX2Y4m+1V7Wm3Rb+oLpHZkCVm7Pr1zlLByPs6d+qaQShIfr0yeXXbZrQNh3s8qHl+YbYFRtNin/JEeLa6pY5J19m6zUV78n2BstRQ==","message-time-to-live":"300000","useSSL":true,"port":"5671","exchanges":[{"name":"exchange2","vhost":"/","type":"fanout","created":"false"},{"name":"HeatStack","vhost":"/","type":"fanout","created":"true"},{"name":"exchange3","vhost":"/","type":"fanout","created":"false"}],"queues":[{"name":"exchange2_queue","vhost":"/","created":"false"},{"name":"HeatStack_queue","vhost":"/","created":"true"},{"name":"exchange3_queue","vhost":"/","created":"false"}],"certificate":"-----BEGIN CERTIFICATE-----\nMIIC5DCCAcygAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRlc3RDQTAeFw0x\nNjA2MTExMTUwMTJaFw0xNzA2MTExMTUwMTJaMCcxFDASBgNVBAMMCyQoaG9zdG5hbWUpMQ8wDQYD\nVQQKDAZzZXJ2ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCq8v2yJT7tv+nOwFSo\nEE1c0oVg3skd86JN7jVJaz/mMOyJjDmf1147iUwZPMTTCB34ovYUXFkw+a+0ext2WRHgQLTMPvVO\nA86jwuPd/bhUxXg8jeEfE4V/1Seci9Xz+5VxqCybCNOzJQ12/vLXvIJK43U/+1GdXnpWxFaF0yd0\nht3iUy6mfUAHfNMI2SOfJwbbdUaMyD0/Krsiu+X+vFQBUDmM7Y0priItiDVDq7rxug2UOPACzzMG\n5yJ5aJjNLSlJRwKKst/jjvesqHIgWNo0qKvkTET3tIVsKDi1Fn9IdKQuuoI1n225+58cWSANmZ5M\n4BdSIf4z6QRuKliBRi55AgMBAAGjLzAtMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgUgMBMGA1UdJQQM\nMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQC4L9fk4kuu/dpLeFWNUhb5Uyk6AqbTRAyD\nlq1m11E09EhmTH7cnoFsz0ELBDppASIUADSb9jmUeNKJtjW94gq8luSem1Z8lQzUCOCE6rsaznrw\nm9jJO7gXA5SSmy7PgdokdhbeTzlSYA3kkkR5ZE8M403Qv5cEPREqnshs6f6bQSm8tzSNETy3OyHL\npUo7YVTBCfJMQ/e2nZxCJSDuEL6QaIL4kmEYeu8j/1RplBAofMkDfDe+yMx2MJYl+MopVggGexpa\nMqybCchrDTJ/8sI/R18Ld80TQ2Km70sQqvNVenCpGCtgGIcupRWaAOpsQH0PNaUK+lcwYRIvf0VS\n09QE\n-----END CERTIFICATE--"}
Encrypt Credentials using Public Key GUID
Prime Service Catalog supports a secure way to return AMQP credentials, using the GUID of the Public Key passed to the nsAPI.
If the external system Public Key GUID is passed as a Query parameter, then credentials are encrypted (using PO Secure String Format) in the response with the Public Key associated to the GUID
If the external system Public Key GUID is not passed, encrypted string in DB is returned as is (note: external system cannot decrypt this)
Encrypted sensitive data is returned in the following AMQP overview APIs:
http://localhost:8088/RequestCenter/nsapi/messagebroker/overview?publicKeyGUID=...
Encryption is done using the public key configured at the connection level.
Generating AuthorizationKey API
For Service Item operations like create, update, and delete, Authorization Key is of more of importance than channel-id. But channel-id is also required in the message for uniquely identifying the external task. Authorization key generated using the below nsAPI is unique for a user. Authorization key is same for all the AMQP connections for a particular user even though its value seems to change every time the above nsAPI is called. This key is used for authorizing the user and to access various modules based on the permissions the user is granted.
Authorization key can be obtained from the following nsAPI:
http://<ServerURL> /RequestCenter/nsapi/messagebroker/overview?connectionIdentifier=<particular amqp connection identifier> {"rabbitmq_version":"3.6.1","username":"admin","password":"UhP0zDGRoC2R7isv9qCQ6A==","ipAddress":"10.78.0.247","recoveryInterval":300000,"vhost":"/","inboundQueue":"psc_inbound_queue","authorization_key":"owL7ViRfE4Sce0aG1jSzZInkIVw5CsM7acQ5rlswpXzF/kForoUjlfrVVUOuA+CqSFSTuJlLQ5GRUMmzzxbV2xtrMvhGed6x1WU08MbDLKydSSY5UQvoAS7aZ0dROdXvF+G4uD4nAlQ6HSIc6dBct3M+dDJcm02z9OshvMaCmkvZa380B8/MbbBhu5Q3FntzWkAVY/FobU9gvlidoDt1Ty0CmAgfvPbP6joLXYaTPHjaqjYaBaX2Y4m+1V7Wm3Rb+oLpHZkCVm7Pr1zlLByPs6d+qaQShIfr0yeXXbZrQNh3s8qHl+YbYFRtNin/JEeLa6pY5J19m6zUV78n2BstRQ==","message-time-to-live":"300000","useSSL":true,"port":"5671","exchanges":[{"name":"exchange2","vhost":"/","type":"fanout","created":"false"},{"name":"HeatStack","vhost":"/","type":"fanout","created":"true"},{"name":"exchange3","vhost":"/","type":"fanout","created":"false"}],"queues":[{"name":"exchange2_queue","vhost":"/","created":"false"},{"name":"HeatStack_queue","vhost":"/","created":"true"},{"name":"exchange3_queue","vhost":"/","created":"false"}],"certificate":"-----BEGIN CERTIFICATE-----\nMIIC5DCCAcygAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRlc3RDQTAeFw0x\nNjA2MTExMTUwMTJaFw0xNzA2MTExMTUwMTJaMCcxFDASBgNVBAMMCyQoaG9zdG5hbWUpMQ8wDQYD\nVQQKDAZzZXJ2ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCq8v2yJT7tv+nOwFSo\nEE1c0oVg3skd86JN7jVJaz/mMOyJjDmf1147iUwZPMTTCB34ovYUXFkw+a+0ext2WRHgQLTMPvVO\nA86jwuPd/bhUxXg8jeEfE4V/1Seci9Xz+5VxqCybCNOzJQ12/vLXvIJK43U/+1GdXnpWxFaF0yd0\nht3iUy6mfUAHfNMI2SOfJwbbdUaMyD0/Krsiu+X+vFQBUDmM7Y0priItiDVDq7rxug2UOPACzzMG\n5yJ5aJjNLSlJRwKKst/jjvesqHIgWNo0qKvkTET3tIVsKDi1Fn9IdKQuuoI1n225+58cWSANmZ5M\n4BdSIf4z6QRuKliBRi55AgMBAAGjLzAtMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgUgMBMGA1UdJQQM\nMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQC4L9fk4kuu/dpLeFWNUhb5Uyk6AqbTRAyD\nlq1m11E09EhmTH7cnoFsz0ELBDppASIUADSb9jmUeNKJtjW94gq8luSem1Z8lQzUCOCE6rsaznrw\nm9jJO7gXA5SSmy7PgdokdhbeTzlSYA3kkkR5ZE8M403Qv5cEPREqnshs6f6bQSm8tzSNETy3OyHL\npUo7YVTBCfJMQ/e2nZxCJSDuEL6QaIL4kmEYeu8j/1RplBAofMkDfDe+yMx2MJYl+MopVggGexpa\nMqybCchrDTJ/8sI/R18Ld80TQ2Km70sQqvNVenCpGCtgGIcupRWaAOpsQH0PNaUK+lcwYRIvf0VS\n09QE\n-----END CERTIFICATE--"}
Transforming JSON Using JOLT Work flow
From Prime Service catalog 12.0 onwards, inbound transformations are also supported. However, transformations are not supported for Service Item operations. For inbound messages transformation types supported are XSL and JOLT, and for outbound XSL, JOLT, and FTL are supported.
The below is the high-level work flow for creating a transformations are as follows:
Step 1 Add an AMQP connection from
Administration
>
Manage Connections
>
AMQP
. Select the For more information, see section Managing AMQP Connections in the
Cisco Prime Service Catalog Administration and Operation Guide
.
Step 2 Create outbound and inbound transformations in JOLT format. For details see Managing Transformations.
Step 3 In the service designer configure AMQP task for the service request. For details see section Configuring AMQP Tasks for Publishing Service Request to an External System of
Cisco Prime Service Catalog Designer Guide
.
Points to remember:
-
You can define default values for the following which can be overridden in AMQP task parameter popup page.
– "Public Key
– "Message Type i.e the message format (XML/JSON) in which outbound and inbound message processing would happen by default for the particular connection.
-
Message type can be set at the AMQP connection level or at the task level, but the task level setting takes precedence.
-
Different transformations are fetched based on the transformation type selected i.e., if XML is selected only XSL transformations will be available for outbound transformation, inbound transformation selection and for JSON it can be either JOLT or FTL transformations.
-
FTL transformation is supported only for outbound messages.
Sample JSON Transformation Using JOLT
JSON inbound AMQP input:
"namePO": "TextField.Text", "channelId": "51515F28-E36A-478C-8773-E35B215CF36C"
JOLT Transformation spec:
"namePO": "message.updateData.dataValue.[&1].name", "valuePO": "message.updateData.dataValue.[&1].value", "multiValuedPO": "message.updateData.dataValue.[&1].multiValued" "channelId": "message.channelId" "actionPO": "message.&1.action" "channelId": "message.channelId" "addCommentsPO": "message.addComments", "channelId": "message.channelId"
JSON Output:
Below is the output generated by Prime Service Catalog inbound AMQP code based on the above transformation and input, which is finally processed.
"comment" : [ "test comment 1", "test comment 2", "test comment 3" ] "channelId" : "51515F28-E36A-478C-8773-E35B215CF36C", "name" : "TextField.Text",
Sample AMQP Inbound XML
<message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <data-value multi-valued="false"> <name>amqpDict1.field1</name> <message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <comment>testing new comments</comment> <message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <take-action action="done">
Sample AMQP Inbound JSON
"comment" : [ "test comment 1", "test comment 2", "test comment 3" ] "channelId" : "51515F28-E36A-478C-8773-E35B215CF36C", "name" : "TextField.Text",
Inbound Message
Two types of operations are supported for inbound messages from the third-party system—requisition operations and service item operations.
The most important element within the nsXML is the channel-id, an ID that uniquely identifies the external task. This ID is provided to the third-party system and needs to appear in their response if the corresponding data update is to be successfully applied by the business engine.
Requisition Operations for AMQP
Requisition operations supported for AMQP are similar to Service Link requisition operations. However, in AMQP inbound messages supports XML and JSON formats. For details on each of the operations, see section Inbound nsXML Message.
The take-action operation marks the delivery task as completed.
<message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <take-action action="done">
The dictionary fields data in the requisition are updated with the new values.
<message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <data-value multi-valued="false"> <name>amqpDict1.field1</name>
An add-comments message is used to add comments to the System Comments section of the requisition.
<message channel-id="30FCC75D-83A0-4DD9-E050-007F01019778"> <comment>testing new comments</comment>
Service Item Operations for AMQP
Note Transformations are not supported for Service Item operations.
For the service item operations, authorization key must be generated and included in the messages. Use the below nsAPI to generate the authorization key:
http://<ServerURL> /RequestCenter/nsapi/messagebroker/overview?connectionIdentifier=<particular amqp connection identifier>
For more details on this API, see section
Generating AuthorizationKey API.
Below are the sample Service Item operations for AMQP.
create
In create messages, the attribute values are added to the service items.
<message channel-id="A984F860-DBE7-48EB-B3A2-F6A0159B093F" authorization-key="liDBm1NeRVbVmwbBmAd+cca0/Z8jf863aYOKl3QXSWcYwn5aGuPxn09CjDzv5EKR7/CcJx5+2gu1MhUopAuiX3WwjX/DP1Xw3nmFLMz6dmaiiq0+5v4XOKmNqf1J3GvBJYjTxAkH1VbCQ2y1fNxE8/cP5wyd3mU6MLlD9tjc/Iro950gLlTq+9C2/QMis6ya52O2D8F652jnHnWbZrDf6zPdOSlFpCKkg05YSVpqifGgqjEh3RTyPs9w0QcNcxWcEqD1vvBMNW0VAL/YaW+MNmoUnpglR0cUeOJ3WFr8/1l/uyNyhfvAYfDUznVCNfVDtkMzCWhA4eH25XQUtmKwGw=="> <name>AnandServiceItem</name> <serviceItemAttribute name="Name">Hannah</serviceItemAttribute> <serviceItemAttribute name="DOB">1995-01-19</serviceItemAttribute> <serviceItemAttribute name="Age">25</serviceItemAttribute>
update
In update messages, omitting a service item attribute results in no change to the attribute value. When an attribute is explicitly specified in the message but contains no value, the value of the attribute for the service item is set to blank for text fields and zero for numeric fields.
<message channel-id="A984F860-DBE7-48EB-B3A2-F6A0159B093F" authorization-key="liDBm1NeRVbVmwbBmAd+cca0/Z8jf863aYOKl3QXSWcYwn5aGuPxn09CjDzv5EKR7/CcJx5+2gu1MhUopAuiX3WwjX/DP1Xw3nmFLMz6dmaiiq0+5v4XOKmNqf1J3GvBJYjTxAkH1VbCQ2y1fNxE8/cP5wyd3mU6MLlD9tjc/Iro950gLlTq+9C2/QMis6ya52O2D8F652jnHnWbZrDf6zPdOSlFpCKkg05YSVpqifGgqjEh3RTyPs9w0QcNcxWcEqD1vvBMNW0VAL/YaW+MNmoUnpglR0cUeOJ3WFr8/1l/uyNyhfvAYfDUznVCNfVDtkMzCWhA4eH25XQUtmKwGw=="> <name>AnandServiceItem</name> <serviceItemAttribute name="Name">Anand2update</serviceItemAttribute> <serviceItemAttribute name="RAM">Primarymemory3</serviceItemAttribute> <serviceItemAttribute name="MemoryInt">759001</serviceItemAttribute> <serviceItemAttribute name="Model512">Lenovo T440 updated</serviceItemAttribute> <serviceItemAttribute name="Money">80000</serviceItemAttribute> <serviceItemAttribute name="ManufTime">2016-05-01 16:45</serviceItemAttribute>
delete
Delete service item requests require only the names for the service item type and instance. Additional service item attribute and subscription information is ignored.
<message channel-id="A984F860-DBE7-48EB-B3A2-F6A0159B093F" authorization-key="liDBm1NeRVbVmwbBmAd+cca0/Z8jf863aYOKl3QXSWcYwn5aGuPxn09CjDzv5EKR7/CcJx5+2gu1MhUopAuiX3WwjX/DP1Xw3nmFLMz6dmaiiq0+5v4XOKmNqf1J3GvBJYjTxAkH1VbCQ2y1fNxE8/cP5wyd3mU6MLlD9tjc/Iro950gLlTq+9C2/QMis6ya52O2D8F652jnHnWbZrDf6zPdOSlFpCKkg05YSVpqifGgqjEh3RTyPs9w0QcNcxWcEqD1vvBMNW0VAL/YaW+MNmoUnpglR0cUeOJ3WFr8/1l/uyNyhfvAYfDUznVCNfVDtkMzCWhA4eH25XQUtmKwGw=="> <serviceItemAttribute name="Name">Anand3</serviceItemAttribute>
Outbound Message
The message format published is in the nsXml, JSON, or FTL formats similar to the format that is currently used by Service Link.
Sample XML Outbound Message
The sample nsXml Data Structure is given below.
-
Sample message structure for Data; No Service Details(default; small)
<?xml version="1.0" encoding="UTF-8"?> <message channel-id="F203ACC7-E6CA-A2EA-E040-007F0101140E" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <task-started task-type="task"> <actual-duration>0.0</actual-duration> <context-id>69</context-id> <context-type>Requisition Entry</context-type> <due-date>2014-04-25 20:00:00</due-date> <expected-duration>10.0</expected-duration> <is-sharable>true</is-sharable> <is-shared>true</is-shared> <next-action-id>2</next-action-id> <performer-actual-duration>0.0</performer-actual-duration> <scheduled-start-date>2014-04-24 18:00:00</scheduled-start-date> <start-date>2014-04-23 14:11:13</start-date> <subject>queueServiceRequest1</subject> <actual-cost>0.0</actual-cost> <actual-duration>0.0</actual-duration> <email>internal@newscale.com</email> <first-name>admin</first-name> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <last-name>admin</last-name> <login-name>admin</login-name> <timezone>Pacific Standard Time</timezone> <due-on>2014-04-25 20:00:00</due-on> <expected-cost>0.0</expected-cost> <expected-duration>0.0</expected-duration> <external>false</external> <email>internal@newscale.com</email> <first-name>admin</first-name> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <last-name>admin</last-name> <login-name>admin</login-name> <timezone>Pacific Standard Time</timezone> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <data-value multi-valued="false"> <name>amqpDict1.field1</name> <data-value multi-valued="false"> <name>amqpDict1.field2</name> <data-value is-secure="true" multi-valued="false"> <name>amqpDict1.field3</name> <value>ut3u4RC699wz7Jd2O+4cix23m9XXgAC/EsDiHp1ERsOpdKSKdrtgMjFWcVoO96aCFSkCgwa2tkBo vKoOHzaillNiJ47+aY8zCWKwd17tCjmMLEkeQlTvrDvIHR/DT1iWSmN08DI9+Ns7hY3A/g6ijUoM gcuMczH+5F/pGtgupLZF/L7FwOwu4VcKVWM/2N5tuXGz+1aHTRAAAAByQXr/yD/75Ysy57LnQLxc <data-value is-secure="true" multi-valued="false"> <name>amqpDict1.field4</name> <value>ut3u4RC699wz7Jd2O+4cix23m9XXgABReynDp5AdBgRi5ivhS05Unv98BgWgxc5YNcZrCihhhH/1 rzZqhjiIjAoRelIjADDb3IQP72armXsLRTvh0/fusd4jLdVIm4q1s+GaSTt6F3oqQeZ4RLhVUopo p2zNAxmjaGj629C8gWREes3Z8EjDvXg5K1YVi90fXJV1jDoADhAAAABP1hct5TNV2d8R1cN/qDtK <due-date>2014-04-25 20:00:00</due-date> <item-number>1</item-number> <price-per-unit>0.0</price-per-unit> <rejected>false</rejected> <requisition-entry-id>69</requisition-entry-id> <revision-number>105</revision-number> <estimated-cost>0.0</estimated-cost> <name>queueService1</name> <default-duration>0.0</default-duration> <start-mode>0</start-mode> <pricing-schema>0</pricing-schema> <service-id>2</service-id> <standard-duration>0.0</standard-duration> <start-date>2014-04-23 14:10:48</start-date> <start-mode>0</start-mode> <requisition-id>64</requisition-id> <started-on>2014-04-23 14:10:47</started-on> <requisitionentryref itemnumber="1"/>
-
Sample message structure with secure strings in it.
<?xml version="1.0" encoding="UTF-8"?> <message channel-id="F203ACC7-E6CA-A2EA-E040-007F0101140E" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <task-started task-type="task"> <actual-duration>0.0</actual-duration> <context-id>69</context-id> <context-type>Requisition Entry</context-type> <due-date>2014-04-25 20:00:00</due-date> <expected-duration>10.0</expected-duration> <is-sharable>true</is-sharable> <is-shared>true</is-shared> <next-action-id>2</next-action-id> <performer-actual-duration>0.0</performer-actual-duration> <scheduled-start-date>2014-04-24 18:00:00</scheduled-start-date> <start-date>2014-04-23 14:11:13</start-date> <subject>queueServiceRequest1</subject> <actual-cost>0.0</actual-cost> <actual-duration>0.0</actual-duration> <email>internal@newscale.com</email> <first-name>admin</first-name> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <last-name>admin</last-name> <login-name>admin</login-name> <timezone>Pacific Standard Time</timezone> <due-on>2014-04-25 20:00:00</due-on> <expected-cost>0.0</expected-cost> <expected-duration>0.0</expected-duration> <external>false</external> <email>internal@newscale.com</email> <first-name>admin</first-name> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <last-name>admin</last-name> <login-name>admin</login-name> <timezone>Pacific Standard Time</timezone> <name><s ID="847"/></name> <organizational-unit-id>1</organizational-unit-id> <data-value multi-valued="false"> <name>amqpDict1.field1</name> <data-value multi-valued="false"> <name>amqpDict1.field2</name> <data-value is-secure="true" multi-valued="false"> <name>amqpDict1.field3</name> <value>ut3u4RC699wz7Jd2O+4cix23m9XXgAC/EsDiHp1ERsOpdKSKdrtgMjFWcVoO96aCFSkCgwa2tkBo vKoOHzaillNiJ47+aY8zCWKwd17tCjmMLEkeQlTvrDvIHR/DT1iWSmN08DI9+Ns7hY3A/g6ijUoM gcuMczH+5F/pGtgupLZF/L7FwOwu4VcKVWM/2N5tuXGz+1aHTRAAAAByQXr/yD/75Ysy57LnQLxc <data-value is-secure="true" multi-valued="false"> <name>amqpDict1.field4</name> <value>ut3u4RC699wz7Jd2O+4cix23m9XXgABReynDp5AdBgRi5ivhS05Unv98BgWgxc5YNcZrCihhhH/1 rzZqhjiIjAoRelIjADDb3IQP72armXsLRTvh0/fusd4jLdVIm4q1s+GaSTt6F3oqQeZ4RLhVUopo p2zNAxmjaGj629C8gWREes3Z8EjDvXg5K1YVi90fXJV1jDoADhAAAABP1hct5TNV2d8R1cN/qDtK <due-date>2014-04-25 20:00:00</due-date> <item-number>1</item-number> <price-per-unit>0.0</price-per-unit> <rejected>false</rejected> <requisition-entry-id>69</requisition-entry-id> <revision-number>105</revision-number> <estimated-cost>0.0</estimated-cost> <name>queueService1</name> <default-duration>0.0</default-duration> <start-mode>0</start-mode> <pricing-schema>0</pricing-schema> <service-id>2</service-id> <standard-duration>0.0</standard-duration> <start-date>2014-04-23 14:10:48</start-date> <start-mode>0</start-mode> <requisition-id>64</requisition-id> <started-on>2014-04-23 14:10:47</started-on> <requisitionentryref itemnumber="1"/>
Sample JSON Outbound Message
"contextType": "Requisition Entry", "dueDate": "2016-11-29 19:00:00", "expectedDuration": 10.0, "firstName": "Default Service Delivery", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "timezone": "Pacific Standard Time", "performerActualDuration": 0.0, "firstName": "Default Service Delivery", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "timezone": "Pacific Standard Time", "scheduledStartDate": "2016-11-28 17:00:00", "startDate": "2016-11-26 12:32:36", "firstName": "Default Service Delivery", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "timezone": "Pacific Standard Time", "email": "internal@newscale.com", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "timezone": "Pacific Standard Time", "dueOn": "2016-11-26 12:32:35", "email": "internal@newscale.com", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "timezone": "Pacific Standard Time", "name": "<s ID=\"847\"/>", "organizationalUnitId": 1 "name": "amqpDict1.field1", "name": "amqpDict1.field2", "dueDate": "2016-11-29 19:00:00", "requisitionEntryId": 17, "startDate": "2016-11-26 12:32:36", "startedOn": "2016-11-26 12:32:35", "channelId": "42346EF5-D2A7-EC03-E050-11AC02003EE1"