BizTalk Business Activity Monitoring Real World BAM

  • 482 views
Uploaded on

BizTalk Business Activity Monitoring is probably the most powerful feature in the BizTalk solution stack and it is also the least utilized. In concept BAM offers us the ability to offer visibility, …

BizTalk Business Activity Monitoring is probably the most powerful feature in the BizTalk solution stack and it is also the least utilized. In concept BAM offers us the ability to offer visibility, audit, tracking, and alerts all without changing our solutions or writing custom code. The reality is BAM has a learning curve that requires both understanding the implementation details and rethinking your approach to integration solutions to focus on business process / flow rather than technical integration. This session will walk through an advanced real world BAM implementation in the EDI space (purchase order, invoice, ship notice) focusing on a diverse but related series of steps in a long running business process to create a true business level view of several disparate integrations. Features covered will include creating tracking activities and views, progress and dimensions, continuations etc BizTalk Bam Step by Step is Explained.

BizTalk Summit 2014, London March 03-04

Brought to you by BizTalk360

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
482
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
23
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • When was the last time a non-technical person looked at your BizTalk solution and was delighted?
    When was the last time that same person looked at some trivial report or web UI and thought it was the greatest thing in the world?

Transcript

  • 1. REAL WORLD BAM @DanRosanova West Monroe Partners brought to you by
  • 2. WE DON’T ALWAYS KNOW WHAT WE DON’T KNOW
  • 3. WHAT IS WRONG WITH BIZTALK SOLUTIONS? ▪ Lack of visibility ▪ People only care about what they can see ▪ Are business people “impressed” by Integration? ▪ They love apps and websites!
  • 4. OUR BRAINS ARE VISUAL PROCESSORS 42 85 0 10 20 30 40 50 60 70 80 90 % Recognition Recognition of concept Picture Text
  • 5. BAM IS THE VIEW YOUR USERS NEED… SO WHAT IS BAM? ▪ BAM is tracking ▪ BAM is aggregation and analytics (BUZZWORD) ▪ BAM is dynamic alerting ▪ BAM is scalable infrastructure ▪ BAM is code free – if you do it right ▪ BAM is a self service portal
  • 6. HOW IS BAM DIFFERENT? ▪ What we want to see != What our users want to see ▪ Developers & Administrators want to see: ▪ Suspended messages ▪ Errors ▪ Health ▪ Message Box throughput / latency ▪ We already have the perfect tool for this:
  • 7. WHAT DO USERS REALLY WANT TO SEE? ▪ How many orders have I ▪ Received ▪ Invoiced ▪ Shipped ▪ What is the total value of orders this week / month / year? ▪ How long is it taking us to fulfill orders? ▪ Where in the process are _____’s orders and what can I tell them when they call and yell at me? ▪ How can I make my business more lean and profitable?
  • 8. WE ARE IN THE BUSINESS OF TECHNOLOGY OUR USERS ARE IN THE BUSINESS OF BUSINESS
  • 9. TYPICAL ORDER PROCESSING FLOW Customer ERP2 - Invoice 3 - Ship Notice 1 - Purchase Order
  • 10. THAT WHICH CANNOT BE MEASURED CANNOT BE MANAGED W. EDWARDS DEMING
  • 11. EXAMINING THE SOLUTION Web Receive 1 Purchase Order Web Receive 2 ERP Invoice, ASN Web Send 1 ERP PO File Send 1 Invoice File Send 2 ASN Customers
  • 12. MAKING BAM IN 3 STEPS ▪ Create Activity in Excel ▪ Create View in Excel ▪ Binding to solution in TPE 2 View 1 Activity 3 Tracking Profile
  • 13. WHAT DATA WE WANT TO SEE ▪ Business Data ▪ Order Total ▪ Buyer Postal Code ▪ PO Reference ▪ Invoice # ▪ Shipping # ▪ Milestones ▪ Order Received ▪ Sent to ERP ▪ Invoice Generated ▪ Invoice Delivered ▪ Ship Notice Generated ▪ Ship Notice Delivered
  • 14. CREATINGACTIVITIES
  • 15. WHAT DO WE WANT IN OUR VIEW? ▪ What is the Status of an order? ▪ How long does an order take? ▪ How long does it take to invoice? ▪ What is my order count? ▪ What is my max / min fulfillment time?
  • 16. CREATINGVIEWS
  • 17. CREATINGVIEWS
  • 18. CREATINGVIEWS
  • 19. DEPLOYING THE TRACKING PROFILE ▪ bm.exe - located in [BizTalk Install]Tracking ▪ Do yourself a favor, add this to your path or use BAM GUI ▪ bm deploy-all –defininitionFile:SingleActTracking.xlsx
  • 20. BINDING TO OUR SOLUTION – 2 WAYS TPE API
  • 21. ALWAYS USE THE TPE ▪ The TPE binds to multiple points: ▪ Orchestration ▪ Message Content ▪ Message Context ▪ Messaging Properties ▪ TPE is the sandbox / safe room ▪ TPE can bind to many sources and ports concurrently ▪ TPE allows adding / changing BAM without solution changes*
  • 22. BINDINGTHEACTIVITY
  • 23. CONTINUATIONS
  • 24. DEPLOYING THE TRACKING PROFILE ▪ bttdeploy [Name of .btt file]
  • 25. RUNNING THE MOCKS – 3 EASY STEPS 1. [Solution Root]ERPMockbindebugERPMock.exe 2. [Solution Root]LoadMockbindebugLoadMock.exe 3. Look at the BAM Portal 4. Look at the aggregations 5. From Developer Command Prompt: dtexec /sql BAM_AN_SingleOrderView 6. Look at the aggregations again
  • 26. INSPECTINGTHERESULTS
  • 27. CREATINGALERTS
  • 28. MESSINGWITHTORD
  • 29. HOW DOES THIS MAGIC WORK?
  • 30. BAM INFRASTRUCTURE ▪ Databases ▪ Tables / Views ▪ SSIS ▪ TDDS (BAM Event Bus Service) MessageBox BAMPrimaryImport BAMArchive BAMStarSchema BAMAnalysis TDDS SSIS
  • 31. BAM TABLES & VIEWS ▪ BAM Creates Tables NEVER USE THEM ▪ BAM Create Views
  • 32. BAM SSIS PACKAGES ▪ BAM_DM_[ViewName] ▪ Data Management / archiving ▪ BAM_AN_[ViewName] ▪ Processes the cube
  • 33. BAM DATA MAINTENANCE ▪ Every time this job runs it partitions tables ▪ Think about when you want it to run ▪ Normally monthly ▪ Partitions age based on BizTalk settings ▪ The entire completed partition archives ▪ 6 month default time ▪ bm get-activitywindow –Activity:SingleOrderView Table Table Table_GUID Table_GUID View UNION
  • 34. BAM PRIMARY IMPORT CHANGES USE [BAMPrimaryImport] GO /****** Object: View [dbo].[bam_SingleOrderView_CompletedInstances] Script Date: 3/3/2014 4:10:18 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[bam_SingleOrderView_CompletedInstances] AS SELECT * FROM dbo.[bam_SingleOrderView_Completed] WITH (NOLOCK) UNION ALL SELECT * FROM [dbo].[bam_SingleOrderView_C52EE3A6_6C6E_4E47_AF7F_214B9D454BC7] WITH (NOLOCK) GO
  • 35. TDDS - BAM EVENT BUS SERVICE You really don’t want to know! No, really IF you really feel the need check out the tables that start with “Tracking” in the BizTalkMsgBoxDb And the “TDDS_” tables in BAMPrimaryImport You have been warned!
  • 36. CONCLUSION ▪ Always create BAM for your solutions ▪ Create views for each set of users (operations, sales, management) ▪ Create / Schedule BAM jobs (AN / DM) ▪ Teach your users to use BAM effectively ▪ Use BAM views from a custom portal / tool – like Excel ▪ Change the CSS for the portal to not look so 2004
  • 37. QUESTIONS
  • 38. TO IMPRESS THE BOSSONE LAST THING…
  • 39. REAL WORLD BAM @DanRosanova Senior Architect West Monroe Partners http://danrosanova.wordpress.com/rwb