- Hi, I'm Cameron McKenzie @cameronmcnz on Twitter.
And I wanna talk to you about
creating a UiPath Orchestrator Process.
And I'm gonna show you how to do this, right from scratch.
So, I'm gonna start with nothing in Orchestrator,
I'm gonna create the Orchestrator service,
push a little Hello World application from the client
to Orchestrator, create the robot, create the environment,
set up the machine, and then finally,
create the process and run it.
So, I wanna show you how to
create a process in UiPath Orchestrator and run it.
Now, I'm gonna start from scratch here.
I've got a brand new UiPath Orchestrator environment here,
nothing's been created.
And so, to kick things off, I need to add a new tenant.
I'm gonna call it insight service,
'cause it's an orchestration service,
accept the basic number of licenses and say,
"Thank you very much from UiPath for providing them."
And, when the Orchestrator service is created,
I'll click on the blue Orchestrator link,
which will take me to the new user interface
for Ui Orchestrator.
Now, it's a process I wanna create because it's the process
that runs the robots but I need a robot to run.
So, I'm gonna start off by creating a brand new robot.
Now, if you try and create a brand new robot
right off the bat, it'll say, "You know what?
In order to do this,
you actually have to use the classic interface."
And so, right up there,
see where it's a shared modern folder?
I need to click on that, click on default,
and you notice it goes back to classic folder,
and that's gonna make things a lot easier to do
in the classic folder.
So, with the classic folder selected,
I'm gonna head over to robots and create a brand new robot.
And, it's gonna be a standard robot.
Now, when I create the robot,
I actually need to provide the name of my local machine.
So, if I type in, host name here, or even, who am I?
You'll see that my local computer is named think station
and I'm logged in under the user visitor.
The machine name has to map to the machine
that you wanna run the process on.
So, I'm gonna name that think pad or think station,
'cause that's the name of my computer.
Now, you'd usually do this at a separate step.
I've got no need to do this in a separate step
but the tool says, "Usually you do this separately.
Do you want me to do that step for you
in creating the machine object?"
I clicked this provision machine think station
to have UiPath do that for me.
Now, I need to name the robot.
I'm gonna call it insights robot.
I'll call it insight robot description for the description
and the type has to be unattended,
make sure you've got an unattended type selected.
Now, when it's unattended,
you actually need to provide the domain and username,
that is the name of your computer and the username
that you're gonna use to log in
to run the service on your local machine.
So, who am I, gives you that information
and that's just think station visitor.
Now, the other thing you need to do
is provide your password here.
And, this is the password for your Windows operating system.
It's for the machine on which the process is gonna run.
It's not your Ui Cloud Orchestrator password.
So, I type mine in there.
I often get that wrong,
if the program doesn't run in a minute,
I'll have to go back and update my password.
Sometimes I type it in wrong.
Okay, so that creates the robot.
Step number two is adding the robot to an environment.
I don't know why this isn't done all in the same step
but you have to create an environment object, click create.
It says, "Do you wanna associate that robot you created
with this environment?"
And I say, "Yes."
A lot of people miss this
because it's robots at the top, right?
I'm still in that robots environment.
It's robots at the top,
and this environment isn't very pronounced, right?
Like, it's the contrast in the text isn't really great,
so people often forget that step.
So, that ends up setting up the robot that we wanna run.
And, of course, part of creating that robot
was creating this think station machine.
It always puts in this a default machine,
I don't like that in there.
Now, this think station machine represents my local machine
and where processes will run.
If I actually go onto my local machine
and open the UiPath assistant,
you can find that in the same folder
where maybe you've installed UiPath Studio,
this actually needs,
it actually needs to know under Orchestrator settings,
what the URL is and what the machine key is,
in order to move code from your client machine
from your UiPath Studio to Orchestrator.
And, of course, I need to do that because the code
that I wanna run inside this process,
is still in UiPath Studio, I need to publish it.
So, I need the Orchestrator URL.
The URL is everything before Orchestrator underscore,
in the URL there.
So, I'll highlight everything
before Orchestrator underscore.
And then, the machine key is obtained right there.
So, under machines, it got think station
which was just created my robot, a copy of the key,
and then, I paste that long hexadecimal key in here.
I can then click connect, and now my local machine,
which has UiPath Studio on it and all of my code,
and it's where I want to run my robots,
is connecting to the Cloud.
See, I've got a little green light saying
that it's connected.
I can now come into UiPath Studio.
I've got a little Hello World application here,
I'll show it to you.
And it'll just run like this.
It says, "Hello World!"
And I wanna publish all of this code,
so I'll click publish.
It'll say, "Do you wanna publish UiPath.HelloWorld?"
I'll say, "Yes."
It says, "Do you wanna send it to Orchestrator?"
Of course I do, I click the publish button, it goes up.
And then, if I actually come back to Orchestrator
and click on packages under machines,
you'll actually see there it is.
It says it was published just a few seconds ago.
So now, I have my robot configured.
I have my machine connected
from my local development environment,
my local machine connected to the Cloud.
I've deployed code.
Now, it's this code that I wanna run in this robot
and that's done as a process.
So, I come over to processes, I click plus,
and it says, "Hey, what package do you wanna run?"
And I say, "Hey, it's the UiPath package."
And, "What environment do you wanna run it in?"
And, of course, I created that insights environment
that has the insights robot attached to it.
I think everything's done there.
And I say, "Okay, yeah, create that process."
So now, that is the creation of that process.
So, that's all created, and now, how do you run it?
All you have to do to run it is click play.
Now, again, I keep typing my password in incorrectly.
So, let's see if this is gonna run, I'll click play.
It says, "What robot do you wanna run this on?"
You could provision automatically dynamically.
I'm gonna ask for this specific robot,
it's the only robot to run it on.
I'll click start.
It'll say, "The command is being sent."
And, I must've put my password in correctly this time
because now Hello World is coming up.
And so that's UiPath,
that's running in the Cloud,
but this Cloud Orchestrator is controlling my local machine,
'cause this Hello World came up on my local machine.
And, you can actually see in the jobs here,
that was it run successfully.
If I run this one more time,
I'll click play,
choose the robot, click start.
I'm gonna go back up to jobs.
Then, you can see it actually says running.
So, this message box is not part of the internet.
It's not part of the browser,
that's running on my local machine.
But this is connected to UiPath Orchestrator.
See there, it says the state is running.
When I click okay, it'll actually update Orchestrator
in the Cloud and now say successful.
And then, that is the key to creating a process
and running that process in the Cloud.
And that includes taking your code,
pushing it to Orchestrator, creating the robot,
creating the environment, registering the machine,
creating the process, and then finally, manually running it.
And, there you go, that's everything you need
to know about creating that process
and running that process in UiPath Orchestrator.
If you enjoyed this tutorial,
why don't you head over to theserverside.com?
I'm the editor-in-chief over there,
got lots of great tutorials
on enterprise software development.
If you're interested in my personal antics,
you can follow me on Twitter @cameronmcnz
and subscribe on YouTube.