Build it yourself

This section describes how you monitor WebSphere MQ Workflow using WebSphere Business Monitor 6.1.0. It covers how you can

Import FDL file into WebSphere Integration Developer and generate a seed monitor model

  1. Start Rational Application Developer.

  2. Click File -> Import.

  3. Select Import FDL File from the FDL to Monitor Model Utility for WebSphere Workflow category.

  4. Select an FDL from file system, and enter the Project Name (for example: Workflow).

  5. Click Finish. If the current perspective of workbench is not Java, you are alerted that the perspective was switched to Java automatically.

  6. Click Yes. The FDL file is then imported, and a new FDL project is created.

  7. Right-click the imported FDL file, and select Monitor -> Generate Monitor Model for MQ Audit.

  8. On the resulting window, click New Project.

  9. Enter LoanRequest as the new business monitoring project name. Click Finish.

  10. Enter LoanRequestMM as the monitor model name. Click Next.

  11. Select Average Elapsed Duration - KPI from the Monitoring Templates tab as the event source for Loan Request Process as in the following figure.

  12. Select Start Time for event source Commit Loan Request.

  13. Select all of the events for every event source under the Emitted Events tab, and click Next.

  14. Except for Loan Request Process and Loan Venture Investigate, select Event group as the Implementation for every Event Source, and then click Next.
  15. Click Finish on the next window.

    Note: In this sample, you are not monitoring metrics in every MC, just the child MCs of their parents. Therefore, here you select the child MCs implementation type as Event group.

  16. When a dialog box is displayed, click Yes to switch to the Business Monitoring perspective.

    A seed monitor model is then generated that will be augmented by the sequent steps.

Edit the monitor model and generate the J2EE project

Configure the Monitor Details Model

  1. In the Monitor Details Model view, right-click Loan Request Process MC, and then select New -> Metric.

  2. Enter Loan Requester Name as the Name, and select String as the Type. Then click OK.

  3. On the right panel, click Add to add a Metric Value Expression.
  4. Click the space under Expression. A button then is displayed. Click this button, and enter the following text: fn:concat(Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:First_Name,',', Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Last_Name)
  5. Click OK.

    Note: Press Ctrl+Space to use Content Assist to select attributes for inbound event.

  6. In the Monitor Details Model view, right-click Loan Request Process MC, and then select New -> Metric.
  7. Enter Loan Requester Country as the Name, select String as the Type, and then click OK.
  8. On the right panel, click Add for Metric Value Expressions.
  9. Click the space under Expression. A button is displayed. Click this button, and enter the following text:

    Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Country

  10. Click OK.
  11. In the Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  12. Enter Loan Requester City as the Name, and select String as the Type. Then click OK.
  13. On the right panel, click Add for Metric Value Expressions.
  14. Click the space under Expression. A button is displayed. Click this button, and enter the following text:

    Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:City

  15. When you are finished, click OK.
  16. In the Monitor Details Model view , right-click Loan Request Process MC, and click New -> Trigger.

  17. Enter Loan Request Rejected Trigger as the Name.

  18. On the right panel, clear Trigger is repeatable, and click Add to select Reject_Loan_Request_Activity_Implementation_Completed and Reject_Loan_Request_Activity_Ended_Normally as the source event of trigger.

  19. In the Monitor Details Model view, right-click Loan Request Process MC, and click New -> Trigger.
  20. Enter Loan Request Committed Trigger as the Name.
  21. On the right panel, clear the Trigger is repeatable check box, and click Add to select Commit_Loan_Request_Activity_Implementation_Completed and Commit_Loan_Request _Activity_Ended_Normally as the source event of trigger.
  22. In the Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  23. Enter Percentage of Rejected Loan Requests as the Name, and select Decimal as the Type. When you are finished, click OK.
  24. On the right panel, set the default value of the metric to be 0, and click Add for Metric Value Expressions.
  25. Click the space under Trigger. A button is displayed. Click this button, and select Loan Request Rejected Trigger.

  26. Click the space under Expression. A button is displayed. Click the button and enter 100.
  27. Then click OK.
  28. Note: Refer to Appendix 1 to complete the other metrics.

Configure KPI Model

  1. Switch to the KPI Model view, right-click Template KPI Context and select New -> KPI.

  2. Enter Percentage of Rejected Loan Request as the Name.

  3. On the right panel, for the KPI Definition, select Base this KPI on a metric and aggregation function under KPI Value.

  4. Under KPI Details, click Browse and then select Monitoring context as the Loan Request Process.

  5. Click Browse and then select Percentage_of_Rejected_Loan_Request as the Metric.

  6. Select Aggregation function to be the Average.

  7. For KPI Target and Ranges, enter the following values:

Configure Dimensions Model

  1. Switch to the Dimensional Model view, and select Loan Request Process Cube in the navigation tree.

  2. For the Measures table, click New and enter the following values:
  3. When you are finished, click OK.

  4. For the Dimensions table, click New Dimension, and enter the following values:
  5. When you are finished, click OK.

    A new row is added to the Dimensions table, and the New Level button is enabled.

  6. Select the new row, click New Level, and then enter the following values:
  7. When you are finished, click OK.

    You now see a new row added into the Dimensions table, but with an error icon.

  8. To eliminate this error, switch to the Monitor Details Model view, and select Loan Requester Country metric in the navigation tree. Then select A value is required for this metric, and enter N/A as the Default Value.

  9. Switch back to the Dimensional Model view, The error icon is no longer visible.
  10. Select the level Country in the table, click New Level, and enter the following values to add another level:
  11. Eliminate errors by repeating the previous.

    Note: Refer to Appendix 3 to complete other measures.

Configure Alerts

Create Event Definition for outbound event by completing the following steps:

  1. From the Business Monitoring perspective, right-click the Project Explorer view, and then click New -> Event Definition(cbe).

  2. In the New Event Definition dialog, select Monitor Model project, and enter PercentageOverstep.cbe as the File name. Then click Finish.

  3. Open the cbe file with a text editor, and edit PercentageOverstep.cbe as shown here or download it: PercentageOverstep.cbe:
    <eventdefinition501:eventDefinitionList xmlns:eventdefinition501="http://www.ibm.com/ac/eventdefinition5_0_1">
    <eventDefinition name=" PercentageOverstep" parent="event">
    <extendedDataElement name="BusinessSituationName" type="string"/>
    <extendedDataElement name="CurrentPercentage" type="float"/>
    <extendedDataElement name="PercentageLimitation" type="float"/>
    </eventDefinition>
    </eventdefinition501:eventDefinitionList>
  4. From the Business Monitoring perspective, right-click the Project Explorer view, and then click New -> Event Definition(cbe).
  5. In the New Event Definition dialog, select Monitor Model project, enter ElapsedOverstep.cbe as the File name, then click Finish.

  6. Open the cbe file with a text editor and edit ElapsedOverstep.cbe as shown here or download it:ElapsedOverstep.cbe:
    ?xml version="1.0" encoding="UTF-8"?>
    <eventdefinition501:eventDefinitionList xmlns:eventdefinition501="http://www.ibm.com/ac/eventdefinition5_0_1">
    <eventDefinition name="ElapsedDurationOverstep" parent="event">
    <extendedDataElement name="BusinessSituationName" type="string"/>
    <extendedDataElement name="Activity Name" type="string"/>
    <extendedDataElement name="DurationLimitation" type="float"/>
    </eventDefinition>
    </eventdefinition501:eventDefinitionList>
  7. Switch to the KPI Model view, right-click Template KPI Context, and click New -> Trigger.

  8. Enter So Much Rejected Loan Request Alert Trigger as the Name.

  9. On the right panel, clear the Trigger is repeatable check box, and click Add to select Recurring wait time as the source event of trigger.

  10. For the trigger condition, enter the following text: Percentage_of_Rejected_Loan_Request -> 50
  11. In the KPI Model view, right-click Template KPI Context, and click New -> New Outbound Event.

  12. Enter So Much Rejected Loan Request Alert as the Name, and click OK.

  13. On the right panel, for Event Type Details, click Browse to search for and select ,PercentageOverstep as the extension name.

  14. For Event Attributes Details, click Add to select So Much Rejected Loan Request Alert Trigger as the trigger.

    Now you can see some content in the table of Event Attributes Details.

  15. Complete the following actions in the table:
    1. On the same row as BusinessSituationName, enter Expression to (include the hyphens):'SoMuchRejectedRequest'
    2. On the same row as CurrentPercentage, enter Expression to Percentage_of_Rejected_Loan_Request (KPI)
    3. On the same row as PercentageLimitation, enter Expression to 50

    Note: Refer to Appendix 4 to complete other alerts.

Configure Visual Model

To configure the visual model, you first need to get the SVG file that corresponds to each MC. You can use WebSphere Business Modeler v6.1.0 to import an FDL file and then export the SVG files.

Note: To improve the appearance of the SVG file, eliminate the input data and output data before exporting the SVG file.

After obtaining the SVG file, configure the visual model by completing the following steps.

Step 1: Import the SVG file.

Import the SVG file by completing the following steps:

  1. Right-click the Project Explorer view, and click Import.
  2. Select File system, and then click Next.
  3. Browse to the location containing the SVG file (for example, D:\Sample\SVG)
  4. Select the SVG file.

  5. Click Finish.
  6. Expand the project in the Project Explorer view, and then expand the SVG Files. The new SVG file are now listed.

Step 2: Add the SVG files for two MCs

Switch to the Visual Model view, and add the SVG files for two MCs by completing the following steps:

For the Loan Request Process MC

  1. In the Selected Context field, select Loan Request Process.
  2. In the SVG File field, click Browse and select the SVG file.

  3. On the prompt window, click Yes to display the SVG file below.

For the Loan Venture Investigate MC

  1. In the Selected Context field, select Loan Request Process/ Loan Venture Investigate.
  2. In the SVG File field, click Browse and select Loan_Venture_Investigation_MC.svg.
  3. Click Yes to display the SVG file.

  4. Press Ctrl-S to save your work.

Step 3: Edit shape set actions

Edit the shape set actions by completing the following steps:

Add the link between Loan Request Process MC and Loan Request Process/Loan Venture Investigate MC

To go to the SVG view of Loan Venture Investigate, click the icon on the SVG view of Loan Request Process.

  1. Click the plus icon on the frame Investigate Loan Venture on the SVG of Loan Request Process MC.

  2. Right-click the selected row, and click Add Action -> Set Diagram Link. Several new rows are added to the table as follows.


  3. Under the Shape Set/Action column, select the row that contains condition, and click the cell under the Action Attribute column. A button is displayed. Click this button to display the expression editor, and enter the following text:

    fn:true()

  4. Under the Shape Set/Action column, select the row that contains target context, and then click the cell under Action Attribute Value. A button is displayed. Click this button and then select the linked MC.

    The table should now look like the one below.

Add action to monitor process progress

This step enables you to see which activity is currently executed.

  1. Switch to the Monitor Details Model view, right-click Loan Request Process MC, and then select New -> Metric. Enter the following values:

  2. When you are finished, click OK.
  3. For Metric Value Expressions, click Add .
  4. In the first row of the Metric Value Expressions table, leave the cell under Trigger blank, and select the cell under the Expression column. Click the button and enter this text: Submit_Loan_Request_Activity_Ready/EventPointData/wmqwf:ActivityName
  5. Repeat this step to add the Metric Value Expressions to the table, using the following information:
  6. Select the cell under Trigger. Click the button to select Loan Request Committed Trigger, select the cell under Expression , and then enter Committed.
  7. Select the cell under Trigger . Click the button to select Loan Request Rejected Trigger, select the cell under Expression , and then enter Rejected.
  8. Press Ctrl-S to save your work.
  9. Repeat these steps to create the same metric for Investigate Loan Venture MC.

    The metric value expression for this metric is as follows:

  10. Switch back to Visual Model view, click the icon on the SVG view of Loan Request Process MC, then one row in the Add and Edit Shape Set Actions table will be selected automatically.
  11. Right-click the selected row, and select Add Action -> Set Color, then several new rows are added to the table as follows.

Generate a J2EE Project

  1. In the Project Explorer view, right-click LoanRequestMM and click Generate Monitor Model J2EE Project.

  2. On the window, click Finish.
  3. Switch to the J2EE perspective. Three projects have been generated in the Project Explorer view.

  4. Right-click LoanRequestMMApplication, and click Export -> EAR file.

  5. Select a destination (for example D:\Sample\LoanRequestMMApplication.ear), and click Finish.

Deploy the monitor model

In this section, you will use the WebSphere Application Server administrative console to run the lifecycle steps to deploy the monitor model.

Install the monitor model

  1. In the WebSphere Application Server administrative console, select Applications -> Monitor Models.

  2. Click Install.

  3. Browse to and select LoanRequestMMApplication.ear. This is the EAR file that you created using WebSphere Integrated Developer.
  4. Click Next.
  5. Click Step 3 to accept the defaults for the installation.

  6. Click Finish.

  7. Click Save to finish deploying the monitor model.

Add a template for the So Much Rejected Loan Request Alert

  1. In the WebSphere Application Server administrative console, click Applications -> Monitor Action Services -> Template Definitions -> Notification.
  2. Click New.

  3. For the template name, enter RejectedLoanRequestSoMuch.
  4. For the description, enter some text or leave the field blank.
  5. For the Default action service type, select Dashboard Alert.
  6. For the To query type, select User id.
  7. In the To field, enter zczc. ZCZC is the user that is used to log in to the Web Dashboard.
  8. For the subject, enter The rejected loan request is so much.
  9. In the body, enter The percentage of rejected loan request is so much! The current percentage is %CurrentPercentage%, it exceeds the defined limitation (< %PercentageLimitation%).

  10. Click OK.

Add the binding from the situation event to the action type for the RejectedLoanRequestSoMuch template

In this section, add the binding from the situation event to the action type for RejectedLoanRequestSoMuch template that you just configured.

  1. On the WebSphere Application Server administrative console, click Applications -> Monitor Action Services -> Installed Situation Event Bindings.
  2. Click New.

  3. For the outbound event, enter the situation event name that you defined in the model (SoMuchRejectedRequest. This value must match exactly the value in the BusinessSituationName field in the outbound event. You might want to copy and paste this name from the model.

  4. Enter a description, and then click Apply.

  5. Click Add just below Preferences to add a new binding as shown in the sample below.
  6. For the binding name, enter Percentage of rejected loan request overstep.
  7. For the category, enter LoanRequestMM.
  8. For the template name, select RejectedLoanRequestSoMuch.
  9. Click OK.

    Note: Refer to Appendix 5 to add other templates and situation bindings.

When you finish configuring the installed situation binding, you should see a summary similar to the one below:

Appendixes

Appendix 1 - Other Metrics

Add the Loan Requester Gender metric

  1. In the Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Requester Gender as the Name and select String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Gender
  5. Click OK.

Add the Loan Requester Age metric

  1. In the Monitor Details Model view, right-click Loan Request Process MC, then select New -> Metric.
  2. Enter Loan Requester Age as the Name, and select Integer as the Type. Click OK.
  3. On the right panel, click Add button for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Age
  5. Click OK.

Add the Loan Requester Telephone Number metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, then click New -> Metric.
  2. Enter Loan Requester Telephone Number as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button appears. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Telephone_Number
  5. Click OK.

Add the Loan Requester Indebted Amount metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Requester Indebted Amount as the Name, and click Decimal as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Requester/wmqwf:Indebted_Amount
  5. Click OK.

Add the Loan Amount metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Amount as the Name, and click Decimal as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text:< Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Amount
  5. Click OK.

Add the Loan Cycle metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Cycle as the Name, and click Integer as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Loan_Cycle
  5. Click OK.

Add the Lending Rate metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Lending Rate as the Name, and click Decimal as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Implementation_Completed/ApplicationData/wmqwf:Current_Lending_Rate
  5. Click OK.

Add the Loan Requester Credit Standing Status metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Requester Credit Standing Status as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Implementation_Completed/ApplicationData/wmqwf:Requester_Credit_Standing_Status
  5. Click OK.

Add the Business Director Name metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Business Director Name as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Audit_By_Business_Director_Activity_Implementation_Completed/ApplicationData/wmqwf:Business_Director_Name
  5. Click OK.

Add the Business Manager Name metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Business Manager Name as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Audit_By_Business_Manager_Activity_Implementation_Completed/ApplicationData/wmqwf:Business_Manager_Name
  5. Click OK.

Add the Repay Mode metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Repay Mode as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Submit_Loan_Request_Activity_Ready/ApplicationData/wmqwf:Repay_Mode
  5. Click OK.

Add the Commit Loan Request Result metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Commit Loan Request Result as the Name, and select String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Commit_Loan_Request_Activity_Implementation_Completed/ApplicationData/wmqwf:LoanRequest_Committed_Result
  5. Click OK.

Add the Loan Rejected Reason metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then click New -> Metric.
  2. Enter Loan Rejected Reason as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Reject_Loan_Request_Activity_Implementation_Completed/ApplicationData/wmqwf:Business_Director_Audit_Result
  5. Click OK.

Add the Senior Manager Name metric

  1. In Monitor Details Model view, right-click Investigate Loan Venture MC, and then click New -> Metric.
  2. Enter Senior Manager Name as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add button of Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Approve_By_Senior_Manager_Activity_Implementation_Completed/ApplicationData/wmqwf:Senior_Manager_Name
  5. Click OK.

Add the UpLevel Bank Investigation Result metric

  1. In Monitor Details Model view, right-click Investigate Loan Venture MC, and then click New -> Metric.
  2. Enter UpLevel Bank Investigation Result as the Name, and click String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Investigate_By_Up_Level_Bank_Activity_Implementation_Completed/ApplicationData/wmqwf:Venture_Investigation_Result
  5. Click OK.

Add the Venture Manager Name metric

  1. In Monitor Details Model view, right-click Investigate Loan Venture MC, and then click New -> Metric.
  2. Enter Venture Manager Name as the Name, and select String as the Type. Click OK.
  3. On the right panel, click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: Approve_By_Venture_Manager_Activity_Implementation_Completed/ApplicationData/wmqwf:Venture_Manager_Name
  5. Click OK.

Add the Percentage of Loan Request Committed Successfully metric

  1. In Monitor Details Model view, right-click Loan Request Process MC, and then select New -> Metric.
  2. Enter Percentage of Loan Request Committed Successfully as the Name, and click Decimal as the Type. Click OK.
  3. On the right panel, enter 0 as the default value of the metric, and click Add for Metric Value Expressions.
  4. Click the space under Expression. A button is displayed. Click this button, and enter the following text: if (Commit_Loan_Request_Activity_Implementation_Completed/ApplicationData/wmqwf:LoanRequest_Committed_Result = 'Successfully') then 100 else Percentage_of_Loan_Request_Committed_Successfully
  5. Click OK.

Appendix 2 - Other KPIs

  1. In KPI Model view, right-click Template KPI Context, and click New -> KPI
  2. Enter Percentage of Committed Successfully Loan Request as the Name.
  3. On the right panel, for the KPI Definition, select KPI Value as Base this KPI on a metric and aggregation function. The KPI Details tab is now visible.
  4. For KPI Details, complete the following steps:
    1. Click Browser to select Monitoring context to be Loan Request Process.
    2. Click Browser to select Metric as Percentage_of_Loan_Request_Committed_Successfully.
    3. Select Aggregation function to be Average.
  5. For KPI Target and Ranges, enter the following values:
    1. For Target, enter 75.
    2. For Ranges, enter Actual Value
    3. In the Range table, click Add.
    4. Change the Name to Good and the ID to Good

      A row is created in the Range table with a range name Good.

    5. For this new row, select the cell in the Start value column. A button is displayed. Click this button, and then change the value to 75. Click OK.
    6. For this row, select the cell in the End value column. A button is displayed. Click this button, and then change the value to 100. Click OK.
    7. Repeat the previous step to create two more ranges:

      Acceptable with start value 50 and end value 75

      UnAcceptable with start value 0 and end value 50

Appendix 3 - Other measures

  1. In Dimensional Model view, select Loan Request Process Cube in the navigation tree.
  2. For the Measures table, click New, and enter the following values, and then click OK to finish:
    1. For Name, enter Percentage of Loan Request Committed Successfully.
    2. For ID, enter Percentage of Loan Request Committed Successfully.
    3. For Source metric, enter Percentage_of_Loan_Request_Committed_Successfully.
    4. For Aggregation function, enter Average.

Appendix 4 - Other alerts

  1. In KPI Model view , right-click Template KPI Context, and click New -> Trigger.
  2. Enter So Little Loan Request Committed Successfully Alert Trigger as the Name.
  3. On the right panel, clear the Trigger is repeatable check box, and click Add to select Recurring wait time as the source event of trigger.
  4. For the trigger condition, enter the following text:<
    Percentage_of_Committed_Successfully_Loan_Request < 50
  5. In the KPI Model view, right-click Template KPI Context, and click New -> New Outbound Event.
  6. Enter So Little Loan Request Committed Successfully Alert as the Name. Click OK.
  7. On the right panel, for Event Type Details, click Browser to select extension name to be PercentageOverstep.
  8. For Event Attributes Details, click Add button to select trigger So Little Loan Request Committed Successfully Alert Trigger.

    Some content is now displayed in the table of Event Attributes Details. Complete the following actions in the table:

    1. On the same row as BusinessSituationName, enter 'SoLittleSuccessfulRequest' as the Expression (include the hyphens).
    2. On the same row as CurrentPercentage, enter Percentage_of_Loan_Request_Committed_Successfully (KPI) as the Expression.
    3. On the same row as PercentageLimitation, enter 50 as the Expression.
  9. Switch to Monitor Details Model view , right-click Loan Request Process MC, and click New -> Trigger.
  10. Enter DurationAlertTrigger as the Name.
  11. On the right panel, clear the Trigger is repeatable check box, and click Add to select Recurring wait time as the source event of trigger.
  12. For the trigger condition, enter the following text: (fn:current-dateTime() - Commit_Loan_Request_Start_Time) ge dayTimeDuration('P0DT0H1M0.000S')
  13. In the Monitor Details Model view, right-click Loan Request Process MC, and click New -> New Outbound Event.
  14. Enter DurationAlert as the Name. Click OK.
  15. On the right panel, for Event Type Details, click the Browser to select extension name to be ElapsedDurationOverstep.
  16. For Event Attributes Details, click Add to select trigger Percentage of Rejected Loan Request Overstep Trigger.

    Some content is now displayed in the table of Event Attributes Details. Enter the following information in the table:

    1. On the same row as BusinessSituationName, enter 'SoLongElapsedDuration' as the Expression (include the hyphens).
    2. On the same row as Activity Name, enter Commit Loan Request as the Expression.
    3. On the same row as DurationLimitation, enter 1 as the Expression.

Appendix 5

Add a template for DurationAlert alert

  1. In the WebSphere Application Server administrative console, navigate to Applications -> Monitor Action Services -> Template Definitions -> Notification.
  2. Click New.
  3. Enter ElapsedDurationSoLong for the Template name.
  4. Enter some text for Description or leave it blank.
  5. Select Dashboard Alert for Default action service type.
  6. Select User id for To query type
  7. Enter zczc for To.

    Note that zczc is the user that is used to log in to the Web Dashboard

  8. Enter The elapsed duration is so long for the Subject.
  9. Enter The elapsed duration of this activity is so long. The current duration is %CurrentDuration%, it exceeds the defined limitation (<%DurationLimitation%) for the Body.
  10. Click OK

Add a template for So Little Loan Request Committed Successfully Alert

  1. In the WebSphere Application Server administrative console, click Applications -> Monitor Action Services -> Template Definitions -> Notification.
  2. Click New.
  3. Enter CommittedLoanRequestSoLittle for the Template name.
  4. Enter some text for Description, or leave it blank
  5. Select Dashboard Alert for Default action service type.
  6. Select User id for To query type
  7. Enter zczc for To.

    Note that zczc is the user that is used to log in to the Web Dashboard

  8. Enter The loan request committed successfully is so little as the Subject.
  9. Enter The percentage of loan request committed successfully is so little! The current percentage is %CurrentPercentage%, it exceeds the defined limitation (> %PercentageLimitation%) as the Body.
  10. Click OK

Add the binding from the situation event to the action type for ElapsedDurationSoLong template configured previously

  1. In the WebSphere Application Server administrative console, click Applications -> Monitor Action Services -> Installed Situation Event Bindings.
  2. Click New.
  3. Enter the situation event name that you defined in the model (meaning, SoLongElapsedDuration). This must match exactly the value in the BusinessSituationName field in the outbound event. You might want to copy and paste this name from the model.
  4. Enter a description, and then click Apply.

    Click Add for the preference table to add a new binding as follows

    1. Enter Elapsed duration overstep as the Binding name.
    2. Enter LoanRequestMM as the Category.
    3. Select ElapsedDurationSoLong as the Template name.
  5. Click OK

Add the binding from the situation event to the action type for CommittedLoanRequestSoLittle template configured previously.

  1. In the WebSphere Application Server administrative console, click Applications -> Monitor Action Services -> Installed Situation Event Bindings.
  2. Click New.
  3. Enter the situation event name that you defined in the model (meaning, SoLittleSuccessfulRequest). This must match exactly the value in the BusinessSituationName field in the outbound event. You might want to copy and paste the name from the model.
  4. Enter a description, and then click Apply.

    Click the Add for the preference table to add a new binding as follows

    1. Enter Percentage of loan request committed successfully overstep as the Binding name.
    2. Enter LoanRequestMM as the Category.
    3. Select CommittedLoanRequestSoLittle as the Template name
  5. Click OK.