I have added a broker.
I have subscribed to a queue.
I cannot consume messages. There aren't that many variables in the Consume Message workflow.
Does anyone have any suggestions for places to look? (We set this up in a lab identically and it worked like a charm.)
Here is the script I'm using inside the workflow:
var props = subscription.retrieveLastOnMessageTrigger();
var messageBody = props.get('body');
var headers = props.get('headers');
var properties = props.get('properties');
System.log("notification.type : " + headers.get("notification.type"));
System.log("notification.orgUUID : " + headers.get("notification.orgUUID"));
System.log("notification.entityType : " + headers.get("notification.entityType"));
System.log("notification.entityUUID : " + headers.get("notification.entityUUID"));
System.log("notification.userUUID : " + headers.get("notification.userUUID"));
System.log("notification.operationSuccess : " + headers.get("notification.operationSuccess")+ "\n");
System.log("messageBody : " + messageBody + "\n");
System.log("receivedRoutingKey : " + properties.get("receivedRoutingKey"));
System.log("messageCount : " + properties.get("messageCount"));
System.log("deliveryMode : " + properties.get("deliveryMode"));
System.log("priority : " + properties.get("priority"));
System.log("deliveryTag : " + properties.get("deliveryTag"));
System.log("contentType : " + properties.get("contentType"));
System.log("contentEncoding : " + properties.get("contentEncoding"));
System.log("receivedExchange : " + properties.get("receivedExchange"));
System.log("contentLength : " + properties.get("contentLength"));