How to set the "ask when run the robot" action?
-
Hello!
Could you help me how to establish an action before the robot runs? it would be like an "ask when run" for the user to input information (a search code for example) that the robot would use to run.
If the only way is to invoke an OpenFlow form, could you help me to structure a form? What would be the sequence of nodes within Nodered that would allow the user to assign an input within the robot's flow?
-
@cauan-silv If the user starts the workflow from a robot, you can use the "Invoke Form" activity .. go to snippets, there are 2 examples on how to create a form. Once you have the fields you like, you then click "create variables" and you can now get the result from the users input in those variables ( or set them. If the variables have a value before calling invoke form, the centent will be in the form).
If the user does not have the robot installed or needs to run a workflow on a different machines, you can either use a local robot to trigger a remote robot using "Invoke OpenRPA Remote" and still use "Invoke Form" or you could make the user trigger the robot from a workflow in OpenFlow, and use a Web Form to ask for input. This will require a nodered to handle the messages and send the command to the robot.
There are multiple videos on youtube showing how to add a workflow with forms in openflow/nodered. -
@allan-zimmermann Thank you so much!
-
@allan-zimmermann
Hello! could you help me please?I created a form for the user to input an "ID" (I used one of the 2 examples that you mentioned), this variable was created automatically as a string when i clicked on the "create variables" and everything worked...
Now I would like to pass this "ID" to a field in the browser but it is not being written in the indicated field. Could you help me please?
Follow how i did the steps: -
@cauan-silv Maybe you changed the name of the variale in the form ?
Try selecting "open url" press F9 to set a breakpoint, and see if the varibale has the expected value -
Now i keep the variable name but didn't work...
I did what you said but i don't think that variable has the expected value...Maybe i did something wrong in the form designer?
-
@cauan-silv Hey. Sorry I missed your reply.
So what was the value of the variable ( ID i guess ? ) when setting the breakpoint and looking at the inspector window ?
You could also share the workflow here ( export the workflow as .xaml and drag the file into a reply here. ) -
Yes the variable is "ID" (string). I didn't find the inspector window, usually we use "write line" and i look to the out put (for this case i don't know why the variable string isn't going out)
I tried to drag the file here but :
What do you suggest?
-
@cauan-silv the properies window becomes the inspector window, doing debugging. But if writeline also shows nothing, then clearly the error is your not getting the value from the form.
Strange, i can share yaml files with no issue. But I'm also admin, I will need to investigate that. But until then, can you maybe go to rocket chat and send me the file there instead ( my username is skadefro ) ? -
Hi Allan!
Here is what properties showed to us:I sent the file in rocket chat, please let me know if you received it.
Thank you so much!
-
@cauan-silv Ah, I can see why this confused you
You have clicked the "map variables" dialog, that adds the varibales to a list of mappings, and you did not "remap" them in this dialog ( either delete them, or map all varibales here )
Here is an updated version, with the varibales mapped in the Map Variables window
ID search2.xaml -
Worked! Thank you so much!
-