Skip to main content

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.

Support Article

Visio flows converted to Process Modeler overlap after upgrade

SA-16346

Summary


.
After you upgrade from PRPC 6.1 SP1 to Pega 7.1.7, you convert flows designed with Visio to the Process Modeler. Flow images with shapes and connectors that were previously clear and well organized in PRPC 6.1 SP1  Visio now appear overlapped, and some complex flow images are unreadable.

This behaviour is observed only on complex flows developed using Visio in PRPC 6.x releases. On systems upgraded to Pega 7.1.x, Process Modeler coversion of flows might show variable results for complex flows (flows with many shapes or connectors).

Error Messages

Not Applicable


Steps to Reproduce



1. Open a complex flow (one with many shapes or connectors covering the page) designed with Visio from a PRPC 6.x or earlier system in a Pega 7.1.x system.
2. Convert the flow to Process Modeler.
3. Review the Pega 7.1.x flow diagram and compare it with the PRPC 6.x or earlier
 flow diagram.


Root Cause



A defect in Pegasystems’ code or rules with the Process Modeler display in Pega 7.1.x of older flows developed in PRPC 6.x

Resolution



Perform the following local-change on checked out versions of Pega internal rules to improve the display of automatically converted flows.
 
Note: Internal rules are processed when called, but they are not visible through the Application Explorer or other means. To find Pega internal rules and open them for the local change described below, search for them using the prefixing “old:” Don't forget the colon.
Like this -- old:RULE_NAME

 
Search for Pega internal rule using prefix old:

Modify rules involved in Visio-to-Process Modeler flow conversion
  1. Open and perform a private checkout of Internal Rule-Obj-When pzAutoLayout and set it to always be false.
    This disables the use of auto layout when conversion to Process Modeler occurs.

    Private Edit, Set auto layout for Process Modeler

     
  2. Open and perform a private checkout of Internal Rule-Obj-Activity pzConvertFromVisioToModeler to add a Java step that updates the x and y coordinates for shapes in the conversion.
    Add a Java step as Step 3 after the existing Step 2 (Property-Remove)
    Specify the new Step 3 as shown here:
    Loop condition: For Each Embedded page -> ClassName: Data-MO
    Step page: .pyModelProcess.pyShapes
Private edit: Convert Visio to Process Modeler
Java code for Step 3

ClipboardPage step = tools.getStepPage();

String X_NAME = ".pyCoordX";
String Y_NAME = ".pyCoordY";

double x = step.getDouble(X_NAME) * 2.0;   // can specify 2.5, 3.0 as per the developer needs
double y = step.getDouble(Y_NAME) * 2.0;

step.putString(X_NAME, Double.toString(x));
step.putString(Y_NAME, Double.toString(y));

Step 3 Java code

 
Convert Visio flow to Process Modeler flow
 
Prerequisite: Log in as the user with private checkouts in place.
  1. Open the affected Visio flow and convert it to a Process Modeler flow.
  2. Check the layout of the flow: It should now be legible and spaced adequately when compared to the previous conversions.
    You can perform additional fine tuning of the flow layout in its new form beyond what the automated processing achieved by manual editing the flow in the Process Modeler.
  3. This is a one-time conversion procedure: After you have converted the affected complex flows to Process Modeller flows, you can delete the checked-out rules used in this procedure.

Published August 24, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration 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 Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us