Navigation

    OpenIAP

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to set the "ask when run the robot" action?

    General Discussion
    2
    12
    69
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cauan.silv last edited by

      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?

      Allan Zimmermann 1 Reply Last reply Reply Quote 0
      • Allan Zimmermann
        Allan Zimmermann @cauan.silv last edited by Allan Zimmermann

        @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.

        C 2 Replies Last reply Reply Quote 1
        • C
          cauan.silv @Allan Zimmermann last edited by

          @allan-zimmermann Thank you so much!

          1 Reply Last reply Reply Quote 0
          • C
            cauan.silv @Allan Zimmermann last edited by

            @allan-zimmermann
            Hello! could you help me please?

            0a895373-bfd4-4a56-b6fe-dc03c00cd7dc-image.png

            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:

            37099bb8-00e2-4f4c-83ea-5e35c35feaaa-image.png

            Allan Zimmermann 1 Reply Last reply Reply Quote 0
            • Allan Zimmermann
              Allan Zimmermann @cauan.silv last edited by

              @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

              C 1 Reply Last reply Reply Quote 0
              • C
                cauan.silv @Allan Zimmermann last edited by

                @allan-zimmermann

                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...

                295ff927-8dad-4fb5-9743-df5512452d6c-image.png

                Maybe i did something wrong in the form designer?

                1d39b085-9100-4fec-93cf-b03439f7c7ef-image.png

                Allan Zimmermann 1 Reply Last reply Reply Quote 0
                • Allan Zimmermann
                  Allan Zimmermann @cauan.silv last edited by

                  @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. )

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cauan.silv @Allan Zimmermann last edited by cauan.silv

                    @allan-zimmermann

                    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 :

                    34af01c7-bd3b-4756-abd8-7657369801f5-image.png

                    What do you suggest?

                    Allan Zimmermann C 2 Replies Last reply Reply Quote 0
                    • Allan Zimmermann
                      Allan Zimmermann @cauan.silv last edited by

                      @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 ) ?

                      1 Reply Last reply Reply Quote 0
                      • C
                        cauan.silv @cauan.silv last edited by

                        @cauan-silv

                        Hi Allan!
                        Here is what properties showed to us:

                        bd5b4328-92e5-4b50-b3fc-b7222fe51e63-image.png

                        I sent the file in rocket chat, please let me know if you received it.

                        Thank you so much!

                        Allan Zimmermann 1 Reply Last reply Reply Quote 0
                        • Allan Zimmermann
                          Allan Zimmermann @cauan.silv last edited by

                          @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 )
                          e7e5d8b8-9ca6-443a-b41a-2f3e7612afcc-image.png

                          Here is an updated version, with the varibales mapped in the Map Variables window
                          ID search2.xaml

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            cauan.silv @Allan Zimmermann last edited by

                            @allan-zimmermann

                            Worked! Thank you so much!

                            1 Reply Last reply Reply Quote 0
                            • Locked by  A az 
                            • First post
                              Last post