Top Banner
iWay Business Activity Monitor User's Guide Version 8.0 and Higher July 15, 2020
112

iWay Business Activity Monitor User's Guide

Oct 16, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: iWay Business Activity Monitor User's Guide

iWay Business Activity Monitor

User's GuideVersion 8.0 and Higher

July 15, 2020

Page 2: iWay Business Activity Monitor User's Guide

Active Technologies, EDA, EDA/SQL, FIDEL, FOCUS, Information Builders, the Information Builders logo, iWay, iWaySoftware, Parlay, PC/FOCUS, RStat, Table Talk, Web390, WebFOCUS, WebFOCUS Active Technologies, and WebFOCUSMagnify are registered trademarks, and DataMigrator and Hyperstage are trademarks of Information Builders, Inc.

Adobe, the Adobe logo, Acrobat, Adobe Reader, Flash, Adobe Flash Builder, Flex, and PostScript are either registeredtrademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.

Due to the nature of this material, this document refers to numerous hardware and software products by theirtrademarks. In most, if not all cases, these designations are claimed as trademarks or registered trademarks by theirrespective companies. It is not this publisher's intent to use any of these names generically. The reader is thereforecautioned to investigate all claimed trademark rights before using any of these names other than to refer to the productdescribed.

Copyright © 2020, by Information Builders, Inc. and iWay Software. All rights reserved. Patent Pending. This manual, orparts thereof, may not be reproduced in any form without the written permission of Information Builders, Inc.

Page 3: iWay Business Activity Monitor User's Guide

Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Help Us to Serve You Better . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

User Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Information Builders Consulting and Training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

1. Introducing iWay Business Activity Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

iWay Business Activity Monitor (BAM) Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13

BAM Driver Facility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Database Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13

BAM Web Application Console. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

2. Installing iWay Business Activity Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Installing iWay Business Activity Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

3. Configuring and Using iWay Business Activity Monitor . . . . . . . . . . . . . . . . . . . . . . . . . .31

Accessing the iWay Business Activity Monitor Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Activity Management Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Transaction Activity Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34

Transaction View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Transaction History View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40

Channel Activity Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Message View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46

Transaction History View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48

EDI Activity Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Partner Activity Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53

Messages View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55

Transaction History View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57

Message Resubmission. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Resubmit Facility Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Selecting Messages to be Resubmitted. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63

iWay Business Activity Monitor User's Guide 3

Page 4: iWay Business Activity Monitor User's Guide

Message At Hand Resubmit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Selectable Resubmit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64

Configuring the BAM_TID_RESUBMIT_CHANNEL. . . . . . . . . . . . . . . . . . . . . . . . . . .64

BAM Web Console Perspective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

User Process Flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66

Processing Resubmitted Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

Using the Search Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

Administration Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69

Role Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

User Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

User Audit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

User Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Monitoring User-Defined Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

Correlation Management Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75

Correlation Management in iWay Business Activity Monitor. . . . . . . . . . . . . . . . . . . . . . . . . . . 76

Application Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

BAM Driver Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

Understanding Recovery Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Using BAM Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

BAM Archive Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

BAM Copy Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

BAM Info Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

BAM List Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

BAM Refresh Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87

4. Structure of the iWay Business Activity Monitor Database . . . . . . . . . . . . . . . . . . . . . .89

BAM_ACTIVITY Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

BAM_ACTIVITY_CONTEXT Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

BAM_ACTIVITY_EXTENDED Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96

5. Configuring User Authentication for iWay Business Activity Monitor . . . . . . . . . . . . .99

User Authentication Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

Creating an LDAP Directory Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100

Creating an LDAP Authentication Realm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

Contents

4 Information Builders

Page 5: iWay Business Activity Monitor User's Guide

Mapping LDAP Roles to iWay BAM Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107

Enabling iWay BAM Authentication Through an Authentication Realm . . . . . . . . . . . . . . . . . . . . . . 108

Contents

iWay Business Activity Monitor User's Guide 5

Page 6: iWay Business Activity Monitor User's Guide

Contents

6 Information Builders

Page 7: iWay Business Activity Monitor User's Guide

Preface

This document describes how to install and configure iWay Business Activity Monitor (BAM). Itis intended for users with administrator knowledge of the operating environment of iWayService Manager (iSM) and an associated database system to be used in conjunction withBAM.

How This Manual Is Organized

This manual includes the following chapters:

Chapter/Appendix Contents

1 Introducing iWay BusinessActivity Monitor

Provides an overview of iWay Business ActivityMonitor (BAM), including key features andcomponents.

2 Installing iWay BusinessActivity Monitor

Describes how to install iWay Business ActivityMonitor (BAM).

3 Configuring and Using iWayBusiness Activity Monitor

Describes how to configure and use iWay BusinessActivity Monitor (BAM).

4 Structure of the iWayBusiness Activity MonitorDatabase

Describes the functionality and structure of theBAM_ACTIVITY, BAM_ACTIVITY_CONTEXT, andBAM_ACTIVITY_EXTENDED tables, which are usedby the iWay Business Activity Monitor database.

5 Configuring UserAuthentication for iWayBusiness Activity Monitor

Describes how to configure authentication realmsfor iWay Business Activity Monitor (BAM).

Documentation Conventions

The following table describes the documentation conventions that are used in this manual.

Convention Description

THIS TYPEFACE

or

this typeface

Denotes syntax that you must enter exactly as shown.

iWay Business Activity Monitor User's Guide 7

Page 8: iWay Business Activity Monitor User's Guide

Convention Description

this typeface Represents a placeholder (or variable), a cross-reference, or animportant term. It may also indicate a button, menu item, or dialogbox option that you can click or select.

underscore Indicates a default setting.

Key + Key Indicates keys that you must press simultaneously.

{ } Indicates two or three choices. Type one of them, not the braces.

| Separates mutually exclusive choices in syntax. Type one of them,not the symbol.

... Indicates that you can enter a parameter multiple times. Type onlythe parameter, not the ellipsis (...).

.

.

.

Indicates that there are (or could be) intervening or additionalcommands.

Related Publications

Visit our Technical Content Library at http://documentation.informationbuilders.com. You canalso contact the Publications Order Department at (800) 969-4636.

Customer Support

Do you have questions about this product?

Join the Focal Point community. Focal Point is our online developer center and more than amessage board. It is an interactive network of more than 3,000 developers from almost everyprofession and industry, collaborating on solutions and sharing tips and techniques. AccessFocal Point at http://forums.informationbuilders.com/eve/forums.

Related Publications

8 Information Builders

Page 9: iWay Business Activity Monitor User's Guide

You can also access support services electronically, 24 hours a day, with InfoResponseOnline. InfoResponse Online is accessible through our website, http://www.informationbuilders.com. It connects you to the tracking system and known-problemdatabase at the Information Builders support center. Registered users can open, update, andview the status of cases in the tracking system and read descriptions of reported softwareissues. New users can register immediately for this service. The technical support section of http://www.informationbuilders.com also provides usage techniques, diagnostic tips, andanswers to frequently asked questions.

Call Information Builders Customer Support Services (CSS) at (800) 736-6130 or (212)736-6130. Customer Support Consultants are available Monday through Friday between 8:00a.m. and 8:00 p.m. EST to address all your questions. Information Builders consultants canalso give you general guidance regarding product capabilities. Please be ready to provide yoursix-digit site code number (xxxx.xx) when you call.

To learn about the full range of available support services, ask your Information Buildersrepresentative about InfoResponse Online, or call (800) 969-INFO.

Help Us to Serve You Better

To help our consultants answer your questions effectively, be prepared to providespecifications and sample files and to answer questions about errors and problems.

The following table lists the environment information our consultants require.

Platform

Operating System

OS Version

JVM Vendor

JVM Version

The following table lists the deployment information our consultants require.

Adapter Deployment For example, JCA, Business Services Provider, iWayService Manager

Container For example, WebSphere

Preface

iWay Business Activity Monitor User's Guide 9

Page 10: iWay Business Activity Monitor User's Guide

Version

Enterprise Information System(EIS) - if any

EIS Release Level

EIS Service Pack

EIS Platform

The following table lists iWay-related information needed by our consultants.

iWay Adapter

iWay Version Level

iWay Patch

The following table lists the types of iWay Explorer. Specify the version (and platform, ifdifferent than listed previously) in the columns provided.

iWay Explorer Type Version Platform

Swing

Servlet

Eclipseࡊ

Embedded in iWay Designer

The following table lists additional questions to help us serve you better.

Request/Question Error/Problem Details or Information

Did the problem arise througha service or event?

Help Us to Serve You Better

10 Information Builders

Page 11: iWay Business Activity Monitor User's Guide

Request/Question Error/Problem Details or Information

Provide usage scenarios orsummarize the application thatproduces the problem.

When did the problem start?

Can you reproduce thisproblem consistently?

Describe the problem.

Describe the steps toreproduce the problem.

Specify the error message(s).

Any change in the applicationenvironment: softwareconfiguration, EIS/databaseconfiguration, application, andso forth?

Under what circumstance doesthe problem not occur?

The following is a list of error/problem files that might be applicable.

Input documents (XML instance, XML schema, non-XML documents)

Transformation files

Error screen shots

Error output files

Trace files

Service Manager package to reproduce problem

Custom functions and agents in use

Diagnostic Zip

Preface

iWay Business Activity Monitor User's Guide 11

Page 12: iWay Business Activity Monitor User's Guide

Transaction log

For information on tracing, see the iWay Service Manager User's Guide.

User Feedback

In an effort to produce effective documentation, the Technical Content Management staffwelcomes your opinions regarding this document. You can contact us through our website, http://documentation.informationbuilders.com/connections.asp.

Thank you, in advance, for your comments.

Information Builders Consulting and Training

Interested in training? Information Builders Education Department offers a wide variety oftraining courses for this and other Information Builders products.

For information on course descriptions, locations, and dates, or to register for classes, visitour website (http://education.informationbuilders.com) or call (800) 969-INFO to speak to anEducation Representative.

User Feedback

12 Information Builders

Page 13: iWay Business Activity Monitor User's Guide

Chapter1Introducing iWay Business ActivityMonitor

This section provides an overview of iWay Business Activity Monitor (BAM), including keyfeatures and components.

In this chapter:

iWay Business Activity Monitor (BAM) Architecture

iWay Business Activity Monitor (BAM) Architecture

iWay Business Activity Monitor (BAM) is an extension of iWay Service Manager (iSM) andprovides an end-to-end, non-invasive view into transaction life cycles as they span acrossmultiple channels and/or iSM servers. It enables you to capture, analyze, resolve, and actupon business transaction events gathered by BAM. The architecture of BAM is based on iSMand uses standard iSM components to provide a seamless integration with an existingapplication life cycle.

BAM consists of two layers, a data capture layer facilitated by the BAM driver facility, and adata presentation layer facilitated by the BAM web application console.

BAM Driver Facility

After BAM is configured on iSM, an internal iSM activity facility is created that enables BAM tocapture data about the transactions that flow through the server (iSM). The activity driver runsin parallel to the business application logic providing a non-invasive data capture of transactionevents. Even though the BAM activity driver is exposed in the iSM Administration Console, it isnot recommended to change this configuration directly, unless it is required for advanced IToperations. All of the essential BAM configuration tasks should be done using the BAM tools,as described in Configuring and Using iWay Business Activity Monitor on page 31.

Database Prerequisites

The BAM activity driver uses a database for metric definitions, performance metric dataarchival, and so on. As a result, a database is also a prerequisite of BAM. Currently, BAMsupports:

Oracle 8i, 9i, 10g, and 11g

iWay Business Activity Monitor User's Guide 13

Page 14: iWay Business Activity Monitor User's Guide

MS SQL Server 2005 and higher

DB2 non-Mainframe

BAM Web Application Console

BAM also includes a web application console that presents you with all of the information thatis captured. This console is developed using the iSM non-blocking HTTP listener with anunderlying process for data rendering as provided in the pre-configured channel for BAM. Thischannel is called BAMChannel. The BAM web application console enables you, among otherthings, to view and analyze captured transaction data. It also provides a facility to resubmitmessages that enables you to repair and reprocess transactions. The BAM web applicationconsole can be accessed using the following default URL once the BAMChannel is deployed:

http://localhost:8087

For more information on using the web application console, see Configuring and Using iWayBusiness Activity Monitor on page 31.

iWay Business Activity Monitor (BAM) Architecture

14 Information Builders

Page 15: iWay Business Activity Monitor User's Guide

Chapter2Installing iWay Business ActivityMonitor

This section describes how to install iWay Business Activity Monitor (BAM).

In this chapter:

Prerequisites

Installing iWay Business Activity Monitor

Prerequisites

Before continuing, ensure that the following components are available:

iWay Service Manager (iSM) Version 8.0

During the iSM installation (using the Windows or Java-based installer), ensure that theBusiness Activity Monitor feature is selected.

After iSM has been installed, confirm that the iwcpBAM.jar file is located in your<iway_home>\etc\manager\console directory.

In the iSM Administration Console, click Tools in the top menu and verify that BusinessActivity Monitor displays in the left pane.

Ensure that one of the following supported database systems is installed:

Oracle 8i, 9i, 10g, and 11g

MS SQL Server 2005 and higher

DB2 non-Mainframe

These are the only databases that are supported by iWay BAM.

Ensure that the corresponding .jar file for your database driver is located in your<iway_home>\lib directory. If you have to copy the .jar file to this directory, ensure to firststop iSM and then start iSM when finished.

Web Browsers:

Mozilla Firefox Version 31.0 and higher.

iWay Business Activity Monitor User's Guide 15

Page 16: iWay Business Activity Monitor User's Guide

iWay BAM is currently tested with Mozilla Firefox Version 55.0.3 (32 bit) and Version57.0 (64 bit).

Google Chrome Version 40 and higher.

iWay BAM is currently tested with Google Chrome Version 61.0.3163.100 (64 bit).

Microsoft Internet Explorer Version 10 and higher.

iWay BAM is currently tested with Microsoft Internet Explorer Version 11.0.9600.18817.

Note: Support for JavaScript and Cookies must be enabled in your browser settings. Thereare known issues with browser caching where the caching must be cleared periodically toreload data. In addition, several pop-up windows may have their corners cut off slightly,which does not prevent the functionality. This will be resolved in a future release.

Installing iWay Business Activity Monitor

This section describes how to install iWay Business Activity Monitor (BAM).

Procedure: How to Install iWay Business Activity Monitor

1. Open your database management tool. For example, in SQL Server Management Studio,right-click Databases, and then select New Database.

Installing iWay Business Activity Monitor

16 Information Builders

Page 17: iWay Business Activity Monitor User's Guide

The New Database window opens, as shown in the following image.

2. In the Database name field, enter BAMDB and then click OK.

The Data Definition Language (DDL) scripts are provided to generate database tables.They are located in the following directory:

<iway_home>\etc\bam\scripts

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 17

Page 18: iWay Business Activity Monitor User's Guide

Note that each set of scripts is database specific, as shown in the following image.

There are also storepro and tablescripts folders for each database, as well as a readmefile in the directory, as shown in the following image.

Installing iWay Business Activity Monitor

18 Information Builders

Page 19: iWay Business Activity Monitor User's Guide

3. In SQL Server Management Studio, highlight the database name (BAMDB) and click NewQuery at the top of the screen.

A query palette opens, as shown in the following image.

4. From the tablescripts folder, select BAM_Tables_Create.sql, as shown in the followingimage.

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 19

Page 20: iWay Business Activity Monitor User's Guide

5. Drag the script and drop it into the editor palette. You can also open it in your text editorby pressing Ctrl+A to select all, Ctrl+C to copy, and Ctrl+V to paste into SQL ServerManagement Studio.

6. Click Execute.

7. At completion, note any errors and then close the open palette.

8. Repeat Steps 3 to 7 to run the seven stored procedures from the storepro folder in thefollowing order:

01_f_INITCAP.sql

02_f_SetStringWildCard.sql

03_f_Script_DynCol.sql

04_f_TxChannelStatus.sql

05_p_BAM_Activity_TransHistory.sql

06_p_BAM_ActivityMgt.sql

07_p_BAM_ActivityMgt_TransActivity.sql

9. After you have completed executing the seven stored procedures, minimize or close theSQL Server Management Studio.

10. Open iWay Integration Tools (iIT).

Installing iWay Business Activity Monitor

20 Information Builders

Page 21: iWay Business Activity Monitor User's Guide

11. Right-click anywhere in the Application Explorer tab and select Import from the menu, asshown in the following image.

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 21

Page 22: iWay Business Activity Monitor User's Guide

The Import dialog opens, as shown in the following image.

12. Expand General, select Existing Projects into Workspace, and click Next.

Installing iWay Business Activity Monitor

22 Information Builders

Page 23: iWay Business Activity Monitor User's Guide

The Import Projects pane opens, as shown in the following image.

13. Click Select archive file and then Browse to navigate to the location on your file systemwhere the BAM_804.zip archive file containing the new sample workspace is located.

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 23

Page 24: iWay Business Activity Monitor User's Guide

14. Select the default project (BAM_804) and then click Finish.

You are returned to the Application Explorer tab, where the BAM_804 application project isnow listed, as shown in the following image.

You can explore all of the project components by expanding the various subfolders.

Installing iWay Business Activity Monitor

24 Information Builders

Page 25: iWay Business Activity Monitor User's Guide

15. Expand the bundle subfolder in your application project hierarchy, right-click bundle.iia,select Run As from the menu, and then click Run Configurations, as shown in the followingimage.

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 25

Page 26: iWay Business Activity Monitor User's Guide

The Run Configurations dialog opens, as shown in the following image.

16. Perform the following steps:

a. Click Application Deployment in the left pane.

b. Specify a name for this application deployment in the Name field, which is used by iITfor reference purposes.

c. Click Browse in the Template section and select, as shown in the following image.

Installing iWay Business Activity Monitor

26 Information Builders

Page 27: iWay Business Activity Monitor User's Guide

The Resource Selection dialog opens, as shown in the following image.

d. Expand the Templates subfolder under the BAM_804 application project, select theBAM template, and then click OK.

You are returned to the Run Configurations dialog.

e. Specify a name for this deployment in the Deployment Name field.

Note: This value will be used in the iWay Service Manager (iSM) AdministrationConsole (under Management) to identify this deployment.

f. Enter 8087 in the Console Port field, which is the default port number used by theBAM Console.

g. Click Apply, and then Run.

The progress and status of your application deployment s displayed in the Consoletab, as shown in the following image.

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 27

Page 28: iWay Business Activity Monitor User's Guide

17. Access the iSM Administration Console and click Management in the top menu bar, asshown in the following image.

The Application Management page opens with Deployments selected by default, as shownin the following image.

Notice that the BAM sample application that you deployed using iIT (for example,bam_test) is listed in the Deployments table. By default the application is stopped (down),as indicated by the minus icon (red circle) in the State column.

18. Click the minus icon (red circle) in the State column.

A confirmation message is displayed, as shown in the following image.

19. Click OK.

Installing iWay Business Activity Monitor

28 Information Builders

Page 29: iWay Business Activity Monitor User's Guide

The icon in the State column changes to a check mark (green circle), as shown in thefollowing image.

The BAM sample application is now started (up).

Note: To stop the BAM sample application at any point, click the check mark (green circle)in the State column.

20. Enter the following URL in your browser:

http://localhost:8087

Ensure that the port number specified for the Console Port field in the Run Configurationsdialog in iIT (for example, 8087) is used.

21. Log on to iWay BAM using the following credentials.

User Name: admin

Password: iway

2. Installing iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 29

Page 30: iWay Business Activity Monitor User's Guide

The iWay BAM Login screen is shown in the following image.

22. Click Login.

The iWay Business Activity Monitor console opens, as shown in the following image.

Installing iWay Business Activity Monitor

30 Information Builders

Page 31: iWay Business Activity Monitor User's Guide

Chapter3 Configuring and Using iWay BusinessActivity Monitor

This section describes how to configure and use iWay Business Activity Monitor (BAM).

In this chapter:

Accessing the iWay Business Activity Monitor Console

Activity Management Tab

Administration Tab

Correlation Management Tab

BAM Driver Recovery

Using BAM Commands

Accessing the iWay Business Activity Monitor Console

iWay Business Activity Monitor (BAM) includes a web console that presents you with a view ofall of the available transaction data. The iWay BAM console enables you, among other things,to view and analyze captured transaction data. It also provides a facility to resubmit messagesthat enables you to repair and reprocess transactions.

Procedure: How to Access the iWay Business Activity Monitor Console

To access the iWay Business Activity Monitor console:

1. Enter the following URL in your web browser:

http://localhost:port/

where

port

Is the port that is defined in the BAMChannel. The default port is 8087.

iWay Business Activity Monitor User's Guide 31

Page 32: iWay Business Activity Monitor User's Guide

The User Authentication logon page opens.

2. Enter admin as the user name (default) and iway as the password.

3. Click Login.

The iWay Business Activity Monitor console opens, as shown in the following image.

Note: The initial view will have no data displayed unless there were some transactionsprocessed by the system.

The various BAM facilities can be accessed by clicking the corresponding tabs at the topof the pane. The following sections describe the BAM facilities in more detail.

Accessing the iWay Business Activity Monitor Console

32 Information Builders

Page 33: iWay Business Activity Monitor User's Guide

Activity Management Tab

The Activity Management tab allows you to monitor activities at the iWay Service Managerchannel level. In the iWay Business Activity Monitor console, four tabs are provided in theActivity Management facility for configuration purposes:

Transaction Activity tab

Channel Activity tab

EDI Activity tab

Partner Activity tab

The following image shows the top pane of the iWay Business Activity Monitor console, wherethe main tabs are located.

BAM provides several levels of monitoring. The three major types of monitor categories are:

Channel Level Monitoring. This includes Channel Activity and EDI Activity.

Transaction Level Monitoring. This includes Transaction Activity and Partner Activity.

Correlated Transaction Monitoring. This includes Correlation Management.

Channel Level Monitoring provides a view into the transaction life cycle as it passes through asingle channel with a unique Transaction ID. The message is tracked within a single channelwith a single Transaction ID. This functionality enables backward compatibility with prior 6.0.1releases of BAM. It is still useful in isolated implementations where the transaction life cycle isof interest only within a single channel and not across multiple channels. This is true formonitoring EDI-based transactions where the entire transaction is processed by a singlechannel or for transactions which carry single partner information for each channel and can bemonitored through Partner Activity.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 33

Page 34: iWay Business Activity Monitor User's Guide

Transaction Level Monitoring provides an enhanced view into the transaction life cycle as itpasses through multiple channels or multiple servers. This is the recommended method ofmonitoring transactions for most applications. It is important to note that with this enhancedfunctionality, there is the additional application responsibility to incorporate Transaction IDmanagement into its process. For example, if you have multiple channels through which atransaction is propagated and they are linked by an internal iWay component such as InternalQueue mechanism, there is no additional work that needs to be performed by an application.The Transaction ID will remain the same through the message life cycle even as it isprocessed by multiple internal channels. However, if the link between a multi-channelarchitecture is externalized, it is the responsibility of the application to incorporate Marshalingservices to manage and propagate the message across multiple channels or even serversmaintaining its Transaction ID. This provides a unified view into its entire message life cycleunited by a single Transaction ID. For more information about Marshaling services, see theiWay Service Manager Component Reference Guide.

Correlated Transaction Monitoring uses correlation services to link long-running transactionswith different Transaction IDs into a single view. An example would be an invoice that is sentfor processing, which can take several hours. In this case, the sending of the invoice, whichhas a unique Transaction ID will be linked with Payment processing, which also has its ownTransaction ID through a unified and propagated Correlation ID. This implementation is mostapplicable when used as an addition to Transaction level monitoring. For more informationabout correlation services, see the iWay Service Manager Component Reference Guide.

The following sections provide more information on each available tab in the ActivityManagement facility.

Transaction Activity Tab

Prior releases of the iWay Business Activity Monitor console relied on a channel-based view ofthe environment. This allowed operational people to monitor channels and deal with issuesfrom a channel perspective.

However, it has been determined that a transaction-based view has greater business andoperational benefits. The transaction screen allows users to watch a transaction through itslife within the iWay service bus.

Note that the Transaction History and Message views found in the Transaction Activity tab arethe same as in the Channel Activity tab.

Activity Management Tab

34 Information Builders

Page 35: iWay Business Activity Monitor User's Guide

Most implementations involve transactions spanning multiple channels. Tracking this activityfrom a channel perspective forces the user to have to understand the application infrastructure(for example, what channels relate to each other and why). The transaction channel removesthe need to understand the application architecture and allows users to logically follow the lifecycle of the transaction in realtime.

The following image shows an architecture that uses three channels to process a transaction.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 35

Page 36: iWay Business Activity Monitor User's Guide

The Channel Activity view gives you a view of channel activity, as show in the image below.

The iWay Business Activity Monitor console provides the option to define which channel toview.

Activity Management Tab

36 Information Builders

Page 37: iWay Business Activity Monitor User's Guide

Transaction View

The transaction view allows transactions to be monitored as they pass through multiplechannels, as shown in the following image.

The transaction view provides a quick way to see the overall situation. This allows you to easilydiagnose a problem and trace it back to the source of the problem.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 37

Page 38: iWay Business Activity Monitor User's Guide

The following table lists and describes all of the columns that are available in the ChannelActivity tab of the Activity Management facility.

Column Name Description

Transaction ID Unique ID that is automatically generated by theprocessing channel.

Start Time (UTC) Start time (shown in GMT) at which BAM logged thestart time of the message.

End Time (UTC) End time (shown in GMT) at which BAM logged theend time of the message.

Protocol Protocol on which transactions have been receivedand processed.

Source Name Name of the transaction, depending on the protocol.For example, File-based and FTP-based protocolsgenerate the name of the file read. Queuing (MQ)protocol generates the name based on the headervalues. This value can also be set using thebam_sourcename register.

Activity Management Tab

38 Information Builders

Page 39: iWay Business Activity Monitor User's Guide

Column Name Description

Status The overall transaction status, that is shown as aflag.

The Success icon

indicates that the message execution hasexecuted successfully.

The Warning icon

indicates that a business level warning hasgenerated.

The Error icon

indicates that the message execution has failed.

The In Progress icon

indicates that the message execution status iscurrently in progress.

The Resubmit icon

indicates the resubmission status (for example,if the message has been resubmitted after afailure).

TX History Shows the transaction history and transaction pathof the given transaction.

Message Hyperlink opens the message with which thetransaction was started.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 39

Page 40: iWay Business Activity Monitor User's Guide

You can also customize the view and select or deselect any column for viewing. Some of theadditional non-default columns are shown in the following table.

Column Name Description

Duration Total time it took to complete the execution process.

Resubmit Count Count of the number of times that the transaction hasbeen resubmitted.

Record Key Internal reference for this specific record in the BAMtable. This is used for debugging or specific dataretrieval purposes.

Any user-defined register columns can also be added.

Transaction History View

To view a detailed transaction history of the event message, click the View hyperlink under theTX History column, as shown in the following image.

The information displayed by the TX History view depends on the BAM options that areconfigured.

The Startentry and Endentry options (success/fail) are always displayed.

Based on the Emit option configuration, the Emit messages may or may not be displayed.

Based on the Want Events option configuration, the internal steps of the transaction (suchas every single step of the process) may or may not be displayed.

Based on whether the application uses the specialized Log Message services, theBusiness Error events and Check Point events may or may not be displayed.

Activity Management Tab

40 Information Builders

Page 41: iWay Business Activity Monitor User's Guide

Note: The application design process determines the account performance requirements anddetailed view requirements. For example, increased logging that is performed for eachtransaction will result in a loss of performance. It is recommended to disable the Want Eventsoption to maximize performance and to utilize specialized Log Message services to logtransaction check points at needed locations. For more information about Log Messageservices, see the iWay Service Manager Component Reference Guide.

An example of the Transaction History view is shown in the following image.

Notice that the transaction has maintained its transaction ID and was executed by multiplechannels. It was first received by Demo.Receiver.Channel and then sent for processing toDemo.Processing.Channel. This is one of the key features, which enables a single view intothe transaction life cycle as it spans across multiple channels or even servers as long as itmaintains its transaction ID.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 41

Page 42: iWay Business Activity Monitor User's Guide

For a more detailed perspective, clicking View under the TX Context column enables the view ofthe transaction contexts (SREGs) at a given step of the process. This view enables the user toidentify what has happened to the transaction and view the attributes.

Activity Management Tab

42 Information Builders

Page 43: iWay Business Activity Monitor User's Guide

Channel Activity Tab

The Channel Activity tab is used to display activities that are occurring within a channel. Itprovides the channel name, when the activity happened, and when the activity ended, Statusinformation (completed, failed, active) is also provided. Users also can view the specificmessage with which the transaction was executed and the transaction history of that particulartransaction. In a multi-channel environment where a single transaction passes through multiplechannels, an entry line for each channel executed for the given transaction will appear in theChannel Activity. Each entry line contains its own Transaction ID auto-generated by theprocessing channel. To track transactions across multiple channels or iSM servers/configurations, it is recommended to use the Correlation view for long running transactions orthe Transaction Activity view for short running transactions in which case the same TransactionID is preserved across multiple channels/servers through an internal mechanism or explicitmarshaling of the message.

The following table lists and describes all the columns that are available in the Channel Activitytab of the Activity Management facility.

Column Name Description

Transaction ID Unique ID that is auto-generated by the processingchannel.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 43

Page 44: iWay Business Activity Monitor User's Guide

Column Name Description

Configuration Name Name of the configuration where the transaction hasbeen processed. In multi-node deployment, it can beused to identify multiple client configurations. For moreinformation, see Installing and Configuring iWay BusinessActivity Monitor.

Channel Name Name of the processing channel on which the messageis being executed.

Protocol Protocol on which transactions have been received andprocessed.

Start Time (UTC) Start time is shown in GMT at which BAM logged thestart time of the message.

End Time (UTC) End time is shown in GMT at which BAM logged the endtime of the message.

Source Name Name of the transaction depending on the protocol. Forexample, File and FTP based protocols generate thename of the file read. Queuing (MQ) protocol generatesthe name based on the header values. This value canalso be set using the bam_sourcename register.

Activity Management Tab

44 Information Builders

Page 45: iWay Business Activity Monitor User's Guide

Column Name Description

Status The overall transaction status that is shown as an icon.

The Success icon

indicates that the message execution has executedsuccessfully.

The Warning icon

indicates that a business level warning hasgenerated.

The Error icon

indicates that the message execution has failed.

The In Progress icon

indicates that the message execution status iscurrently in progress.

The Resubmit icon

indicates the resubmission status (for example, if themessage has been resubmitted after a failure).

TX History Shows the transaction history and transaction path ofthe given transaction.

Message Hyperlink opens the message with which the transactionwas started.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 45

Page 46: iWay Business Activity Monitor User's Guide

You can also customize the view and select or deselect any column for viewing. Some of theadditional non-default columns are shown in the following table.

Column Name Description

Duration Total time it took to complete the execution process.

Message Size Size of the processed execution.

Resubmit Key Internal reference key for the record that has beenresubmitted.

Note: Any user-defined register columns can also be added.

Message View

To view the input message received by the channel for processing, click the View hyperlinkunder the Message column, as shown in the following image.

Activity Management Tab

46 Information Builders

Page 47: iWay Business Activity Monitor User's Guide

The Transaction Data dialog opens, as shown in the following image.

The following table lists and describes the available fields and tabs in the Transaction Datadialog.

Field/Tab Description

File Name The name of the file received for processing (availabilitydepends on protocol).

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 47

Page 48: iWay Business Activity Monitor User's Guide

Field/Tab Description

Channel The associated channel for the message.

Protocol The protocol on which the message is received.

TX ID The Transaction ID for the message.

Raw Message tab Displays the actual raw data of the message.

TX Context tab Provides information regarding the Special Registers(SREGs) associated with the processed messages. Basedon your permissions, all field values can be edited andresubmitted. For more information, see MessageResubmission on page 58.

Transaction History View

To view a detailed transaction history of the event message, click the View hyperlink under theTX History column, as shown in the following image.

The information displayed by the TX History view depends on the BAM options that areconfigured.

The Startentry and Endentry options (success/fail) are always displayed.

Based on the Emit option configuration, the Emit messages may or may not be displayed.

Based on the Want Events option configuration, the internal steps of the transaction (suchas every single step of the process) may or may not be displayed.

Based on whether the application uses the specialized Log Message services, theBusiness Error events and Check Point events may or may not be displayed.

Activity Management Tab

48 Information Builders

Page 49: iWay Business Activity Monitor User's Guide

Note: The application design process determines the account performance requirements anddetailed view requirements. For example, increased logging that is performed for eachtransaction will result in a loss of performance. It is recommended to disable the Want Eventsoption to maximize performance and to utilize specialized Log Message services to logtransaction check points at needed locations. For more information about Log Messageservices, see the iWay Service Manager Component Reference Guide.

In the example that is shown, all of the events are enabled to demonstrate a full cycle of thetransaction.

The following image shows the steps and transactions that occurred in the process flow.

After the start node, the Source Name node has been executed, followed by the Decision Testnode to test, followed by a call to IWFAIL indicating an error. It is up to the application to putas much detailed information into the node and its message to enable you to track theinformation and identify each step of the process. You can immediately see what step thetransaction failed to process.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 49

Page 50: iWay Business Activity Monitor User's Guide

For a more detailed perspective, clicking View under the TX Context column enables the view ofthe transaction contexts (SREGs) at a given step of the process. This view enables the user toidentify what has happened to the transaction and view the attributes.

Activity Management Tab

50 Information Builders

Page 51: iWay Business Activity Monitor User's Guide

EDI Activity Tab

The EDI Activity tab is used to display EDI activities. These activities are automaticallyidentified based on the configured Ebix for the specific channel in the iWay Service ManagerAdministration Console. This view is populated only if there is a valid EDI-based channelrunning on the system. The transaction details are similar to channel activity and are basedper transaction.

For EDI specific transactions, there are two types of statuses: an overall transaction status asit is processed, and an acknowledgment status indicating the state of the acknowledgment forthe transaction. Note that the transaction can be successfully processed even though thereare warnings or errors in the acknowledgment document. Properly handled errors in theapplication channel generates a successful state for the transaction as the execution hasbeen able to complete all the steps in the application.

The following table lists and describes all the columns that are available in the EDI Activity tabof the Activity Management facility.

Column Name Description

EDI Type Displays the type of EDI document that is received (forexample, X12).

EDI Version Displays the version of the EDI document that is received(for example, 4010).

Ack Status The acknowledgment status is shown as a flag.

A green flag indicates that the message is accepted.

A red flag indicates that the message is rejected.

EDI Transaction ID Displays the EDI transaction ID of the EDI document that isreceived (for example, 850).

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 51

Page 52: iWay Business Activity Monitor User's Guide

Column Name Description

Configuration Name Name of the BAM configuration that was provided duringthe Multinode mode configuration. For more information,see Installing and Configuring iWay Business ActivityMonitor.

Channel Name Name of the channel on which the message is beingexecuted.

Start Time Start time is shown in GMT at which BAM logged the starttime of the message.

End Time End time is shown in GMT at which BAM logged the endtime of the message.

Status The overall message status is shown as a flag.

A green flag indicates that the message execution hasexecuted successfully.

A red flag indicates that the message execution hasfailed.

A yellow flag indicates a business level warning hasgenerated.

A blue flag indicates that the message execution statuscannot be determined.

Message Hyperlink opens the message with which the transactionwas started.

TX History Shows the transaction history and transaction path andsteps of the given transaction.

Activity Management Tab

52 Information Builders

Page 53: iWay Business Activity Monitor User's Guide

Partner Activity Tab

The Partner Activity tab is used to display the activity that is occurring for partners. This isuseful for business users to know how many transactions were executed for a particularpartner. Activities are captured only if the bam_tpm_partnerid and bam_tpm_partnernameSpecial Registers (SREGs) are set. If these SREGs are not set, then the Partner Activity tab willbe empty. The values of these special registers are set in the process flow dealing with thetransaction, either based on the information available from the incoming document or basedon the Trading Partner Manager (TPM) look up. The Partner Activity enables you to group andorganize transactions for any given partner and filter them based on various criteria.

Note: In the current release, the monitoring of partner information can also be achieved in theTransaction Activity tab by utilizing monitoring of the user-defined registers for partnerinformation.

The following image shows the contents of the Partner Activity tab displayed in the iWayBusiness Activity Monitor console.

The following table lists and describes all the columns that are available in the Partner Activitytab of the Activity Management facility.

Column Name Description

Transaction ID Unique ID auto-generated by the processing channel.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 53

Page 54: iWay Business Activity Monitor User's Guide

Column Name Description

Partner Name Represents the name of the partner for whom thetransaction is being processed.

Start Time (UTC) Start time is shown in GMT at which BAM logged the starttime of the message.

End Time (UTC) End time is shown in GMT at which BAM logged the endtime of the message.

Source Name Name of the transaction depending on the protocol. Forexample, File and FTP protocols generate the name of thefile read. Queuing (MQ) protocol generates the name basedon the header values. This value can also be set using thebam_sourcename register.

Status The message status is shown as a flag.

A green flag indicates that the message execution hasexecuted successfully.

A yellow flag indicated a business level warning hasgenerated.

A red flag indicates that the message execution hasfailed.

A blue flag indicates that the message execution statuscannot be determined.

Message Hyperlink opens the message with which the transactionwas started.

TX History Shows the transaction history and transaction path andsteps of the given transaction.

Activity Management Tab

54 Information Builders

Page 55: iWay Business Activity Monitor User's Guide

You can also customize the view and select or deselect any column for viewing. Some of theadditional non-default columns are shown in the following table.

Column Name Description

Duration Total time it took to complete the transaction.

Message Size Size of the processed transaction.

Configuration Name Name of the configuration where the transaction hasbeen processed. In multi-node deployment, the name canbe used to identify multiple client configurations.

Channel Name Name of the processing channel.

Protocol Protocol on which a transaction has been received andprocessed.

Messages View

To view the partner message, click the View hyperlink under the Message column, as shown inthe following image.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 55

Page 56: iWay Business Activity Monitor User's Guide

The Transaction Data dialog opens, as shown in the following image.

The following table lists and describes the available fields and tabs in the Transaction Datadialog.

Field/Tab Description

File Name The name of the file received for processing (availabilitydepends on protocol).

Activity Management Tab

56 Information Builders

Page 57: iWay Business Activity Monitor User's Guide

Field/Tab Description

Channel The associated channel for the message.

Protocol The protocol on which the message is received.

TX ID The Transaction ID for the message.

Raw Message tab Displays the actual raw data of the message.

TX Context tab Provides information regarding the Special Registers(SREGs) associated with the processed messages. Basedon your permissions, all field values can be edited andresubmitted. For more information, see MessageResubmission on page 58.

Transaction History View

Clicking the View hyperlink under the TX History column enables the detailed view of thetransaction history. It displays every step logged for the executed transaction. This helpsdetermine the possible reason for a transaction failure.

For example, in the following image, you can see the transaction steps of the process flow.After the start node, the Source Name node has been executed, followed by the Decision Testnode to test, followed by a call to IWFAIL indicating an error. It is up to the application to putas much detailed information into the node and its message to enable you to track down theinformation and identify each step of the process. You can then see at what step thetransaction failed to process.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 57

Page 58: iWay Business Activity Monitor User's Guide

For more information, click View under the TX Context column. This enables the view of thetransaction contexts (SREGs) at a given step of the process. This view provides more detailsand enables you to identify what happened to the transaction and view the attributes.

Message Resubmission

Message resubmission allows a message to be retrieved for a particular transaction. It returnsthe message to be retrieved for a transaction with which it was run.

Activity Management Tab

58 Information Builders

Page 59: iWay Business Activity Monitor User's Guide

The View hyperlink under Message in the Activity Management section enables you to view thespecific data of the message used for the transaction and resubmit the message either withchanges or as is prior to resubmission. The View of the message provides default parameters,which you can modify to assist in the resubmitting.

Click View in the Message column for a corresponding transaction, as shown in the followingimage.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 59

Page 60: iWay Business Activity Monitor User's Guide

The Transaction Data dialog box opens, which shows the message that the selectedtransaction used to execute.

You can provide a file name to save the document and also change the document content asdisplayed. Click Resubmit Message once you are ready.

The document will be made available under the following directory:

iway_home\config\current_config\bam\resubmit\channel_name\file_name\TX_ID

Activity Management Tab

60 Information Builders

Page 61: iWay Business Activity Monitor User's Guide

where:

iway_home

Is the directory where iWay Service Manager is installed.

current_config

Is the configuration where the server is running.

channel_name

Is the channel name provided in the BAM Resubmit window. This enables you to resubmitthe documents to a specified directory. The directory is auto-created if does not exist.

file_name

Is the file name provided in the BAM Resubmit window. This enables you to rename the filefor resubmission or keep the default, which is the source name for the transaction.

TX_ID

TX ID provided in the BAM Resubmit window. This should be left as the default value as itenables you to look up further information from BAM database for the specific TransactionID. However, the value can be changed to anything else as mentioned in the applicationrequirements.

The document is now available (for example, to run in a process flow). Additional logic to usethe document must be designed accordingly, but in most cases, the logic can involve movingthe document from this directory to another.

Once the transaction is stored in the resubmit directory, the application will implement aresubmit channel to process the transaction. In most cases, the resubmit channel shouldvalidate that the transaction is allowed to be resubmitted and to which channel it should berouted to based on the transaction information.

Resubmit Facility Overview

Resubmitting a transaction is an application-supported service. iWay Business Activity Monitor(BAM) provides tools to assist in developing a resubmission facility, but does not, alone, affecta resubmission.

The main tools needed to develop a resubmission capability are:

An Emit Agent that moves the message or message reference to be resubmitted to aqueue or other location in which a channel can find and work with the message.

The XDMarshallAgent (currently packaged with the iwgateway extension) that associates thecurrent context with the message to be resubmitted.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 61

Page 62: iWay Business Activity Monitor User's Guide

One or more application-defined special registers holding information, stored when themessage is selected to be [repaired and] resubmitted, pertaining to the cause of theresubmission; this can be used during the resubmission present error information to auser, to hold name of a channel to which the message is to be resubmitted, and so on.

Resubmission works most effectively with a multiple-channel architecture in which theapplication logic is separated from the initial acquisition of the message. In this case, the[repaired and] resubmitted message can be passed to the application logic at an appropriatestage of the execution.

Once a message is selected for resubmit, it needs to be written, by application logic, to anappropriate resubmit queue. From there, it might be passed to a repair station or simply set upfor a later retry. Selection of a message is either by application logic (perhaps acommunication failed or iWay Data Quality Center detected a rule violation in the originalmessage) or manually in a form in which the message is selected and as a consequencewritten to the appropriate queue for resubmit handling.

A sample system is shown in the following image.

Activity Management Tab

62 Information Builders

Page 63: iWay Business Activity Monitor User's Guide

The application acquires the message through an input channel, which in the example electsto pass it on to the application logic. At some point(s) in the application logic, the message istested. If the test passes, the message moves on, eventually passing to the delivery channel.If, however, the message fails the test (shown by the circle with the arrow) the message mightbe [depending on the test] written to the repair channel. Other errors might send it to a delaychannel to simply await some triggering event. The scheduler facility can help with this. In ourdiagram, the repair channel sends the message to a repair station, where it is sent to a userto be modified, and from there the result arrives at the repaired message channel. From there,the message is passed back to the application logic.

The process of writing to the target repair or delay channel would encompass steps on theresubmit (failure) branch of the application logic flow, such as the following.

1. Load agreed-upon special registers with information needed to understand and repair thecause of the failure. Examples might include:

a. What test failed

b. What part of the message needs to be examined (if any)

c. Error message describing the failure

2. Use the XDMarshallAgent to associate the registers with the message to be passed. Therecord identifier (key) needed to obtain the actual message is previously stored [by theBAM driver] in the resubmitSourceKey special register. An SQLAgent can load the messageas it arrived on the Application Logic channel that issued the resubmit using this key.Alternatively, the message as it stood when it entered the Emit Agent to the resubmitqueue is the message that reaches the resubmit queue.

3. The marshaled message is sent via an emit agent (probably internal emit, but perhapsanother protocol) to the appropriate channel (repair channel or delay channel in ourexample diagram).

The Transaction ID will follow the message from channel to channel, enabling later analysis toassociate the message with all of the steps (including the resubmission(s)) taken toward itsfinal disposition.

The action on the repair channel itself or the delay is part of the application logic and is not apart of the resubmit facility.

Selecting Messages to be Resubmitted

A message can be resubmitted from various points of the process to provide extendedflexibility to the application. Based on the user privileges, the message and its context(SREGs) can be modified for a resubmit process. Two types of resubmit options are available:

Message at hand resubmit

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 63

Page 64: iWay Business Activity Monitor User's Guide

Selectable resubmit

Message At Hand Resubmit

The message at hand resubmit option enables you to add the current message being viewedto the resubmit queue for processing. This type of resubmit takes the message with its contextand adds it to the BAM resubmit table directly without any pre-processing. This would includeadding a message from the Message or Transaction History views.

Resubmit from the Message view

In the Message view, there is an option to add the selected message to the resubmitqueue. This will add the original message to the resubmit queue.

Resubmit from the Transaction History view

Any Emit or Check point available in the Transaction History enables you to view themessage under the Protocols column. The message can be added to the resubmit queue atany point, enabling you to add a partially processed message to the resubmit queue. Thisavoids duplicate work of the original application logic.

Selectable Resubmit

The selectable resubmit option enables you to add multiple messages to the resubmit queueat the same time. In this case, the transaction ID for each selected message is propagated tothe pre-configured channel (BAM_TID_RESUBMIT_Channel), which, based on the configuration,selects the proper record to resubmit. The channel should be modified to meet your specificapplication requirements. By default, the original (101 event) message is added to theresubmit queue for the given transaction ID. For more information on the BAM_TID_RESUBMITchannel, see Configuring the BAM_TID_RESUBMIT_CHANNEL on page 64.

Mutli-message Resubmit

The Transaction Activity tab enables you to select multiple messages to be added to theresubmit queue by selecting multiple check boxes next to the messages. This will add theoriginal message for each transaction to the resubmit queue.

Configuring the BAM_TID_RESUBMIT_CHANNEL

BAM includes a pre-configured channel called BAM_TID_RESUBMIT_CHANNEL. This channelenables you to handle selective resubmits for multi-message resubmission. You must import,build, and deploy the channel to make it available to the application. If this channel is notavailable, then the resubmit facility will not work and will generate an error message indicatingthat the channel is not available.

Activity Management Tab

64 Information Builders

Page 65: iWay Business Activity Monitor User's Guide

The BAM_TID_RESUBMIT_CHANNEL is based on an internal listener and has a correspondingprocess flow, as shown in the following image.

It is recommended that you modify this channel to meet your specific application requirements,as described in the following sections.

BAM Web Console Perspective

Using the BAM web console, when you select transactions and click Add to Resubmit Queue,the BAM logic creates an XML document for each selected transaction, which includes thefollowing information about the selected transaction:

Transaction ID for the selected transaction.

Record key 101 for the first record.

Name of the channel to which the record key applies.

User login ID.

Host (IP address) from which the form was submitted.

Date and time.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 65

Page 66: iWay Business Activity Monitor User's Guide

The generated XML document is written to an internal listener queue, called BAMTIDResubmit,which is hosted by the BAM_TID_RESUBMIT_CHANNEL. When a document for each selectedtransaction ID is created, the operation is considered complete and a message indicatingDone is displayed in the console. If the internal queue name is not available for any reason, anerror message is displayed in the console.

User Process Flow

The user process flow associated with the internal queue channel receiving the resubmitrecord can analyze the input request in any necessary manner. As a final step in the processflow, it must call the service called BAMTIDResubmitAgent to enable the resubmit action. Nooutput is expected or required from the user process flow. However, since the process flowoperates under normal rules, it can take any additional channel action desired by theapplication designer.

The actual resubmit record key that has been determined by the process flow from theresubmit document is the data that will be resubmitted.

The process flow must handle the result edges from the service that are listed in the followingtable.

Edge Purpose

success The request has been added to the resubmit release queue.

fail_notfound The record key given to the service does not represent a record in theBAM database.

fail_security The user does not have authority to submit this record.

fail_operation The resubmit release queue could not be updated.

The original terminal user will not see these errors, as the internal channel is operatingasynchronously. Therefore, the process flow must handle the error, perhaps by sending anemail or adding a message to a queue to be reviewed by the appropriate authority.

Processing Resubmitted Messages

After the messages have been added to the resubmit queue, a user who has authorizedcredentials for the BAM web console can view, modify, and release resubmission from thisqueue.

Activity Management Tab

66 Information Builders

Page 67: iWay Business Activity Monitor User's Guide

When a message is resubmitted, it is written to the BAMResubmit internal queue. An internallistener should be configured by the user to process this queue. If this internal queue does notexist, then the message will be written under the default location configured in the Preferencetab.

On entry to the process flow of the channel, the message and context is configured accordingto the resubmitted message. The process flow can then take any desired action based on yourapplication requirements. Common actions include:

Sending the message through the Internal Emit service (XDInternalEmitAgent) to the queueassociated with the application process for the message. For example, this might be a stepin the actual application flow that can now deal with the message after it has beenmodified or repaired.

Serializing the message and sending it to another appropriate protocol. The Marshalservice (XDMarshalAgent) is available to assist in formatting such a message. iSM featuressuch as Asynchronous Forward Transfer Interface (AFTI) can assist with this activity.

Sending the data to another table for additional, application-assisted modification andhandling.

Using the Search Function

Search functionality is provided in all Activity Management facility tabs to filter the desiredresults.

Provide search criteria in the corresponding fields and click Search to display only the filteredrecords based on the search criteria. Click Reset to remove the selected search criteria andshow all the records.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 67

Page 68: iWay Business Activity Monitor User's Guide

The following table lists and describes all the search fields that are available.

Field Name Description

Choose Channel Allows data filtering based on a specific channel name.Channel data is displayed for which BAM has collected thedata.

Protocol Allows searching based on the protocol type that is used inthe channel (for example, Internal, File, MQ Series).

Search By Start and End time indicating the filtering which should beapplied to the processed transactions based on time stampinitialization or completion,

Time Time at which the message was first monitored on iWayService Manager.

Date From Date since the message was processed.

Hr Hour from which the message starts to be monitored.

Min Minutes from which the message starts to be monitored.

Date To Date range up to which the message needs to be filtered.

Hr Hour up to which the message needs to be filtered.

Min Minute up to which the message needs to be filtered.

Transaction Status Allows transaction search based on the transaction status ofSuccess or Fail.

Transaction ID Allows filtering based on the Transaction ID.

Source Name Allows filtering based on the Source Name of the transaction.

Activity Management Tab

68 Information Builders

Page 69: iWay Business Activity Monitor User's Guide

The Partner Activity Facility provides additional filtering capability to search by partner name, asshown in the following image.

The following table lists and describes the additional search field in the Partner Activity tab.

Field Name Description

Partner Name Allows filtering based on the Partner Name for thetransaction.

Administration Tab

The Administration tab allows users with administrator privileges to create users who canaccess an iWay Business Activity Monitor (BAM) application.

Role Management

The Role tab allows administrators to manage existing roles or create new roles for users.Roles define specific access to given modules of the BAM application, such as enabling finecontrol of grouping users into assigned roles for specific access.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 69

Page 70: iWay Business Activity Monitor User's Guide

A new role can be added by clicking Add Role under the Role tab, as shown in the followingimage.

Once a role is configured for a user, this user will only have access to the specific modulesthat have been assigned after logging into the iWay Business Activity Monitor console.

Administration Tab

70 Information Builders

Page 71: iWay Business Activity Monitor User's Guide

User Management

The User tab allows administrators to manage existing users or add new users.

Added users are associated with specific roles that have been assigned to them. After logginginto the iWay Business Activity Monitor console, each user is granted with the privileges thattheir role allows.

A new user can be added by clicking the Add User button under the User tab, as shown in thefollowing image.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 71

Page 72: iWay Business Activity Monitor User's Guide

The user configuration pane enables the administrator to create a new user account andassociate it with the specific role available in the iWay Business Activity Monitor application.

The newly created user appears in the list of existing users with its associated data. Theadministrator also has the authority to temporarily block user access by editing the useraccount. Blocking a user enables a temporary lock on the user account without actuallydeleting the user from the system.

User Audit

The Audit tab of Administration enables the administrator to monitor all the logon activity. Theadministrator can monitor all the successful and failed logon attempts with their correspondingdate, time, and IP address. It is useful to monitor the overall user access status to the iWayBusiness Activity Monitor application.

Administration Tab

72 Information Builders

Page 73: iWay Business Activity Monitor User's Guide

User Preferences

The Preferences tab provides additional configuration options.

The following table lists and describes the available fields in the Preferences tab.

Field Description

Resubmit Message Location The default message resubmit location if a file-basedresubmit is used.

Cache Time (min) Cache setting used to improve the performance of the iWayBusiness Activity Monitor console. This value indicates howoften the data in the Activity screens is refreshed for thefollowing selections:

Choose Channel

Choose Protocol

Configuration Name

Transaction Status

Setting a value of 0 will refresh the drop-down list selectionsimmediately.

Page Size The number of records to be displayed per page.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 73

Page 74: iWay Business Activity Monitor User's Guide

Field Description

TimeSpan The default time interval in hours for which data isdisplayed.

The following example shows the result in the iWay Business Activity Monitor console whenTimeSpan is set to one hour.

Monitoring User-Defined Registers

Monitoring user-defined registers enables you to define additional columns in BAMcorresponding to the application-defined special registers for data monitoring. As a result, youcan store additional information (for example, DepartmentCode, Country, MessageID, and soon) as a special register in the application and then display this information as an additionalcolumn in the BAM console. To create user-defined columns, click the Administration tab andthen the User Defined Columns tab, as shown in the following image.

Administration Tab

74 Information Builders

Page 75: iWay Business Activity Monitor User's Guide

Once it is added and the server is restarted, the column and its data are included as part ofthe column list available for display in the BAM Transaction screen, as shown in the followingimage.

The user-defined column is also added into a filter category so you can search for values in theuser-defined field, as shown in the following image.

Correlation Management Tab

The following sections describe Correlation Management in iWay Business Activity Monitor, andits requirements.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 75

Page 76: iWay Business Activity Monitor User's Guide

Correlation Management in iWay Business Activity Monitor

Correlation Management enables the tracking of long-running transactions across multiplechannels or servers. These transactions are correlated as standalone transactions or as partof a correlation set for batch processing. Transactions are correlated using the user-definedcorrelation ID as single message processing can produce multiple sub-transactions withdifferent Transactions IDs that need to be correlated together.

Set Correlation plays an important role during batch processing, where each transaction iscorrelated to a specific batch correlation set. The transaction correlation state can be updatedat any point of the process. This allows transactions to be processed by multiple channels,where each channel can update the transaction state of a single transaction providing a unifiedview through the entire processing cycle.

Transaction overall state is denoted as open or closed, indicating the final transaction state.Transaction Details provide the transaction correlation history from the initial Open state tovarious Functional, Business, or Customized transaction updates. This is a key featureenabling the user to track the transaction through all correlation steps and identify actionsperformed by any given channel on a transaction.

The Correlation Management tab in iWay Business Activity Monitor enables the user to see theoverall state of the transaction. It provides important information, such as Correlation ID,which is used throughout the transaction life cycle, as well as the overall state of thetransaction and the Last Event which occurred for the given transaction.

The user can view additional information for the transaction by accessing TX Details(Transaction Details) which provides a detailed view into the transaction history. For example,the following image shows the correlation set being open for the batch transaction followed bylinking of the four child transactions.

Correlation Management Tab

76 Information Builders

Page 77: iWay Business Activity Monitor User's Guide

When looking at a singular transaction from the correlation management view, the user cansee various updates to the transaction state. For example, the following image shows thetransaction in the Open state since the routing country cannot be found for the transaction.

The user can drill down even further to investigate the error by clicking the associatedtransaction ID to see the details. The error is marked with a red flag, indicating in thetransaction history where the country for the transaction cannot be set, as shown in thefollowing image.

Application Requirements

To monitor correlation activity in iWay Business Activity Monitor, the application has toincorporate the use of correlation agents to manage the state of the transactions. Unlike theautomated activity monitoring available in Activity Management of iWay Business ActivityMonitor, Correlation Monitoring requires a set of correlation agents to be used as part of theapplication. For more information on Agents, see the iWay Service Manager Component andFunctional Language Reference Guide.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 77

Page 78: iWay Business Activity Monitor User's Guide

The following agents need to be used in supplication to achieve the proper correlation process:

XDAddCorrelEntryAgent. Enables the user to add a correlation entry for the transactioneither as a stand-alone correlation ID, a correlation set, or a correlation ID as part of thecorrelation set. This is the initiation state of the correlation.

XDUpdateCorrelEntryAgent. Enables the user to update any given correlation transaction(stand-alone or a correlation set) with any state change such as Business Ack, Close, aswell as the customized comment for the correlation update.

The following is a sample flow of processing a batched transaction with correlation:

Receive a batch of transactions.

Create and open the correlation set for the received batch of transactions.

Iterate through each transaction using an iterator.

For each successful iteration, create and open a correlation ID for subtransaction within thecorrelation set. For example, CorrelSetName_TransactionCount (myset_1, myset_2, …)

Output the singular transactions to a staging area for another channel to pick up andprocess, such as a queuing system.

Second channel picks up singular transactions and processes them. If the process issuccessful, it will close the correlation ID associated with that transaction. If theprocessing fails, it will update the correlation ID for the given transaction with anassociated error message and leave it in Open state.

BAM Driver Recovery

BAM records information into a database during execution of the application. When properlyconfigured, applications and configurations can share this database. The system relies uponthe ability to properly insert records into the database with no errors. Most applications usingBAM depend on the BAM driver being able to update its database. The server allows theapplication to determine the action to be taken in the event of failure.

The BAM driver is designed to impose the least possible performance penalty on theapplication. The driver database update is asynchronous to the application itself. There is nomechanism for the application to check the status of the driver. For this reason, the driver andserver must be in control of the recovery.

BAM Driver Recovery

78 Information Builders

Page 79: iWay Business Activity Monitor User's Guide

When the asynchronous updater detects a loss of connection to the database (SQL State08xxx) it will attempt to reconnect based on the value specified for the retryCount parameter. Itwill wait between attempts based on the value specified for the retryInterval parameter. If areconnect cannot be accomplished, the asynchronous updater shifts to recovery mode andreports the error to the driver itself. When all updaters have reported this condition, the driverbegins recovery action.

The driver will attempt to run a process flow as configured in the Loss Connection Flow Nameparameter of the driver configuration. You must create and publish this process flow to thesystem area of the configuration.

The process flow can take actions, such as notifying the user of the problem (for example, bysending an email). The post message (XDControlAgent) service might be used to stopaccepting messages on other channels, effectively pausing the application. The process flowshould end on one of three End nodes, with specific names. This is the standard method bywhich a subflow reports its status back to a calling process flow. The designated action takeseffect following the return from the process flow. For an application that does not depend uponBAM (for example, using it only for statistical and analysis purposes), Force or Finish can allowthe application to continue without such statistics.

End Name Queue Action Driver Action

Force Stop accepting and delete all inqueue.

Shutdown

Persist (default) Serialize any pending entries to afile to be retried on startup.

Shutdown

Continue Continue accepting entries. Continue the operation. Thedriver continues in recoverymode.

Offline Continue accepting entries andstore them in the file system.

Continue the operation. Thedriver continues in recoverymode.

If a serialized queue exists, the driver will deserialize the entries during startup. This will causethe serialized entries to be written to the BAM log.

The xalog start <drivername> command can be used to restart the driver when the databasecondition is corrected. This command can be scheduled, such as in a run script, as needed.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 79

Page 80: iWay Business Activity Monitor User's Guide

Important: In order to fully recover from a lost RDBMS connection, it is necessary to add avalidation query to the JDBC provider configuration. For MS SQLServer, Select 1 is fine. Thisadds a small performance cost, but makes it possible for the pool to replace bad connectionswith good connections.

The XDXalogControlAgent is not appropriate for use in this process flow. Use the Continuereturn to retry the lost connection. An appropriate use of the XDXalogControlAgent servicemight be to run in a scheduled situation. For example, the lost connection process flow mightalert a DBA to problems and then schedule a recovery process flow to test the databaseconnection and restart the driver or reschedule. It would then return Persist, which instructsthe server to continue caching events to disk.

Procedure: How to Modify the BAM Driver Recovery Properties

The BAM driver recovery properties are an advanced IT operation and require direct driverconfiguration.

To modify the BAM driver recovery properties:

1. In the iWay Service Manager Administration Console, click Activity Facility in the left pane,as shown in the following image.

The Activity Facility pane opens.

2. Select BAMSenderDriver.

BAM Driver Recovery

80 Information Builders

Page 81: iWay Business Activity Monitor User's Guide

The Activity Facility pane opens for the preconfigured BAMSenderDriver, which lists theconfiguration parameters for the driver.

3. Modify values for the required parameters in the Connection Management section, whichare listed and described in the following table.

Parameter Description

Retry Count Number of attempts to reconnect to the underlying BAMdatabase.

Retry Interval Wait interval between reconnect attempts.

Lost ConnectionBehavior

Select one of the following values from the drop-down list:

Force. Terminate any logging activity and abandon anyentries in flight.

Persist. Terminate any logging activity and serialize anyentries in flight.

Offline. Continue to run logger in offline mode, which willlog the activity to a file store for later processing whenthe connection is recovered to the database.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 81

Page 82: iWay Business Activity Monitor User's Guide

Parameter Description

Lost Connection FlowName

The process flow to execute upon connectivity loss andfailure to reestablish a connection. The process flow mustterminate with End node that corresponds to the action, (forexample, Force, Persist, or Offline) or an additional option(Continue) to continue denoting that the connection has beenrestored. The process flow takes priority over thepreconfigured Lost Connection Behavior parameter.

4. Click Update when you have finished modifying the parameters for the preconfiguredBAMSenderDriver.

Understanding Recovery Mode

When an updater thread shifts to recovery mode, it returns the message that it was processingto the database to the work queue. It then sets itself to write all messages to the localdatabase rather then to the RDBMS. It then resumes accepting messages.

Depending on the settings and the return from the process flow, the driver starts an analysisthread. This thread periodically pools the RDBMS, awaiting its availability. When the RDBMSbecomes available, the recovery thread sets the updater threads to resume standard mode. Inthis mode, the updaters accept messages from the queue and send them to the RDBMS. Therecovery thread then begins reading, in order, the persisted messages written to the local disk.Each message is added to the work queue, so that an updater thread will send it to theRDBMS. The persisted messages are deleted as they are added to the queue.

If the system is terminated, on the next startup, the persisted messages will be loaded fromdisk to the work queue, so that normal operations can continue.

BAM Driver Recovery

82 Information Builders

Page 83: iWay Business Activity Monitor User's Guide

Using BAM Commands

BAM commands provide you with assistance when performing BAM operations. The commandsalso support subcommands to specify specific actions, as listed and described in the followingtable.

Action Description

archive Given a specific date and time, this action copies all records fortransactions that were completed before the given time to a specified setof tables. When successful, these transactions are removed from theactive database.

copy Given a time period or a transaction ID, this action copies all completedtransactions identified to a named set of tables.

refresh This action clears the internal support tables.

list This action lists the contents of the database.

info This action displays database configuration information.

BAM commands operate on BAM databases. However, once the generated tables arepopulated, normal database operations can be used to copy, delete, or manipulate the tablesas required. BAM commands are not required in these instances.

BAM commands have one or more operands in common, which are listed and described in thefollowing table.

Operand Description Example

<tid> A single transaction ID, enclosed inquotes.

"80f98d02-2c94-46fc-9a59-72541f05f548"

<pattern> The distinguishing name of a set ofBAM tables. The command will createtables of this pattern if they do notexist in the BAM database.

july

You might use the _fmtdate()function to generate names, suchas the name of a month.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 83

Page 84: iWay Business Activity Monitor User's Guide

Operand Description Example

<timespec> A date and time using the YYYY/MM/DDtHH:MM format. The default time is00:00 if not specified. Abbreviationsare available, as described in thissection.

2012/6/25t03:15

2012/4/15

iWay Functional Language (iFL) can be used to assist in generating a <timespec>. Forexample, to specify a date four days in the past, specify the _fmtdate() function as follows:

"_fmtdate('yyyy/MM/dd\\'t\\'hh:mm',_imul(_isub(_now(u),_imul(86400,4)),1000))"

This function subtracts from the current moment the number of seconds in a day, times thenumber of days, times the milliseconds in a second.

The enclosing double quotes tell the command processor that this is a single operand. Theinner escapes pass a single escape-surrounded pattern character as a constant. To work frommidnight of seven days ago, the <timespec> operand might be:

"_fmtdate('yyyy/MM/dd,_imul(_isub(_now(u),_imul(86400,7)),1000))"

Use of iFL to generate a <timespec> is useful for scheduled operations. For example, youmight set up a schedule to run the command on a weekly basis, archiving information from theprior week.

As a convenience, abbreviations have been created for common specifications. Abbreviationsmust be spelled out in full.

Abbreviation Purpose

1week One week ago, midnight

1month One month ago, midnight

The <pattern> is also evaluated for iFL. This helps create appropriately named archivedatabases in a recurring schedule. Users are cautioned that the pattern is used to name thegenerated databases, and must meet any naming restrictions imposed by the database.

Using BAM Commands

84 Information Builders

Page 85: iWay Business Activity Monitor User's Guide

BAM Archive Command

The BAM Archive command archives the identified transactions to a named set of tables. Thisreduces the size of the active tables and improves performance. The command does not copypartial transactions. That is, if a transaction was in execution prior to the -before specificationbut continued to execute after that time, it will not be archived. Only completed transactionsare archived.

Usage:

bam archive <pattern> -before <timespec> [-timeout <seconds>]

The specified information is archived to the tables identified by the pattern.

Note: As only one date applies to the archive command, either -before or -after can be used.

Example:

Enter command:>bam archive july -before 2013/08/01Archived 3267

All completed transactions will be archived until August 1, 2012.

BAM Copy Command

The BAM Copy command duplicates the information but does not purge it from the source datatables. This is useful if you need to save specific information for other purposes. Thecommand does not copy partial transactions. That is, if a transaction was in execution prior tothe -before specification but continued to execute after that time, it will not be archived. Onlycompleted transactions are archived.

Usage:

bam copy <pattern> [-tid <tid> | -after <timespec> [-before <timespec>]] [-timeout <seconds>]

The transaction information for the specified transaction ID, or the transactions within the timeperiod, are copied. The default -before <timespec> is the current time. The BAM Copycommand will swap the before and after <timespec> if necessary to determine the appropriatetime period.

Example:

Enter command:>Bam copy saved -tid 06c811fa-ba93-4e9b-9975-97b1cb3b84c8Saved 1

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 85

Page 86: iWay Business Activity Monitor User's Guide

BAM Info Command

The BAM Info command provides information about the specified database that is displayed.You can use the * pattern for the current database. This command is provided fortroubleshooting purposes, if required. The contents and format of the returned information isnot guaranteed to be consistent between releases.

Usage:

bam info [<pattern>]

Example:

Enter command:>bam info * DataSource |UniqueTIDs |TotalTransRecs|StartTime |EndTime |Duration BAM_ACTIVITY |38 |563 |2012-01-18 15:43:26.393|2012-01-27 15:43:29.253|9d 00:00:02.860

BAM List Command

The BAM List command returns information contained in the specified database. You can usethe * pattern for the current database if you want to use filtering parameters. This command isprovided for troubleshooting purposes, if required. The contents and format of the returnedinformation is not guaranteed to be consistent between releases.

Usage:

bam info [<pattern> | *] [-tid <tid> | -after <timespec> [-before <timespec>]] [-timeout <seconds>]

Example:

Enter command:>bam list * -after 12/1/1 -prov sql2k8DataSource |TID |StartTime |EndTime |Duration |TranStepsBAM_ACTIVITY |06c811fa-ba93-4e9b-9975-97b1cb3b84c8 |2012-01-2015:43:06.19 |2012-01-27 15:43:06.453|7d 00:00:00.263 |14 BAM_ACTIVITY |072cbbea-9791-4a17-a775-75a73de907f8 |2012-01-2315:43:07.627|2012-01-27 15:43:07.69 |4d 00:00:00.630 |14 BAM_ACTIVITY |153c8188-b5f1-4860-9698-3f72881ae6c5 |2012-01-2615:43:07.47 |2012-01-27 15:43:07.533|1d 00:00:00.630 |14

Note: This example shows three BAM_ACTIVITY lines, each of which is its own line in theactual system.

Using BAM Commands

86 Information Builders

Page 87: iWay Business Activity Monitor User's Guide

BAM Refresh Command

The BAM Refresh command clears internal reporting tables but does not modify the databaseitself. Therefore no pattern or other operands are required and will be ignored. This commandalso clears stale computations and may improve performance.

3. Configuring and Using iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 87

Page 88: iWay Business Activity Monitor User's Guide

Using BAM Commands

88 Information Builders

Page 89: iWay Business Activity Monitor User's Guide

Chapter4 Structure of the iWay Business ActivityMonitor Database

This section describes the functionality and structure of the following tables that areused by the iWay Business Activity Monitor database.

In this chapter:

BAM_ACTIVITY Table

BAM_ACTIVITY_CONTEXT Table

BAM_ACTIVITY_EXTENDED Table

BAM_ACTIVITY Table

The BAM_ACTIVITY table contains one record for each entry that is recorded by the BAMactivity log driver.

Field Datatype Description

RecordKey char(32) Primary key for this table and foreign key forRecordKey in BAM_ACTIVITY_EXTENDED andBAM_ACTIVITY_CONTEXT tables. This value is aGUID, with no intrinsic meaning except touniquely identify an activity record.

Tstamp Datetime The time at which this activity record waslogged, with precision down to the millisecond ifthe system supports it.

iWay Business Activity Monitor User's Guide 89

Page 90: iWay Business Activity Monitor User's Guide

Field Datatype Description

RecordType Int Type of activity record, using the followingcodes:

100 (Enqueue). Receipt of message on aniWay internal queue.

101 (Start). Start of processing for amessage

191 (End). End of processing for amessage.

181 (Emit). Message is emitted from achannel. This may indicate a messageleaving the iWay application or a messagebeing transferred between iSM channels.

131 (Internal Event). Indicates thebeginning or end of a certain event whileprocessing the message. The RecordTypefor these entries is actually 131 plus anaction code, the meaning of which can varydepending on the event type, but is typically0, indicating the beginning of a certainprocessing stage. 1 indicates thesuccessful completion of a stage. 2indicates a failure of that state. For moreinformation about other action codes, seethe subtype field.

151 (Message). Indicates a BIZERRORmessage generated while processing themessage.

BAM_ACTIVITY Table

90 Information Builders

Page 91: iWay Business Activity Monitor User's Guide

Field Datatype Description

TID Char(48) Transaction ID that identifies all activity for thismessage while being processed by the iWayapplication. The transaction ID remainsconstant when the message is transferredbetween iSM channels.

Note: An application can generate multiplemessages from a single origin. All of thesewould share the same TID.

Recordkey101 Char(32) The RecordKey of the start or enqueue entrythat recorded the beginning of processing ofthis message on this channel. For example, itcan be used to correlate start and end entries.

Correlid Char(32) Not used.

Version Char(16) iSM version.

Status Int The final status for processing of this messageon this channel for end entry records(recordtype = 191). A value of 1 indicatessuccess. Any value greater than 1 indicatesfailure.

4. Structure of the iWay Business Activity Monitor Database

iWay Business Activity Monitor User's Guide 91

Page 92: iWay Business Activity Monitor User's Guide

Field Datatype Description

Subtype Int The specific type of event for an event record.This can include, but is not limited to thefollowing:

iSM life cycle events

Inbound decryption

Preparse

XML Parse

Inbound review

Inbound validation

Inbound Transform

Agent or Service

Outbound Transform

Outbound validation

Outbound review

Preemit

Outbound encryption

Emit

BAM_ACTIVITY Table

92 Information Builders

Page 93: iWay Business Activity Monitor User's Guide

Field Datatype Description

Subtype (continued) Int (continued) Emit Events

301. Records data that being emittedfrom iSM.

302. Records the response from theexternal system when data is emittedfrom iSM using a synchronous protocol.

Security Events

601. Events relating to a certain generalsecurity operation

602. Events relating to digitalsignatures. This type of event can usethe following action codes: 3 (Sign), 6(Verify), and 2 (Fail).

603. Events relating to encryption anddecryption. This type of event can usethe following action codes: 4 (Encrypt), 5(Decrypt), and 2 (Fail).

Subtype (continued) Int (continued) User Events.

1000. Users can generate event entriesin the activity log. User-created eventcodes must be greater than 1000.

4. Structure of the iWay Business Activity Monitor Database

iWay Business Activity Monitor User's Guide 93

Page 94: iWay Business Activity Monitor User's Guide

Field Datatype Description

Sequence Int In an iWay application in which a message isprocessed by multiple channels, the sequenceindicates the order in which these channelsreceived the message. This value is only storedwith the start entry record (RecordType = 101).

Note: The sequence represents a logical, ratherthan chronological, ordering of channels. Forexample, if the channel with sequence 1 emitstwo messages to an internal queue for furtherprocessing, the start entry records on theinternal channel for both of these messageswill have a sequence of 2.

ResubmitCount Int The number of times this message has beenresubmitted.

ResubmitSourceKey Char(32) The record key of the activity record thatindicates the point in processing from whichthis message was extracted for resubmission.

Encoding Varchar(16) Character encoding of this message.

Signature Varchar(64) The name of the channel where this activityoccurred.

MAC Varchar(80) Not used.

ConfigName Varchar(128) The iSM managed server or iIA on which thisactivity occurred.

HostName Varchar(128) The hostname of the system where this activityoccurred.

Address Varchar(128) Not used.

Partner_to Varchar(128) Value of the partner_to special register if set totrue, by certain EDI components.

Partner_from Varchar(128) Value of the partner_from special register if setto true, by certain EDI components.

BAM_ACTIVITY Table

94 Information Builders

Page 95: iWay Business Activity Monitor User's Guide

Field Datatype Description

Protocol Varchar(150) Protocol specific information. Simply, it is oftenthe protocol name of the channel.

BAM_ACTIVITY_CONTEXT Table

The BAM_ACTIVITY_CONTEXT table can be used as a continuation of the BAM_ACTIVITY table,containing one record for each entry that is logged by the BAM activity driver. The followingtable contains the message itself and its context, stored in large object type fields.

Field Datatype Description

RecordKey Char(32) This is the primary key for this table and foreignkey for RecordKey in BAM_ACTIVITY_EXTENDEDand BAM_ACTIVITY tables. This value is a GUID,solely used to uniquely identify an activityrecord.

Tstamp Datetime The time at which this activity record waslogged, with precision down to the millisecond ifthe system supports it. This is identical to thetstamp value in the correspondingBAM_ACTIVITY record.

Msgkey Char(32) Not used.

Msgmac Char(32) Not used.

Msgtype Varchar(32) Not used.

Msg BLOB The message as it was at this point inprocessing.

4. Structure of the iWay Business Activity Monitor Database

iWay Business Activity Monitor User's Guide 95

Page 96: iWay Business Activity Monitor User's Guide

Field Datatype Description

Context BLOB All special registers associated with themessage at this point of processing. Eachregister is stored as type/name=value andregisters are delimited by the 0x07 character.Note that registers important to the applicationcan be stored in the BAM_ACTIVITY_EXTENDEDtable.

BAM_ACTIVITY_EXTENDED Table

The BAM_ACTIVITY_EXTENDED table contains context values that are important to theapplication. Several fields are automatically included, but the table can be extended withadditional fields mentioned previously. The following table contains one record for each entrythat is recorded by the BAM activity log driver and can be used as a continuation of theBAM_ACTIVITY table.

Field Datatype Description

RecordKey Char(32) Primary key for this table and foreign keyfor RecordKey inBAM_ACTIVITY_CONTEXT andBAM_ACTIVITY tables. This value is aGUID, solely used to uniquely identify anactivity record.

Tstamp Datetime The time at which this activity recordwas logged, with precision down to themillisecond if the system supports it.This is identical to the tstamp value inthe corresponding BAM_ACTIVITY record.

BAM_tpm_partnername Varchar(128) Value of the bam_tpm_partnernamespecial register, when available.

BAM_edi_ackstatus Varchar(5) Value of the edi_ackstatus register whenavailable.

BAM_ACTIVITY_EXTENDED Table

96 Information Builders

Page 97: iWay Business Activity Monitor User's Guide

Field Datatype Description

BAM_edi_transactionID Varchar(128) Value of the edi_transactionID register,when available.

BAM_edi_version Varchar(128) Value of the edi_version register, whenavailable.

BAM_edi_type Varchar(128) Value of the edi_type register, whenavailable.

Msgsize Varchar(128) Size of the message in bytes at thispoint in processing, when applicable.

Protocol Varchar(128) Protocol specific information. This isoften the name of the protocol of thechannel.

Extension Varchar(128) Value of the extension register, whenavailable.

BAM_tpm_partnerid int Value of the bam_tpm_partnerid specialregister, when available.

BAM_tpm_countryname Varchar(2) Value of the BAM_TPM_COUNTRYNAMEregister, when available.

Text Varchar(512) The text of the BIZERROR message, formessage entry records (recordtype =151),

4. Structure of the iWay Business Activity Monitor Database

iWay Business Activity Monitor User's Guide 97

Page 98: iWay Business Activity Monitor User's Guide

BAM_ACTIVITY_EXTENDED Table

98 Information Builders

Page 99: iWay Business Activity Monitor User's Guide

Chapter5 Configuring User Authentication foriWay Business Activity Monitor

This section describes how to configure authentication realms for iWay Business ActivityMonitor (BAM).

In this chapter:

User Authentication Overview

Creating an LDAP Directory Provider

Creating an LDAP Authentication Realm

Mapping LDAP Roles to iWay BAM Roles

Enabling iWay BAM Authentication Through an Authentication Realm

User Authentication Overview

iWay Business Activity Monitor (BAM) is hosted on the non-blocking HTTP (nHTTP) listener. As aresult, iWay BAM can take full advantage of authentication realms configured through iWayService Manager (iSM). Authentication realms enable remote user authentication against anexternal system such as Active Directory (AD) and Lightweight Directory Access Protocol(LDAP).

This section describes how to configure user authentication for iWay BAM using LDAP. Thefollowing steps are required in this configuration process:

1. Creating an LDAP Directory Provider to establish a link to the LDAP system.

For more information, see Creating an LDAP Directory Provider on page 100.

2. Creating an LDAP authentication realm to enable authentication against LDAP.

For more information, see Creating an LDAP Authentication Realm on page 103.

3. Mapping LDAP roles to iWay BAM roles.

For more information, see Mapping LDAP Roles to iWay BAM Roles on page 107.

4. Enabling iWay BAM authentication through the authentication realm.

For more information, see Enabling iWay BAM Authentication Through an AuthenticationRealm on page 108.

iWay Business Activity Monitor User's Guide 99

Page 100: iWay Business Activity Monitor User's Guide

The following image shows a sample user type defined in an LDAP system.

Creating an LDAP Directory Provider

This section describes how to create an LDAP Directory Provider using the iWay ServiceManager (iSM) Administration Console. An LDAP Directory Provider enables you to establish alink to an existing LDAP system.

Procedure: How to Create an LDAP Directory Provider

1. Connect to the iSM Administration Console using the following URL:

http://localhost:9999

2. Log on to the console using valid iSM credentials (user name and password).

Creating an LDAP Directory Provider

100 Information Builders

Page 101: iWay Business Activity Monitor User's Guide

3. If it is not already selected, ensure Server is selected in the top pane of the console andthen click Directory Provider in the Providers section on the left pane, as shown in thefollowing image.

The Directory Provider pane opens, as shown in the following image.

4. Click New to create a new Directory Provider for LDAP.

5. Configuring User Authentication for iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 101

Page 102: iWay Business Activity Monitor User's Guide

The Directory Providers: LDAP pane opens, as shown in the following image.

5. Provide values for the required parameters to configure a connection to your LDAP system.

6. Scroll down to the bottom of the page and click Add to add the LDAP Directory Provider.

Creating an LDAP Directory Provider

102 Information Builders

Page 103: iWay Business Activity Monitor User's Guide

Note: You can also click Test to verify that you can successfully connect to your LDAPsystem. For example:

Creating an LDAP Authentication Realm

This section describes how to create an LDAP authentication realm using the iWay ServiceManager (iSM) Administration Console. An LDAP authentication realm enables authenticationagainst LDAP.

Procedure: How to Create an LDAP Authentication Realm

1. Ensure that you are logged in to the iSM Administration Console.

5. Configuring User Authentication for iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 103

Page 104: iWay Business Activity Monitor User's Guide

2. If it is not already selected, ensure Server is selected in the top pane of the console andthen click Authentication Realms in the Providers section on the left pane, as shown in thefollowing image.

The Authentication Realms pane opens, as shown in the following image.

Creating an LDAP Authentication Realm

104 Information Builders

Page 105: iWay Business Activity Monitor User's Guide

3. Click New to create a new LDAP authentication realm.

The Authentication Realm pane opens, as shown in the following image.

4. From the Realm Type drop-down list, select ldaprealm.

5. Configuring User Authentication for iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 105

Page 106: iWay Business Activity Monitor User's Guide

The Authentication Realm pane refreshes with your selection and provides configurationparameters that are specific to an LDAP authentication realm, as shown in the followingimage.

Creating an LDAP Authentication Realm

106 Information Builders

Page 107: iWay Business Activity Monitor User's Guide

5. Provide values for the required parameters to configure an LDAP authentication realm.

6. Scroll down to the bottom of the page and click Add to add the configured LDAPauthentication realm.

Note the name of the newly configured LDAP authentication realm (for example,LDAP_Auth_Realm), as this value will be used during the iWay BAM configuration.

Mapping LDAP Roles to iWay BAM Roles

This section describes how to map LDAP roles to iWay BAM roles using the iWay BAM Console.As defined roles in an LDAP system are unlikely to match corresponding roles in iWay BAM,you must map the roles between the LDAP system and iWay BAM.

Procedure: How to Map LDAP Roles to iWay BAM Roles

1. Login to the iWay BAM Console as an administrator while it is under standardauthentication schema against the database.

The default URL for the iWay BAM Console is:

http://localhost:8087

2. Click the Administration tab, select the Settings tab, and then click the Role Mapper tab,as shown in the following image.

3. Click Add Role Mapper to add new mapping between an LDAP system role and an iWayBAM role.

5. Configuring User Authentication for iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 107

Page 108: iWay Business Activity Monitor User's Guide

The Add New Role Mapper dialog opens, as shown in the following image.

4. Specify an LDAP role in the LDAP Role field, which would be returned for those usersrequiring access to the iWay BAM Console, and map it to the iWay BAM role by selecting itfrom the BAM Role drop-down list.

You can create multiple mappings between an LDAP and iWay BAM roles.

5. Click Save Role Mapper.

Enabling iWay BAM Authentication Through an Authentication Realm

This section describes how to enable iWay BAM authentication through an authenticationrealm using the iWay Service Manager (iSM) Administration Console.

Procedure: How to Enable iWay BAM Authentication Through an Authentication Realm

1. Ensure that you are logged in to the iSM Administration Console.

2. Click Tools in the top pane, and then under the Applications section in the left pane, selectBusiness Activity Monitor, as shown in the following image.

Enabling iWay BAM Authentication Through an Authentication Realm

108 Information Builders

Page 109: iWay Business Activity Monitor User's Guide

The Business Activity Monitor Properties Manager pane opens, as shown in the followingimage.

3. In the BAM Realm Provider field, type the name of the configured LDAP authenticationrealm (for example, LDAP_Auth_Realm) to be used for iWay BAM authentication.

4. Scroll down to the bottom of the page and click Save Changes.

5. Configuring User Authentication for iWay Business Activity Monitor

iWay Business Activity Monitor User's Guide 109

Page 110: iWay Business Activity Monitor User's Guide

A Configuration Completed message is displayed, as shown in the following image.

5. Restart iSM.

6. Open a new browser and access the iWay BAM Console.

The default URL for the iWay BAM Console is:

http://localhost:8087

When you are prompted for the user name and password, you can now use the credentialsfrom the LDAP system.

You will be authenticated through the configured LDAP authentication realm and its rolewill be mapped to the iWay BAM role.

Note: The default user (admin/iway) and any other users in the local iWay BAM databaserepository of the user, will not have access to iWay BAM, unless authentication isswitched back to the default setting, and BAM Realm Provider is set to an empty valueunder the Business Activity Monitor configuration section.

Enabling iWay BAM Authentication Through an Authentication Realm

110 Information Builders

Page 111: iWay Business Activity Monitor User's Guide

FeedbackCustomer success is our top priority. Connect with us today!

Information Builders Technical Content Management team is comprised of many talentedindividuals who work together to design and deliver quality technical documentation products.Your feedback supports our ongoing efforts!

You can also preview new innovations to get an early look at new content products andservices. Your participation helps us create great experiences for every customer.

To send us feedback or make a connection, contact Sarah Buccellato, Technical Editor,Technical Content Management at [email protected].

To request permission to repurpose copyrighted material, please contact Frances Gambino,Vice President, Technical Content Management at [email protected].

Page 112: iWay Business Activity Monitor User's Guide

Information Builders, Inc.Two Penn PlazaNew York, NY 10121-2898

iWay Business Activity Monitor User's GuideVersion 8.0 and Higher

DN3502286.0720