5.2 Conditional Trace using the Web UI

Example - How to use conditional trace with the Web GUI

Example workflows

  1. To create a trace template for the workflow shown above, go to the  Web UI http://<platform host>:<web interface port>/mz/. Select Conditional Trace, and then New Template. This template is configured to set a trace template for hits on the r_1 route, and the Analysis_1 agent in the workflow named conditionalDemo.fwd.wf, with the field name Sequence. The lifetime determines the timeout of a trace to be 10000 milliseconds, the maximum number of hits in a trace is limited to 10. The unique name of the trace template is pulse2. The following line is included in the APL code in Analysis_1:

    trace(input, "Message");


    Example - Creating a new trace template in the Web UI
     

  2. You click Save to save the trace template, which is then added to the list of templates, which you can display be selecting the Templates option under Conditional Trace.
     

  3. To create a filter for a specific trace, you select the New Filter option under Conditional Trace. To modify the relevant template, you select the template from the Select Template drop-down list, and specify the value to trace in the Web UI. In this example, Max Hits is set to 15 and the Lifetime has been increased to 100000 ms. The trace filter is set to find hits on the field value of 5 on the route, r_1, and for any field values for the the agent, Analysis_1.



  4. To start the trace filter, click Start. A window is displayed to show the output generated. The trace folder, trace filter name and trace filter id are shown at the top.

  5. If you want to save the output, click Save. A text file that you can save is displayed.


    If you want to stop the trace filter before it times out, click Stop.