Question

Run multiple projects under main project

Can someone share share demo video or best practices for adding multiple child projects under main project and perform execution in single run?

Correct Answer
December 11, 2019 - 8:47am

I don't think a video is necessary. Make sure your solution contains all the projects that you want to use. Make sure that your Startup Project (the one in bold) references the other projects (unless some of those projects reference each other, then you must only reference the parent; I doubt you are doing this, but just keep that in mind that you don't want any circular references). After you add the references, then you "Manage Imported Projects" and pull in all of the other projects. In your Startup Project you'll be able to see all the other projects in your Object Explorer window when you have an automation open.

Comments

Keep up to date on this post and subscribe to comments

Pega
December 10, 2019 - 8:20am

There are two ways to create a child project;

  1. The most common way is to create an entirely separate solution/project for each adapter. When you have this (child) solution opened, you'll only see the child project and perhaps a parent project of this child used to test it. Once you've finished its development, you would then open your parent project. From here, you would simply right-click on your solution in the Solution Explorer window and select "Add Existing Project". Browse for the child's "osproj" file and click "Ok" to add it to your solution. Next, proceed to the last paragraph.
  2. A less common way is to create a child project directly within the parent solution. To do this, right-click on the solution in the Solution Explorer window and select "Add New Project". Once you name it and click "Ok", the project will appear in your solution. Next, proceed to the last paragraph.

Once you have a new project in your solution you must reference it. To do this, right-click on the References folder and select "Add Reference". Select the "Projects" tab and select the project(s) you wish to reference. After adding a reference, you must then import the projects into the main project. Right-click on the parent project in the Solution Explorer window and select "Manage Imported Projects". Move any projects from the "Available Projects" box on the left to the "Imports" box on the right by clicking the arrows. Now, when you click "Run", all of the projects will start.

 

 

December 10, 2019 - 8:29am

You need to have a common interaction.xml once you added to a single solution. 

Pega
December 10, 2019 - 8:57am
Response to Kondal

This is only required if you are using the Interaction Framework (IF). If your project is an RPA or you are not using the IF in your RDA, then this is not a consideration.

December 11, 2019 - 2:44am
Response to Kondal

Thanks for your response.

December 11, 2019 - 2:43am

Thank You Thomas for your inputs, I have imported all the child projects and added references as well, but system executes only the parent project. Could you please help me on this?

Appreciate if you share any demo video. 

Thanks in advance!

 

Pega
December 11, 2019 - 8:47am

I don't think a video is necessary. Make sure your solution contains all the projects that you want to use. Make sure that your Startup Project (the one in bold) references the other projects (unless some of those projects reference each other, then you must only reference the parent; I doubt you are doing this, but just keep that in mind that you don't want any circular references). After you add the references, then you "Manage Imported Projects" and pull in all of the other projects. In your Startup Project you'll be able to see all the other projects in your Object Explorer window when you have an automation open.

December 11, 2019 - 8:54am
Response to tsasnett

Thomas-Thanks for your valuble time in resolving the issue.