Oct 212014
 

“During development, stuff I want to see what the data looks like at every step along the way, is there a way to do that?”

In most extensions with the ESB Vision product, there is a Payload property.

Samples include:

Logging Messaging Extender

image

Reprocessing Orchestration Extender

image

Orchestration Broker

image

Messaging Broker

image

Logging Orchestration Extender

image

Payload Orchestration Extender

image

Reprocessing Orchestration Extender

image

To disable all logging, simply open up the esb.config change this entry to false

image

To see the data, simply look up in the BAM AllRelationships View

image

Oct 212014
 

“How do I log data as it flows through the ESB? If I look at the data that is stored in the BAM Activities that come out of the box with the ESB, all I see is GUIDs. Yes, I can tell which itineraries run, when they start and finish, but that information doesn’t help me at all, I need to have some data attached to the message to be able to track.”

This is the first question we encountered when we first demonstrated our ESB Vision to United Healthcare.

This entry is the first of two regarding logging. We are going to drop an Itinerary Service shape on the Itinerary Design surface, and name it Log Information. I am going to choose the Logging Messaging Extender

image

If there are other things that need to specify:

  • If I am planning on logging additional information, I want to enable Continuation
  • In the Service Name I choose the On-Ramp

image

  • In the Service Name I choose the Messaging Logger

image

  • I want this step to be logged in the default Itinerary Tracking activity, so I choose to Enable Tracking
  • If I want to store the actual payload of the message within this BAM activity, I choose True on Storage

image

This allows me a point in the flow to store data, however we haven’t defined what actual data we are going to store. I can add an infinite number of items. Let’s add two, the last name and the original file name.

Create a resolver and choose the Context Logger Resolver Extension

image

I specify the BAM Type as NVARCHAR[50]

image

But let’s change the length by pressing the + sign, and give it a friendly name, this is the column header that is going to show up in the portal

image

Now we need to choose the context property, I simply drop the context property for the Context Properties:

image

Now lets add another resolver and choose XPath Logger Resolver Extension

image

I fill in the rest,

  • Data Type: NVARCHAR[50]
  • Friendly Name: Name
  • Part Number: 0 (for multi-part messages you can change the index, we have a client using this for HL7)
  • Xpath: /*[local-name()=’Order’ and namespace-uri()=’http://ExternalInterface.Definition’]/*[local-name()=’Name’ and namespace-uri()=”]

image

 

Here is what it looks like in the portal

image

and

image

Oct 212014
 

This is part 2 of the logging features. If I want to log data mid itinerary, buy cialis I want to use the Orchestration Logging Step

I drag the Itinerary Service onto the Itinerary Design surface and choose Logging Orchestration Extender

image

Since I am not going to log anything after this I am not enabling the Continuation

image

I want the step to show up on the portal, decease so I choose to have Tracking Enabled, and I for at least development, I want to see what data is being passed through the bus at this step so I set Storage to True

image

 

I connect the other shapes, and part of the product is the ability to create the Activities:

I choose one of the following Exporters:

image

If I choose the XML Itinerary Exporter, it places a series of defaults, to be discussed further in a later post

However, what I am most interested in is the BAM Activity XML file. This is the name of the Itinerary saved in your Documents folder.

image

If I choose Database Itinerary Exporter I have a few additional settings.

  • Activity Overwrite: should it remove the currently deployed activity and re-deploy
  • BAM Primary Import Database: the default BAM Primary Import DB

image
Here is the completed Itinerary Orchestraiton Broker

If I export the Tracking File Exporter, I get the itinerary and all of the items for caching, but I also get the Activity for me to deploy to other environments

image