Use connectors to connect a shape in the flow with the next shape, to indicate a possible path for the flow execution. Connectors between two shapes can either be anchored to a specific connection point, or be unanchored and tied only to the shape.
Hover over a shape to see the connection points.
As you move your mouse over a shape, the connector points appear on the top, bottom, and sides. A green box displays around the connector point to indicate that you have selected a starting point that the connector will be anchored to.
As you move your mouse over a shape, gray arrows also appear outside the shape. A blue box displays around the whole shape to indicate that the starting point will be an unanchored connection, tied to the shape, but not tied to a specific point.
Click and drag your mouse from the starting shape to draw the connector to another shape. A connector must make a valid connection to a shape. The dashed line will remain until you connect to a valid destination point. Valid connections display with a green connector line and a green outline around the target shape.
You may either connect to a specific point by dragging to a connector point and dropping when the green highlight box appears around the connection point, or create an unanchored connection to the shape by dropping on the shape when the green outline appears around the entire shape.
If you drag to an anchored connector point, the point will display as a gray dot when the connector is selected. If you drag to the center of the shape, the connector will automatically route to the nearest connector point which will display as an open white dot when the connector is selected.
You cannot connect to an annotation or swimlane.
Tip: At run time, the system presents available flow actions in a selection list, with connector flow actions (sorted by decreasing likelihood) appearing above local flow actions. In generally, you cannot control the order of the local flow actions. However, if for one assignment you want to make a local flow action appear first, add a connector to the flow that loops back to the assignment, and assign the largest likelihood value to that connector.
Double-click the connector.
Complete the fields in the property panel according to the tables below.
Complete the Connector Properties panel to identify the connector flow action available to a user who performs this assignment. The flow action rule controls how users interact with user forms to complete the assignments.
On the Connector section, complete the following:
Field |
Description |
Flow Action |
Select the name of a flow action. |
Application |
Optional. Select the name of the application that you want to link to this shape. The value of this field is referenced with the flow diagram in application documents. |
Work Type |
Optional. Select the name of the work type for the application that you want to link to this shape. The value of this field is referenced with the flow diagram in application documents. |
Likelihood |
Enter a percentage between 1 and 100 that indicates how likely it is that a user selects this flow action. If only one path is possible, enter 100. Otherwise, allocate percentages among the multiple flow actions as appropriate. Toggle their display using on the toolbar. These can be approximate, because you can change them later. After the flow rule is saved and deployed, you can compare the actual results with the likelihood factors. Click the Flow Analysis button on the Design tab of the flow rule to retrieve and summarize this data. Choose likelihood values that are initial guesses. After the flow is in use, click the Flow Analysis button on the Design tab to obtain statistics for comparison. If you estimated that a connector flow action will be used 1 percent of the time, but it is in practice used 15 percent of the time, this large difference is worth researching. Productivity, costs, and timeliness are directly related to the path that a work item takes through the flow diagram. |
Audit Note |
Optional. Select or enter the name of a Rule-Message rule to control the text of an instances added to the work item history (the "audit trail") when a flow execution completes this connector. The Pega 7 Platform includes a few dozen standard messages in the Work- class. (Through field value rules, the corresponding text on work item history displays can be localized.) Alternatively, enter a brief text phrase between double quotes. Optionally, to reduce the volume of history detail instances, your application can prevent system-generated messages from being added to work item history. See Controlling the volume of generated work item history instances and the PDN article How to control history instances written to the audit trail. |
On the Set Properties section, optionally indicate how you want to set properties for work items as they advance over this connector. You can set properties explicitly or apply a data transform rule. A clipboard icon appears on the connector if you assign properties or a data transform on the connector.
Set Properties
.
Do not use this feature to set pyStatusWork to a resolved value. Always use the standard utility Work-.Resolve to resolve a work object.
Apply Data Transform.
Use the SmartPrompt to select the data transform. The data transform you select may accept input parameters that will appear in the box below. Supply a value for each parameter.
Typically, there are two or more outgoing connectors from a decision shape, one of which is labeled Else
.
On the Connector section complete the following:
Field |
Description |
Condition Type |
Select
If the Decision is a Fork type, two more conditions are available:
|
Result |
Available when you select This field is a text entry box when draft mode is on or when the decision shape is a Fork. This allows you to enter temporary results, even if you have not assigned an actual decision rule to the shape. When draft mode is off, you must associate a decision rule and enter a valid result.
|
When |
Available if this connector is from a fork decision shape. Enter the name of a When condition rule.
|
Likelihood |
Available when you select These can be approximate; you can change them later. When the system lists connector flow actions to the user, they appear sorted by decreasing likelihood values. |
Audit Note |
Optional. Select or enter the name of a Rule-Message rule to control the text of an instances added to the work item history (the "audit trail") when a flow execution completes this connector. The Pega 7 Platform includes a few dozen standard messages in the Work- class. (Through field value rules, the corresponding text on work item history displays can be localized.) Alternatively, enter a brief text phrase between double quotes. Optionally, to reduce the volume of history detail instances, your application can prevent system-generated messages from being added to work item history. See Controlling the volume of generated work item history instances and the PDN article How to control history instances written to the audit trail. |
On the Set Properties section optionally indicate how you want to set properties for work items as they advance over this connector. You can set properties explicitly or apply a data transform rule. A clipboard icon appears on the connector if you assign properties or a data transform on the connector.
Set Properties
.
Do not use this feature to set pyStatusWork to a resolved value. Always use the standard utility Work-.Resolve to resolve a work object.
Apply Data Transform.
Use the SmartPrompt to select the data transform. The data transform you select may accept input parameters that will appear in the box below. Supply a value for each parameter.A utility shape can return a literal constant result using the TaskStatus-Set method. Similarly, a subprocess called from this flow can return a literal constant result to indicate which End shape was reached. Complete these fields to have the system test the result returned in these situations to select a connector.
Field |
Description |
Condition Type |
Select
|
Result |
Available when you select Enter a text value to match the text value returned at runtime by the called flow (through a setting on the End shape) or by the TaskStatus-Set method in the called activity. When the End settings of the called flow are previously defined, SmartPrompt is available. |
When |
Available when you select |
Likelihood |
Appears when |
Audit Note |
Optional. Select or enter the name of a Rule-Message rule to control the text of an instances added to the work item history (the "audit trail") when a flow execution completes this connector. The Pega 7 Platform includes a few dozen standard messages in the Work- class. (Through field value rules, the corresponding text on work item history displays can be localized.) Alternatively, enter a brief text phrase between double quotes. Optionally, to reduce the volume of history detail instances, your application can prevent system-generated messages from being added to work item history. See Controlling the volume of generated work item history instances and the PDN article 25196 How to control history instances written to the audit trail. |
On the Set Properties section, optionally indicate how you want to set properties for work items as they advance over this connector. You can set properties explicitly or apply a data transform rule. A clipboard icon appears on the connector if you assign properties or a data transform on the connector.
Set Properties
.
Do not use this feature to set pyStatusWork to a resolved value. Always use the standard utility Work-.Resolve to resolve a work object.
Apply Data Transform.
Use the SmartPrompt to select the data transform. The data transform you select may accept input parameters that will appear in the box below. Supply a value for each parameter.Complete the Connector Properties panel to set properties at the beginning of the process.
On the Connector section, complete the following:
On the Set Properties section, optionally indicate how you want to set properties for work items as they advance over this connector. You can set properties explicitly or apply a data transform rule. A clipboard icon appears on the connector if you assign properties or a data transform on the connector.
Field |
Description |
Audit Note |
Optional. Select or enter the name of a Rule-Message rule to control the text of an instances added to the work item history (the "audit trail") when a flow execution completes this connector. The Pega 7 Platform includes a few dozen standard messages in the Work- class. (Through field value rules, the corresponding text on work item history displays can be localized.) Alternatively, enter a brief text phrase between double quotes. Optionally, to reduce the volume of history detail instances, your application can prevent system-generated messages from being added to work item history. See Controlling the volume of generated work item history instances and the PDN article 25196 How to control history instances written to the audit trail. |
On the Set Properties section, optionally indicate how you want to set properties for work items as they advance over this connector. You can set properties explicitly or apply a data transform rule. A clipboard icon appears on the connector if you assign properties or a data transform on the connector.
Set Properties
.
Do not use this feature to set pyStatusWork to a resolved value. Always use the standard utility Work-.Resolve to resolve a work object.
Apply Data Transform.
Use the SmartPrompt to select the data transform. The data transform you select may accept input parameters that will appear in the box below. Supply a value for each parameter.Optionally, enter a name for the connector in the Step Name field.The name will display if you change it from the default provided or if you change a status. Note that for a connector originating at the Start shape, Name
is the only field in the panel.
Click OK or click anywhere off the shape to save edits and close the panel.
Display the likelihood of the connectors by using theon the toolbar.
At run time, an outgoing connector from a shape is selected, based on the following criteria:
If no outgoing connector from the shape, processing stops. The work item may remain open, but no further processing by this flow occurs.
When only one outgoing connector exists, processing follows that connector.
From an assignment shape, the user selects the outgoing connector by choosing the associated flow action.
From a decision shape, the system selects the outgoing connector that contains a value that matches the result of the decision rule.
From all other shapes, the system evaluates the connectors available to it starting with the one with the highest likelihood value. Evaluation continues with the next highest likelihood connector, and so on, until one evaluates to True,
or until the Else Connector is chosen.
Consider the kinds of connections as you create a neat, easy-to-follow flow. You can draw a connector to and from a specific connector point so that it is anchored to that point. When the connector is selected, these anchored connections will display as a solid gray dot at each connector point. If you move the shape on the canvas, the connector remains anchored to that point.
Plan for whether your connector points should be anchored or unanchored. As a shape is dragged on the canvas, the unanchored connector ends can switch among some of the available connector points, trying to reduce the number of bends in their associated connectors. When the shape is released in its new position, the connector ends that were anchored will stay on those same points, and the unanchored connectors will typically connect at the closest connector point on the shape. Unanchored connectors may result in multiple connectors on a single connector point after dragging.
When a Visio flow is converted for use in the Process Modeler, all connections in the converted process flow are unanchored.
Plan your connectors and criteria so that at least one is True
no matter what data values are present. As a good practice, select Else
as the criterion for the connector with the lowest likelihood.
You can use the notation param.name in a field to refer to a flow parameter.