Export project to document



What is the use case

Many RPA developers use BPMN(Blueworks, Visio and etc.) for creating a graphical representation of business processes because this is one of the easiest ways to explain the automated process for business users.
In my opinion, it would be very useful to have the built-in UiPath capability to export flow (flowcharts, sequences, variables, activities(with main In/Out arguments) and etc.) to graphical representation - for example in word objects to use them in Process Documentation (PDD)

How do you see a solution for the use case?

So let’s consider an example with UiPath simple flowchart which consists of 2 sequences and one flow decision activity - figure 1.
Because, some activities have many In/Out Arguments, the exported flow representation can contain only not empty arguments but I think it will be enough to export name of activity and annotations(where we can describe arguments and provide other useful information about activity) without arguments, please, have a look below - figure 2:

Technical Solution:

To create notation we can use .xaml file structure and create code parser:
Take the example with used flow:

To get Flowchart name and variables:

<Flowchart sap2010:Annotation.AnnotationText="Simple Flowchart" DisplayName="Flowchart - Simple Counter" sap2010:WorkflowViewState.IdRef="Flowchart_1">
      <Variable x:TypeArguments="x:Int32" Default="1" Name="A" />

To get the first Sequence and used activities with annotations and arguments:

<FlowStep x:Name="__ReferenceID0" sap2010:WorkflowViewState.IdRef="FlowStep_1">
  <Sequence sap2010:Annotation.AnnotationText="Set A = A++" DisplayName="Sequence - Add" sap2010:WorkflowViewState.IdRef="Sequence_2">
    <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
        <OutArgument x:TypeArguments="x:Int32">[A]</OutArgument>
        <InArgument x:TypeArguments="x:Int32">[A + 1]</InArgument>

And after parsing - interpret structure to visual objects using some rules and template.

Scope: RPA Documentation

  • Custom Activity
  • Template
  • Studio feature


Great for sharing the bot to the management