Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Create and use a flow marker

Updated on September 10, 2021

Summary

When you have access to Automated Unit Testing, you can use flow markers to mark various points in a flow process. A flow marker saves test data and decisions that advance the flow execution to that point. Then, when you unit test the flow, you can jump directly to these specific points without having to input the same information every time.

For example, if you are changing a specific area of a complex flow, you can focus your unit testing on that area by setting a flow marker and jumping to it to begin testing from there. By using a flow marker, you can unit test more rapidly by skipping all the flow steps leading up to that point.

Suggested Approach

Creating a flow marker:

  1. Open the flow rule that you want to create the flow marker for.
  2. Click the Run toolbar tool. The Run Rule window appears.
In V6.1, steps 2 - 4 are different. To create a flow marker in V6.1:
  1. Go to the Test Cases tab of the opened rule.
  2. Click Record New Test Case. The system creates a new test page and starts executing the flow, beginning with creating the work object.
  3. Click Createto create the work object.

    Enter test data and proceed with the flow. After the work object is created, you can save flow markers at points in the process by clicking Save Flow Marker.

The rest of the steps after step 4 for creating a flow marker are the same for V6.1.

  1. In the Test Page section, specify which page to use as the main page.
  2. Enter initial test data for the flow rule and click Continue.
  3. Once you have reached the step in the flow rule where you want to place the flow marker, click the Save Flow Marker button in the test navigation window. The New Flow Marker dialog box appears.

zzz

  1. In the Flow Marker Name field, enter a short string that describes the flow marker.
  2. Specify an appropriate RuleSet and version.
  3. Click Create.

Using Flow Markers

In V6.1, the steps for using flow markers are different. To use a flow marker in V6.1:
  1. Go to the Test Cases tab of the flow rule.
  2. In the Flow Markers table, select the name of the flow marker you want to jump to.
  3. The system advances the process to the flow marker's location.

To use a flow marker you have created, in the Test Page section of the Run Rule window, select which flow marker you want to jump to. Click the Jump to Flow Marker button.

By toggling the Show Flow markers for all Operator ID's check box, you can select from the flow markers created only by you or from all flow markers created.

.zzz

You advance directly to the step saved in the flow marker.

From that step you can proceed through the flow process.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us