IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Create monitor models > Defining the visual model > Defining actions

Displaying text

You can display dynamic text on a diagram at run time.

You might want to display the current value of a metric or key performance indicator (KPI) , or you might want to display a different text string based on the current value.

For example, you might want to display the elapsed duration beside a task in a process diagram.

To display text:


Procedure

  1. If you have already created a text box, place your mouse cursor on the diagram and click the mouse to highlight the corresponding shape set in the table below. Or, to add text at a place of your choosing, scroll down to the element labeled uncategorized.
  2. Right-click the shape set or uncategorized element in the table and click Add Action > Set Text.

  3. To set the text based on an expression, add a condition in the Condition row.

    For example, if you want some warning text to be displayed if a KPI is greater than 60, you would type KPI_name > 60. You can either type directly into the cell, or, for a large expression, click the button to open a resizable window. For help writing the expression, press Ctrl+Space.

    Because you are creating expressions to be resolved at run time, you can only use the elements in the context that the diagram is attached to. If the diagram is attached to a monitoring context, you can use the metrics, keys, counters, and stopwatches in that context. If the diagram is attached to a KPI context, you can use the KPIs in that context.

  4. To set the color of the text, click the button in the Text Color row. A Color window is displayed in which you can choose a color or click Define Custom Colors to create your own.
  5. Type the text that you want to display in the Text Value row. If you want the value of a metric or KPI to be displayed, enter the name of the metric or KPI. You can also concatenate the value with other text.

    For example, to append a percent sign, use concat( KPI_name, '%').

Defining actions