UiPath Documentation
sdk
latest
false
Developer guide

UiPath.Studio.Analyzer.Models

In this section you can find more information on how to build activities using UiPath.Studio.Analyzer.Models.

ArgumentDirection​

Represents an enumeration of the direction of an argument.

Properties​

ValueDescription
UnsetDefault value.
InAn argument that represents the flow of data into an activity or project.
OutAn Argument that represents the flow of data out of an activity or project.
InOutAn Argument that represents the flow of data into and out of an activity or project.
PropertyCurrently not used.

IActivityContext​

Represents the context of any activity inside the workflow.

Properties​

TypeNameDescription
IReadOnlyCollection<IVariableModel>VariablesThe variables that are visible to this activity.
IReadOnlyCollection<IArgumentModel>DelegateArgumentsThe delegate arguments in that are visible to this activity. Requires Studio 2020.4 or later.
IReadOnlyCollection<IArgumentModel>WorkflowArgumentsThe arguments that are visible to this activity.
IProjectSummaryProjectInformation about the project that contains this activity.

IActivityModel​

Represents an activity inside the workflow.

Inheritance​

IInspectionObject > IActivityModel

Properties​

TypeNameDescription
stringTypeThe assembly qualified type name of the activity.
IReadOnlyCollection<IVariableModel>VariablesThe variables that are defined in this activity.
IReadOnlyCollection<IArgumentModel>DelegateArgumentsThe delegate arguments that are defined in this activity. Requires Studio 2020.4 or later.
IReadOnlyCollection<IArgumentModel>ArgumentsThe arguments that are defined in this activity.
IReadOnlyCollection<IArgumentModel>InternalArgumentsThe non-browsable arguments that are defined in this activity (BrowsableAttribute is set to false).
IReadOnlyCollection<IPropertyModel>PropertiesThe properties of this activity.
IReadOnlyCollection<IPropertyModel>InternalPropertiesThe non-browsable properties of this activity (BrowsableAttribute is set to false).
IReadOnlyCollection<IActivityModel>ChildrenThe collection of child activities of this activity.
IActivityModelParentThe parent activity of this activity.
IActivityContextContextThe context of this activity.
IReadOnlyCollection<string>ObjectReferencesThe references in the object library that are used by this activity.
boolSupportsObjectReferencesIf set to True, this activity supports using the objects library.
stringToolboxNameActivity name as registered in toolbox. Requires Studio 2020.10 or later.
stringAnnotationTextThe text of the annotation. Requires Studio 2021.4 or later.
IPackageBindingModelPackageBindingAssociated package binding for this activity.

IArgumentModel​

Represents an argument.

Inheritance​

IMemberModel > IVariableModel > IArgumentModel

Properties​

TypeNameDescription
ArgumentDirectionDirectionThe direction of this argument.

ICaseModel​

Represents a case activity inside a Switch activity.

Inheritance​

IInspectionObject > ICaseModel

Properties​

TypeNameDescription
IActivityModelActivityThe activity associated with this case.
stringCaseExpressionThe expression that triggers this case.
IReadOnlyCollection<IVariableModel>VariablesThe variables that are defined in this activity.
IReadOnlyCollection<IArgumentModel>ArgumentsThe arguments that are defined in this activity.
IReadOnlyCollection<IPropertyModel>PropertiesThe properties of this activity.
IReadOnlyCollection<IActivityModel>ChildrenThe collection of child activities of this activity.
IActivityModelParentThe parent activity of this activity.
IActivityContextContextThe context of this activity.

IConnection​

Represents a connection between two flowchart nodes.

Properties​

TypeNameDescription
stringKeyTypeThe assembly qualified name of the connection key.
stringKeyExpressionThe key value of this connection.
IFlowNodeModelNodeThe source or destination of this connection.

IDependency​

Represents a project dependency.

Inheritance​

Properties​

TypeNameDescription
stringNameThe name of the dependency.
IReadOnlyCollection<string>AssembliesThe list of referenced assemblies.

IExpressionContainer​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Represents a workflow element containing expressions.

Inheritance​

IInspectionObject > IWorkflowElement > IExpressionContainer

Properties​

TypeNameDescription
IEnumerableGetExpressions()Returns all expression models from this workflow element, for example variable default values, argument default values, property arguments expressions, conditions etc.
IEnumerableGetChildExpressionContainers()Returns all children that can be expression containers, for example activities, nodes, states, transitions.

IExpressionModel​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Represents an expression model populated depending on the expression type (DefaultValue for variable and workflow argument or DefinedExpression for activity argument).

Inheritance​

IMemberModel > IExpressionModel

Properties​

TypeNameDescription
stringDefaultValueThe default value of this variable or argument.

IFileModel​

Represents a file.

Inheritance​

IInspectionObject > IFileModel

Properties​

TypeNameDescription
stringRelativePathRelative path of the file, including extension.

IFlowchartModel​

Represents a Flowchart.

Inheritance​

IInspectionObject > IActivityModel > IFlowchartModel

Properties​

TypeNameDescription
IReadOnlyCollection<IFlowNodeModel>NodesThe collection of IFlowNodeModel in this flowchart.
IFlowNodeModelStartNodeThe start node in this flowchart.

IFlowNodeModel​

Represents a node in a flowchart.

Inheritance​

Properties​

TypeNameDescription
IActivityModelChildActivityThe activity defined in this node.
IReadOnlyCollection<IConnection>OutConnectionsThe outgoing connections from this node.
IReadOnlyCollection<IConnection>InConnectionsThe incoming connections to this node.
IMemberModelExpressionThe expression that is evaluated to decide the next step.
IFlowChartModelOwnerThe flowchart owner of this node.

IIfElseModel​

Represents an If activity.

Inheritance​

Properties​

TypeNameDescription
IActivityModelThenBlockThe activity defined in the Then block.
IActivityModelElseBlockThe activity defined in the Else block.

IInspectionObject​

Represents an object that is inspected by the Workflow Analyzer.

Properties​

TypeNameDescription
stringDisplayNameThe name of the object as it's shown to the user.

IMemberModel​

Represents a member of another model.

Properties​

TypeNameDescription
stringDisplayNameThe name of the member as shown to the user.
stringTypeThe assembly qualified name of this user.
stringDefinedExpressionThe expression or value of this member.
bool?HasLiteralExpressionReturns true if the defined expression is a Literal<string>. Requires Studio 2022.4 or later.

Remarks​

If the expression is a Literal<string> it will be escaped with double quotes, for example ""This is a plain string"".

IObjectBrowserSummary​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v22.4.

Information about Object Repository integration in the project.

Properties​

TypeNameDescription
IReadOnlyCollection<IDependency>ClientDependenciesProject dependencies that register for Object Repository features.
boolHasObjectsInLocalSourceReturns true if at least one object is defined in the project local objects repository.

IPackageReference​

Represents a project package reference.

Inheritance​

IInspectionObject > IFileModel > IDependency > IPackageReference

Properties​

TypeNameDescription
stringVersionThe version of the package.

IPickBranchModel​

Represents a branch of a IPickModel activity.

Inheritance​

Properties​

TypeNameDescription
IActivityModelTriggerThe activity that triggers this branch.
IActivityModelActionThe activity that executes in this branch.
IActivityModelParentThe parent Pick activity.

Remarks​

If the expression is a Literal<string> it will be escaped with double quotes, for example ""This is a plain string"".

IPickModel​

Represents a Pick Branch activity.

Inheritance​

IInspectionModel > IActivityModel > IPickModel

Properties​

TypeNameDescription
IEnumerablePickBranchesThe collection of IPickBranchModel defined in this Pick Branch activity.

IProjectModel​

Represents the complete project representation, including contained workflows parsing models. Project analysis is run against this model.

Inheritance​

Properties​

TypeNameDescription
IWorkflowModelEntryPointThe entry point workflow of the project.
IWorkflowModelExceptionHandlerWorkflowThe exception-handling workflow in the project.
IReadOnlyCollection<IWorkflowModel>WorkflowsThe workflows in the project.

IProjectSummary​

Represents partial information about a project. Unlike IProjectModel, an IProjectSummary only holds information available before the contained workflow files are being parsed. It is useful for workflow analysis and project definition analysis.

Inheritance​

IInspectionObject > IProjectSummary

Properties​

TypeNameDescription
stringDirectoryThe project directory. Requires Studio 2021.4 or later.
IReadOnlyCollection<string>FileNamesThe names of the workflow files in this project.
IReadOnlyCollection<IDependency>DependenciesThe dependencies of this project.
stringProjectOutputTypeThe output type of this project..
stringProjectProfileTypeThe profile type of this project.
stringExpressionLanguageThe expression language of this project
boolRequiresUserInteractionIndicates whether the project requires user interaction.
boolSupportsPersistenceIndicates if project supports persistence.
boolHasModernBehaviorIndicates if the project uses the modern design experience. Requires Studio 2022.4 or later.
stringEntryPointNameThe entry point workflow name of the project.
stringProjectFilePathThe file path to the project.json file.
stringExceptionHandlerWorkflowNameThe exception-handling workflow name of this project.
IReadOnlyCollection<string>EntryPointsThe list of entry points in the project. Requires Studio 2020.10 or later.
IReadOnlyCollection<string>IgnoredFilesThe list of files in the project that are ignored from publish. Requires Studio 2020.10 or later.
IReadOnlyCollection<string>TestCasesThe list of test cases in the project. Requires Studio 2021.4 or later.
IReadOnlyCollection<string>FileTemplatesThe list of file templates in the project. Requires Studio 2021.10 or later. Note: This property is deprecated. Use Templates instead.
IReadOnlyCollection<string>TemplatesThe list of all templates in the project. Requires Studio 2022.4 or later.
IObjectBrowserSummaryObjectBrowserSummaryA summary of Object Repository information in the project. Requires Studio 2022.4 or later.

IPropertyModel​

Represents a property of a model.

Inheritance​

IMemberModel > IPropertyModel

Properties​

TypeNameDescription
IReadOnlyCollection<IPropertyModel>PropertiesThe properties of this property.
IReadOnlyCollection<IPropertyModel>InternalPropertiesThe collection of non-browsable properties of this property (BrowsableAttribute set to false). Non-browsable properties are not parsed in depth.
IReadOnlyCollection<IArgumentModel>ArgumentsThe arguments of this property.
IReadOnlyCollection<IArgumentModel>InternalArgumentsThe collection of non-browsable arguments of this property (BrowsableAttribute set to false).

IStateMachineModel​

Represents a State Machine activity.

Inheritance​

IInspectionObject > IActivityModel > IStateMachineModel

Properties​

TypeNameDescription
IReadOnlyCollectionStatesThe collection of IStateModel in this State Machine activity.
IStateModelInitialStateThe start point of this State Machine activity.

IStateModel​

Represents a State in a IStateMachineModel activity.

Inheritance​

Properties​

TypeNameDescription
IActivityContextContextThe inherited context of this State.
IReadOnlyCollectionTransitionsThe outgoing transitions available from this State.
IActivityModelEntryEntry action of the State.
IActivityModelExitExit action of the State.
IStateMachineModelOwnerThe State Machine activity containing this State.
boolIsFinalIf true, indicates that this State is final.
IReadOnlyCollection<IVariableModel>VariablesThe collection of variables defined in this State.

ISwitchModel​

Represents a Switch activity.

Inheritance​

Properties​

TypeNameDescription
IActivityModelDefaultThe activity associated with the Default block of this activity. Value can be null.
IEnumerableCasesThe collection of ICaseModel in this activity.

ITemplateModel​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v22.4.

Contains information about a specific file template.

Properties​

TypeNameDescription
stringPathThe path of the template.
TemplateTypeTypeThe type of the template (execution, testCase, generic).
stringDataVariationThe path of the data variation.

ITransition​

Represents a transition from a IStateModel in a State Machine.

Inheritance​

Properties​

TypeNameDescription
IStateModelFromThe state that this transition comes from.
IStateModelToThe state that this transition leads to.
IActivityModelActionActivity to execute when the transition is taken.
IActivityModelConditionThe condition to decide whether to take the transition after the Trigger activity is completed.
IActivityModelTriggerTrigger activity of this transition.

ITryCatchModel​

Represents a Try Catch activity.

Inheritance​

Properties​

TypeNameDescription
IActivityModelTryBlockThe activity associated with the Try block of this activity. Value can be null.
IEnumerableCatchesThe collection of in this activity.
IActivityModelFinallyBlockThe activity associated with the Finally block.

IVariableContainer​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Represents a workflow element containing variables.

Inheritance​

IInspectionObject > IWorkflowElement > IVariableContainer

Properties​

TypeNameDescription
IReadOnlyCollection<IVariableModel>VariablesThe collection of variables.
IEnumerableGetChildVariableContainers()Get the children that support a list o variables.

IVariableModel​

Represents a variable.

Inheritance​

IMemberModel > IVariableModel

Properties​

TypeNameDescription
stringDefaultValueThe default value of this variable.

IWebServiceRerefence​

Represents a web service reference in the project.

Inheritance​

IInspectionObject > IFileModel > IDependency > IWebServiceRerefence

Properties​

TypeNameDescription
stringWebDocumentUriThe web document address.
stringWebServiceTypeThe type of web service.

IWorkflowElement​

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Represents a workflow element.

Inheritance​

IInspectionObject > IWorkflowElement

Properties​

TypeNameDescription
stringIdThe generated workflow ID. Can be null.
stringTypeThe type of the workflow element
IWorkflowElementImmediateParentThe immediate parent of the workflow element. It can be a IFlowNodeModel, IStateModel, IPickBranchModel, ITransition, IActivityModel.
IEnumerableGetChildren()The immediate first level children (not only IActivityModel).

IWorkflowModel​

Represents a workflow file inside the project.

Inheritance​

IInspectionObject > IFileModel > IWorkflowModel

Properties​

TypeNameDescription
IActivityModelRootThe root activity of the workflow. Value can be null.
IReadOnlyCollection<IArgumentModel>ArgumentsThe arguments of the workflow.
IReadOnlyCollection<string>ImportedNamespacesThe imported namespaces of the workflow.
IProjectSummaryProjectThe project this workflow belongs to.
IReadOnlyCollection<string>AssembliesThe assemblies of the workflow. Requires Studio 2021.4 or later.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated