Table of Contents

Troubleshooting strategy rules by using the Tracer tool

You can use the Tracer tool to view the order in which the top-level strategy and its substrategies are processed in your application. The outcome of the analysis can give you insight about the correctness of the strategy configuration. For example, with the Tracer tool, you can detect a faulty switch condition that prevents a substrategy from running or that unnecessarily triggers a substrategy.

Using the Tracer tool to view the order in which strategies are processed

Perform the following steps to view and analyze the sequence in which your application processes multilevel strategies.

  1. In the Records Explorer, click Decision, and then click Strategy.
  2. From the rule list, select a strategy to analyze.
  3. Click Tracer to open the Tracer tool.
  4. In the Tracer window, click Settings to open the Tracer Settings window.
  5. In the Event types to trace section, select Strategy.
  6. Click OK to save the trace criteria and close the Tracer Settings window. Do not close the Tracer tool.
  7. On the Strategy form, click Actions > Run.
  8. In the Run window, click Run.
  9. In the Tracer tool, analyze the run results.

Example

By using the preceding procedure, you can analyze the following multilevel strategy:

Multilevel strategy

An example of a strategy with multiple layers of substrategies

When the strategy is run, it returns the following results in the Tracer tool:

Order of processing

The multilevel strategy sequence of processing as seen in the Tracer tool

The results show that the application processes the strategy in the correct sequence. The strategies started in the following order: S1, S2, S3. The strategies were completed in reverse order: S3, S2, S1. This behavior is a result of the following strategy configuration:

  • Strategies are processed in descending order from the top-level strategy.
  • A strategy finishes processing after all its substrategies are complete.
Suggest Edit

100% found this useful


Related Content

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.